Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Supermarket project: Project Description The project enables the user to enter a group of purposes, so that for each purpose the user enters his group
Supermarket project:
Project Description
The project enables the user to enter a group of purposes, so that for each purpose the user enters his group code and the number of units from
The same purpose. When finished, the user enters an instead of the purpose code.
A menu appears to the user containing several options
Option No: Total invoice in shekels total item prices Option Total invoice in dollars dollar shekels
Option Total discount in shekels Total discount on all items
Option : Payment request enter the amount paid and display the remaining amount to return it
Option Offer a higher value and a lower
price Option Cancel the process and start over
Option Move on to the next customer
Option Exit
Each item belongs to one of the following groups aor bor cord or so that the unit price is according to the group. The items whose symbol and unit price are shekels, shekels, shekels: shekels, shekels
As for the discount, the customer gets a discount of if the total bill is more than shekels, and if the total is The invoice is more than
There is a 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 that displays the list of options
A second function: print Menu Calculation Price for each item Price of the item number of units Price of the group to which the item belongs according to the code The function takes the code 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 to 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. This is a fifth function: remaining to calculate the remaining amount by taking the amount paid and requested and displaying the remaining amount
Directly on the screen.
If the wrong product code is entered, the user must be asked to reenter it
If the wrong option number is entered from the list, the user must be asked to reenter it
You may not enter any products and terminate the program from the
beginning Comments must be placed on the parts of the program to clearly explain their function.
Notes:
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 Project should be submitted on Moodle ITC comp metacourse "Course Project". Late Submission will not be accepted for any reason
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.
"CiUsersimsi Documents
please enter the iter code or to finish
a
please enter the number of item units
item cost is in shikel
please enter the iten code or to finish
c
please enter the number of item units
item cost is in shikel
please enter the iten code or to finish
e
please enter the number of item units
item cost is in shikel
please enter the item code or to finish
X
Receipt in shikel
Receipt in dollar
Total discount in shilkel
pay
find max and min
Cancel current
Next custemer
Exit
enter your choice
totCostAfterDis is shikel
Receipt in shikel
Receipt in dollar
Total discount in shilkel
pay
find max and min
Cancel current
Next custemer
Exit
enter your choice
dollars
Receipt in shikel
Receipt in dollar
Total discount in shilkel
pay
find max and min
Cancel current
Next custemer
Exit
enter your choice
tot Discount is shikel
Receipt in shikel
Receipt in dollar
Total discount in shilkel
pay
find max and min
Cancel current
Next custemer
Exit
enter your choice
Please enter a amount paid in shikel
Rest
a
please enter the nu
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