Question: write c program Question 1 (25 points) A grocery store by the university makes discounts to students. If the total purchase is more than 250

write c program write c program Question 1 (25 points) A grocery store by the

Question 1 (25 points) A grocery store by the university makes discounts to students. If the total purchase is more than 250 TL then the discount is 0.12 otherwise the discount is 0.10. After the discounted total is calculated 0.18 VAT is added to find the total amount to be paid by the student customer. If the customer is a regular customer (i.e. not a student) then no discount is applied to the total purchase but 0.18 VAT is added to find the total to be paid by the regular customer. Write a C program to calculate the total amount to be paid by the customer. The program must select if the customer is a student or a regular customer then ask the user to enter the total purchase amount. Finally the program should do the calculations according to the customer type (student or regular customer) and display Total purchases and next to it the discount percentage and discount amount if there is any, Discounted total on the next line and finally Total amount including VAT on the last line. Repeat the above process in a do-while loop until the time when the user replies "No" (or "N" or "n") to the question "Do you want to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!