Question: Write a C program which uses a switch statement to input an item type followed by the amount of the purchase. please see image attached

Write a C program which uses a switch statement to input an item type followed by the amount of the purchase. please see image attached for full question. much thanks in advance.
A local store sells the following types of items: E for Electrical items P for Plumbing H for hardware N for Paint 0 for Outdoor items For Christmas, they offered the following sale on its items: E, P, o items were discounted 15% H items were discounted 12% N items were discounted 8% Your job is to write a C program which uses a switch statement to input an item type (E, P, H, N or O) followed by the amount of the purchase. Apply the discount as mentioned above and determine the final cost of the item. If an incorrect item type is entered, then output INVALID ITEM TYPE. In this case, do not print any final cost. Execute your program two times using the following data: Item Type Amount o 428.40 L 748.28
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
