Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help me to create this project with C programing use the struct please. thank you! Learning Outcomes Explain the concept of data structure and its
Help me to create this project with C programing use the struct please. thank you!
Learning Outcomes Explain the concept of data structure and its usage in application . Topic Session 01 - Array and Structure . . Sub Topics Array of Struct Struct Declaration Struct Implementation Array of Struct Implementation . . Soal Case Fruity Chips is one of the popular snack nowadays. Oneday, its owner want you to help him to transform the cashier system to be paperless and managable so that the cashier program is able to handle every transaction. The cashier program is described below. Program always shows List of chips which contains some descriptions such as No, Code, Chips Name, Available, and Price of the available chips. I Available 1 Price III No. 1 Code I Chips Name 01. I CP001 I Banana Chips 02. I CPO05 I Apple Chips 03. I CP009 Melon Chips 04. I CP014 | Jackfruit Chips 05. I CP015 Pineapple Chips 06 I CP017 I Dragon Fruit Chips 07. I CP025 I Durian Chips 25 45 32 20 ! 27 29 14 Rp. 10000, Rp. 12000, Rp. 14000, Rp. 15000 Rp. 16000, Rp. 21000, Rp. 27500, . FM-BINUS-MLG-AA-FPU-31/RO . The program consists of 3 menus: 1. Sell 2. Add Stock 3. Exit . If user chooses Sell, then: Ask user to input chips code he/she wants to sell. The chips code must consist of 5 characters and be available in the list of chips. If user inputs the wrong code or another code, the program will show the message "--- The chips code doesn't exist --- and ask user to input again. This code is case sensitive. Then ask user to input the quantity. The quantity must be between 0 and x, where x = [available chosen chips). The user cannot sell the chipss more than the quantity available on the list. If user tries to do so, show the message "...The quantity of chips is not enough..." If user succeeds to sell, then show: Total Price is: Rp [price of chips),-x [quantity of chips) = Rp [total price]," "... Thank You ---" Then update the stock of available chips. [available chips] = [available chips] - [quantity of chips that has been sold] . If user chooses Add Stock, then: Ask user to input the chips code he/she wants to add to the list. The chips code must consist of 5 characters and be available in the list of chips. If user inputs the wrong code or another code, the program will show the message "--- The chips code doesn't exist ---" and ask user to input again. This code is case sensitive. Then ask user to input the quantity. Validate the quantity of chips must be between 1 and 100. If user succeeds to add stock, then show: "--- Adding Stock Success ---" Then update the stock of available chips. [available chips] = [available chips] + [quantity of chips added] Print Screen of Main Menu FRUITY CHIPS SHOP CASHIER ========================= No. 1 Code I Chips Name 01. | CP001 I Banana Chips 02. I CP005 I Apple Chips 03. I CP009 I Melon Chips 04. I CP014 I Jackfruit Chips 05. I CP015 I Pineapple Chips 06. CP017 Dragon Fruit Chips 07. I CP025 I Durian Chips I Available i Price 25 Rp. 10000,- 45 i Rp. 12000 32 I Rp. 14000 20 T Rp. 15000, 27 Rp. 16000, 29 T Rp. 21000, 14 Rp. 27500, Menu : 1. Sell 2. Add Stock 3. Exit Input choice : Print Screen of Sell Menu (Menu '1') Menu : 1. Sell 2. Add Stock 3. Exit Input choice : 1 Input Chips Code (5 chars): CP017 Input Quantity [0..29]: 9 Total Price is : Rp 21000,- x 9 = Rp 189000,- Thank You I Available 1 Price No. 1 Code 01. I CP001 02. I CP005 CP009 04. I CP014 05. I CP015 06. I CP017 07. I CP025 03. I Chips Name I Banana Chips Apple Chips I Melon Chips I Jackfruit Chips I Pineapple Chips Dragon Fruit Chips I Durian Chips 251 45 I 32 20 27 20 T 14 I Rp. 10000, Rp. 12000, Rp. 14000 Rp. 15000 Rp. 16000 Rp. 21000, Rp. 27500, The list is updated Print Screen of Add Stock (Menu '2') Menu: 1. Sell 2. Add Stock 3. Exit Input choice : 2 Input Chips Code (5 chars): CP014 Input Quantity [1..100): 90 Adding Stock Success No. 1 Code I Available i Price 01. I CP001 02. I CP005 03. I CP009 04. I CP014 05. I CP015 06. I CP017 07. I CP025 I Chips Name I Banana Chips Apple Chips I Melon Chips I Jackfruit Chips I Pineapple Chips Dragon Fruit Chips I Durian Chips 25 Rp. 10000, 451 Rp. 12000, 32 I Rp. 14000, 110 I Rp. 15000, 27 I Rp. 16000, 20 L Rp. 21000, 14 Rp. 27500, The list is updated
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