Question
Hello, this is a program project in the C programming language. I want you to give me three solutions to the project in different ways
Hello, this is a program project in the C programming language. I want you to give me three solutions to the project in different ways and don't give them to anyone else. I also want a detailed explanation of what the program does. I want to understand each line in it, in addition to be discussed and asked in this project, so I want all the possible questions asked by the doctor of the subject, and answers for the questions ,Note: The c language is the first programming language I learned, so the questions may be simple and general about the language, I also want questions that can be asked about the project(all possible questions) The project: This text is translation from Arabic to English . Supermarket project: Project Description: The project enables the user to enter the same purpose. Upon completion, the user enters an X instead of the purpose code. A menu appears to the user containing several options. Option 5. Display a higher value and a lower price. Option 6. Cancel the process and start again A group of items, so that for each item the user enters his group code and the number of units from Option No. 1: Total invoice in shekels, total item prices Option 2 Total bill in dollars (1) dollar = 3.5 shekels Option 3 Total discount in shekels Total discount on all items Option 4 Payment Request to enter the amount paid and display the remaining amount for return Option 7 Move on to the next customer Option 8 Exit Each item belongs to one of the following groups (a), b, c, d, or e), so that the unit price is according to the group. The items whose symbol is 2 are the unit price: 2 shekels, 4 shekels, 6 shekels: 8 shekels: 10 shekels. As for the discount, the customer gets a discount of 5% if the total bill is more than 100 shekels, and 10% if the total is The bill is more than 1000 There is a 16% tax on the value of purchases, calculated before the discount. comments: The form of the list should be according to what was mentioned and what is found in the experiment below. It is necessary to adhere to the solution method and the presence of five functions as follows: The first function: costFinder is used to display the menu. It displays a list of options. The second function: printMenu calculates the price for each item. Price of the item = number of units * price of the group to which the item belongs according to the symbol). The function takes the symbol of the group to which the item belongs and the number of units of the same item and calculates Price for this purpose. A third function: shikelToDollar to convert the amount in shekels into dollars, so that the same function prints the result on the screen. A fourth function: discount Calculator, to calculate the discount value, takes the total amount and returns the discount value to the amount. Fifth function: remaining to calculate the remaining amount by taking the amount paid and requested and displaying the remaining amount Directly on the screen. E. If a wrong product code is entered, the user must be asked to re-enter it. E. If a wrong option number is entered from the list, the user must be asked to re-enter it. E. It is possible not to enter any products and terminate the program from the beginning. E. Comments must be placed on the parts of the program to clearly explain their function.
Notes: 1. You should submit : a. the main.c file making sure it has the last version of your code. b. Screenshot of successful run of the project showing a clear use case. This project is due by Thursday (18/1/2024). Project should be submitted on Moodle ITC comp1310 metacourse "Course Project". (Late Submission will not be accepted for any reason). 3. Your personal information (Name, student id, section #, ...) MUST be FULLY TYPED. As comments in the first line of code. The project is individual effort and copying the project or any of its parts from any source will be treated as a cheating attempt, which may lead to FAILING the course. Below is an example of run that help you understand the projects functionalities. "C:\Users\msi\Documents\C F X + please enter the item code (a,b,c,d,d) or X to finish a please enter the number of item units 9 item cost is 18.000000 in shikel please enter the item code (a,b,c,d,e) or X to finish C please enter the number of item units 7 item cost is 42.000000 in shikel please enter the item code (a,b,c,d,e) or X to finish e please enter the number of item units 10 item cost is 100.000000 in shikel please enter the item code (a,b,c,d,e) or X to finish X Receipt in shilekel -1 Receipt in dollar-2 Total discount in shilekel-3 pay -4 find max and min -5 Cancel current -6 Next customer -7 Exit-8 enter your choice 1 totCostAfterDis is 152.000000 shikel 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next customer 8- Exit enter your choice 2 43.428571 dollars 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next customer 8- Exit enter your choice 3 tot Discount is 8.000000 shikel 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next customer 8- Exit enter your choice 4 Please enter a amount paid in shikel 200 Rest = 48.000000 shikel 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next custemer 8- Exit enter your choice 5 the max cost is is 100.000000 shikel the min cost is is 18.000000 shikel 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next custemer 8- Exit enter your choice 7 please enter the item code (a,b,c,d,d) or X to finish.
please enter the number of item units 9 item cost is 18.000000 in shikel please enter the item code (a,b,c,d,e) or X to finish X 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next customer 8- Exit enter your choice 1 totCostAfterDis is 18.000000 shikel 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next custemer 8- Exit enter your choice 6 please enter the item code (a,b,c,d,d) or X to finish a please enter the number of item units 9 item cost is 18.000000 in shikel please enter the item code (a,b,c,d,e) or X to finish y please enter the item code (a,b,c,d,e) or X to finish b please enter the number of item units 7 item cost is 28.000000 in shikel please enter the item code (a,b,c,d,e) or X to finish X 1- Receipt in shikel 2- Receipt in dollar 3- Total discount in shilkel 4- pay 5- find max and min 6- Cancel current 7- Next customer 8- Exit enter your choice 8 Process returned 0 (0x0) execution time: 260.183 s Press any key to continue.
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