Question: Assignment descriptions: This assignment contains four files. 1 . orderMenu . h This header file contains the following structs and function prototypes. 1 #ifndef ORDERMENU

Assignment descriptions:
This assignment contains four files.
1
.
orderMenu.h
This header file contains the following structs and function prototypes.
1
#ifndef ORDERMENU H
2
#define ORDERMENUh
_
3
4
typedef structi
5
char food
[
5
0
]
;
6
float price;
7
int quantity;
8
JOrder;
9
1
0
typedef struct
{
1
1
char name
[
3
0
]
;
1
2
int numberOfOrder;
1
3
Order order
[
1
0
]
;
1
4
}
Customer;
1
5
1
6
void orderMenu
(
void
)
;
1
7
void makeOrder
(
Customer
)
;
1
8
void printReceipt
(
Customer
)
;
1
9
2
0
#endif
2
.
orderMenu.c
Implement all the functions listed on the orderMenu.h
3
.
algomaFastfood.c
This is a test file. You can use the file below to test your program.
1
#include
2
#include "orderMenu.h
"
5
6
7
8
9
1
0
}
int main
(
int argc, char
*
argvil
)
{
Customer customer; makeOrder
(
customer
)
; printReceipt
(
customer
)
;
return
0
;
4
.
makefile
This file contains a set of instructions or rules to compile your program. When you are ready to submit your assignment, please rename your 'makefile' to
'makefile.txt
'
.
Otherwise, you will not be able to upload it to the Moodle.
Functions Specification:
void orderMenu
(
void
)
;
Description: This function displays a menu of eight food items with their corresponding prices on the screen.
Pre
-
condition: none
Post
-
condition: An order menu is displayed on the screen.
void makeOrder
(
Customer
)
;
Description: This function prompts the customer with the message "Hello, what is your name?" to obtain the customer's name. The customer's name will be stored in a Customer object. Then, the function prompts the customer to place food orders. The function will continue prompting the customer for orders until the customer indicates they do not want to order anymore.
Pre
-
condition: A customer object must exist.
Post
-
condition: All customer orders will be stored in the Customer object. The action of the makeOrder function is shown below. benkam@AlgomaU:~
/
algoma
/
week
4
/
assign$
.
/
order
Hello, what is your name? Jack Bauer Filet
-
O
-
Fish................$
3
.
4
5
Ham Sandwich................$
6
.
9
9
French Fries................ $
2
.
9
9
Cheeseburger...............$
5
.
4
9
Chicken Salad.............$
8
.
9
9
Soft Drinks.................$
1
.
4
5
1
%
Milk.....................$
2
.
0
0
Prat woute you like? Ham Sandwich
How many would you like?
2
Would you like to continue your order?
Please enter either yes or no: yes
Han Sandwich.
Filet
-
O
-
Fish................$
3
.
4
5
Ham Sandwich................$
6
.
9
9
French Fries................$
2
.
9
9
Cheeseburger................$
5
.
4
9
Chicken Salad...............$
8
.
9
9
Soft Drinks.................$
1
.
4
5
1
%
Milk....................$
2
.
0
0
Premium Tea.........
What would you like? French fries
How many would you like?
1
Would you like to continue your order?
Please enter either yes or no: no
void printReceipt
(
Customer
)
;
Description: This function prints the order information for a customer, including the customer's name, food items, prices, and total cost.
Pre
-
condition: A Customer object must exist.
Post
-
condition: A receipt is printed on a screen.
An example of a receipt is shown below.
*
*
*
Order Receipt
*
*
*
French Fries @$
2
.
9
9
x
1
.
.
.
.
.
.
.
.
.
.
$
2
.
9
9
Ham Sandwich @$
6
.
9
9
x
2
.
.
.
.
.
.
.
.
.
.
$
1
3
.
9
8
Tax
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
-
-
$
2
.
2
1
Total:............................$
1
9
.
1
8 write c code according to this
 Assignment descriptions: This assignment contains four files. 1 . orderMenu.h This

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!