Answered step by step
Verified Expert Solution
Link Copied!

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 x instead of the purpose code.
A menu appears to the user containing several options
Option No.1: Total invoice in shekels (total item prices Option 2 Total invoice in dollars (1) dollar -3.5 shekels)
Option 3 Total discount in shekels Total discount on all items)
Option 4: Payment request (enter the amount paid and display the remaining amount to return it)
Option 5 Offer a higher value and a lower
price Option 6 Cancel the process and start over
Option 7 Move on to the next customer
Option 8 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 2 shekels, 4 shekels, 6 shekels: 18 shekels, 1000 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 invoice 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 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 re-enter it
If the wrong option number is entered from the list, the user must be asked to re-enter 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 (18/1/2024). Project should be submitted on Moodle ITC comp1310 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.
3.3 "CiUsersimsi Documents ??CF
please enter the iter 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 iten 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 iten 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
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
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 custemer
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 custemer
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 custemer
8- Exit
enter your choice
4
Please enter a amount paid in shikel
200
Rest
a
please enter the nu
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions