Write a program that will generate a bill for the food items ordered. Accept the cost for Dosa,
Samosa, Noodles, Pasta and Burger. There is a special Offer that if the total bill is above
Rs.600 avail a discount of Rs.50 else no discount. Display all the values.
Answers
Answered by
0
Answer:
Take a string as a char array to receive the name of the product ( ch[500] )
Take two float variables and an integer variable to store bill amount, price of individual product and number of such products bought ( p , f , u )
Receive the inputs for the respective categories from the user ( %s , %f , %d )
Multiply the individual product price with the number of products bought and store it in the bill amount ( p=u*f )
Print the result according to the required format
Explanation:
please mark as brainlest answer
Similar questions