Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started