1. There's an online clothing sale going on! When you buy three items, if your shopping cart exceeds $50, you get a $5 d

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1. There's an online clothing sale going on! When you buy three items, if your shopping cart exceeds $50, you get a $5 d

Post by answerhappygod »

1 There S An Online Clothing Sale Going On When You Buy Three Items If Your Shopping Cart Exceeds 50 You Get A 5 D 1
1 There S An Online Clothing Sale Going On When You Buy Three Items If Your Shopping Cart Exceeds 50 You Get A 5 D 1 (40.66 KiB) Viewed 44 times
1. There's an online clothing sale going on! When you buy three items, if your shopping cart exceeds $50, you get a $5 discount. If you spend more than $100 on three items, you get a $20 discount. Write a program for the online clothing store that does the following: a. Asks the customer for the prices of the three items they would like to purchase, and store these in variables. Hint**: Recall that we can use input () to get user input Hint**: Prices will be stored as strings but you will need to cast them to a data type than can be calculated. b. Calculate how much the customer owes by summing up their three prices, and store this in another variable. C. Check if the customer is eligible for any of the discounts, and apply the correct discount based on their purchase. d. Print out how much the customer owes Hint**: Recall that we use print() to print out messages to the console
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply