Question: Write a C program that does the following: A flower shop is selling roses at a regular price of $1.99 each. If a customer buys
Write a C program that does the following:
A flower shop is selling roses at a regular price of $1.99 each. If a customer buys 10 roses or more, the roses will be sold at $1.50 each. For Valentines day this year, if a customer buys 50 roses or more, he/she will receive additional 10% off the total price.
Write a C program to read a number of roses from keyboard, calculate the total price of the rose sales including 7% sales tax and display it on the screen with 2 decimal places.
The program should have input/output as following:
How many roses do you need?: 2 The total price for 2 roses including tax is $4.26
or
How many roses do you need?: 14 The total price for 14 roses including tax is $22.47
or
How many roses do you need?: 99 The total price for 99 roses including tax is $143.01
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
