Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A person goes to a mall. The mall is having sales based on the purchase price. For example, if a person spends 1 0 0

A person goes to a mall. The mall is having sales based on the purchase price. For example, if a person spends 100 or more (upto 200) then he gets a 20% discount, if he spends between 50 to 99 then he gets a 15% discount, and below 50 gets a 10% discount. However, if he spends over 200 then he gets a 22% discount. Now write the program that takes user input of the purchase price and calculates the total cost with an appropriate discount.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions