Need help with this code.

closed account (D4NbpfjN)

A supermarket awards coupons depending on how much a customer spends on groceries.

Category 1 customers spend over $500.00 and get 10% discount.

Category 2 customers spend any amount between 250 – 500 (inclusive) get 5% discount.

While category 3 customers who spend less than 250.00 get 2.5% discount.

Write a program that asks the user amount of money spent on grocery and then calculate the discount and the total bill after reducing the discount.

Make sure the program accepts only nonnegative input.

Finally, display the amount without discount, discount, and the final bill. Can someone show me this code. Thanks



Hi,

So after 47 posts, you don't realise that we are not going to do your homework?

Write some pseudo code at least.
closed account (D4NbpfjN)
Gotcha I think I figured it out thanks
Last edited on
Topic archived. No new replies allowed.