Home center mall wants to make a C program to make it easier for the cashier man to check the sale and taxes on some products: Part 1: 1) Using a while loop prompt the user to enter the price of M chairs. Then prints the price of each chair after discount as shown below in the following table. 2) The program then prints the total price after discount of all chairs  which got a discount of 10% ONLY.  Price, Discount Price < 1003, 10% 1003 <= Price <= 2006, 15% Price > 2006, 20% 3) Using a do while loop, ask the user if he wants to repeat the last  operation again if he pressed ‘y’ then repeat and if he pressed ‘n’ then do  not. (NOTE: you can make it by any way) Part 2: 4) After that, initialize a variable N with the sum of digits of your student  ID. For example, if your EUI_ID number is 42357, the value of N is 21  (4+2+3+5+7 = 21). Then print the value of N on the screen. 5) Using a while loop, Enter the price of all N desks, print the average price  of all N desks with and without tax. Then you should calculate the average  price after tax of all desks which get a tax of 3% following the next table. 6) If the user entered 0(zero) it exits from the previous step. Price, Tax Price > 1003, 5% Price <=1003, 3% 7) At the end, print your ID and your group. 8) The output must be like the following sample output

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Home center mall wants to make a C program to make it easier for the cashier man to check the sale and taxes on some products:
Part 1:


1) Using a while loop prompt the user to enter the price of M chairs. Then prints the price of each chair after discount as shown below in the following table.


2) The program then prints the total price after discount of all chairs 
which got a discount of 10% ONLY. 

Price, Discount
Price < 1003, 10%
1003 <= Price <= 2006, 15%
Price > 2006, 20%

3) Using a do while loop, ask the user if he wants to repeat the last 
operation again if he pressed ‘y’ then repeat and if he pressed ‘n’ then do 
not. (NOTE: you can make it by any way)

Part 2:


4) After that, initialize a variable N with the sum of digits of your student 
ID. For example, if your EUI_ID number is 42357, the value of N is 21 
(4+2+3+5+7 = 21). Then print the value of N on the screen.

5) Using a while loop, Enter the price of all N desks, print the average price 
of all N desks with and without tax. Then you should calculate the average 
price after tax of all desks which get a tax of 3% following the next table.


6) If the user entered 0(zero) it exits from the previous step.

Price, Tax
Price > 1003, 5%
Price <=1003, 3%

7) At the end, print your ID and your group.

8) The output must be like the following sample output

A Select Microsoft Visual Studio Debug Console
Enter the number of chairs you want to enter:
Enter price of chair #1: 2000
Price of chair #1 after discount is 1700.000
Cnter price of chair #2: 1500
Price of chair #2 after discount is 1275.000
Enter price of chair #3: 900
Price of chair #3 after discount is 810.000
Total price after discount of all chairs which got a discount of 10% is 810.000
N is equal to the sum of My EUI ID (1+1) = 2
Enter the price of 2 desks: 6000
700
The average price of all desks with and without tax 3350.00 3510.50
ID = ****** Vyy Section G*
C:\Users\Aya\source\repos\Project4\x64\Debug\Project4.exe (process 10396) exited with code 0.
Press any key to close this window . ..
Transcribed Image Text:A Select Microsoft Visual Studio Debug Console Enter the number of chairs you want to enter: Enter price of chair #1: 2000 Price of chair #1 after discount is 1700.000 Cnter price of chair #2: 1500 Price of chair #2 after discount is 1275.000 Enter price of chair #3: 900 Price of chair #3 after discount is 810.000 Total price after discount of all chairs which got a discount of 10% is 810.000 N is equal to the sum of My EUI ID (1+1) = 2 Enter the price of 2 desks: 6000 700 The average price of all desks with and without tax 3350.00 3510.50 ID = ****** Vyy Section G* C:\Users\Aya\source\repos\Project4\x64\Debug\Project4.exe (process 10396) exited with code 0. Press any key to close this window . ..
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY