If the choice is 3 then a goodbye message is displayed and


A newly opened grocery store wants to set up their computerized system to be able to handle the checkout of items. They are on the hunt for a programming company that can assist in designing such a program. Luckily, the students of the Community College programming class have volunteered.

The program should you display a Welcome message followed by the following menu-

1. 5 Items or Less

2. Express Lane

3. Exit

The user in then prompted to enter a choice corresponding to the above menu.

If the choice is 1 then the user is prompted again for the number of items to be processed.

Depending on the amount of items to be processed by the user must be prompted for the price of all the items. The sum of the items is then displayed followed by a Goodbye message then the program ends.

NB: The amount of item should be 5 or less.

If the choice is 2 then they are then prompted for the price of the item.

If the price of the item is greater than $50 then a 25% discount is given to the product. If not the price remains the same. The final price is then displayed and a Goodbye message then the program ends.

NB: Express lane is for 1 item.

If the choice is 3 then a Goodbye message is displayed and the program ends.

1. Write Psuedocode to represent a suitable algorithm to solve the grocery's store problem.

2. Design a Flowchart which will show the flow of data for this algorithm.

3. Write C Code for this program

a) Code should be commented and indented where necessary.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: If the choice is 3 then a goodbye message is displayed and
Reference No:- TGS01594111

Expected delivery within 24 Hours