Question

Write a C program that calculates the cost of different items and then displays the results. The program's design should use only the main function. The expected output should contain

your name, your CS 159 section number a nd your ID as shown in the sample output. The main function should run successfully with different scenarios. The main function should perform the following Prompt the user to enter the price of three chairs. The main function should then print the price of each chair before and after discount as shown below in the sample output. The main function then calculates and prints the total price before and after applying the following discount Prompt the user to enter the price of two desks. The main function should print the price of each desk with and without tax. The main function should calculate and print the average price of all desks after applying the following tax. Prompt the user to enter the price of two laptops The main function should prompt the user to enter discount for each a laptop a nd then print the price of each laptop with and without discount and the total price after applying the entered discount.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6