Find Jobs
Hire Freelancers

c program oreder.c

$30-250 USD

Anulat
Data postării: circa 3 ani în urmă

$30-250 USD

Plata la predare
Write the program "order.c" that implements the header file "order.h". Namely, do the following: 1- implement the function read_item. 2- implement the function read_order. 3- implement the function get_menu_item. 4- implement the function calc_total. 5- implement the function save_receipt. 6- implement the function main. Note 1: All arrays must be allocated dynamically. Note 2: Attach the file "order.c" as your answer. Files: order.h , [login to view URL] /* A pizzeria has the following menu each item on the menu has an id, a description, and a price */ struct MenuItem{ int mi_id; char mi_desc[100]; float mi_price; } menu[10] = { {113, "Small cheese pizza", 10.00}, {114, "Medium cheese pizza", 20.00}, {115, "Large cheese pizza", 30.00}, {123, "Small veggi pizza", 10.00}, {124, "Medium veggi pizza", 20.00}, {125, "Large veggi pizza", 30.00}, {311, "6pc chicken wings", 12.00}, {312, "12pc chicken wings", 20.00}, {411, "Garlic bread", 5.00}, {611, "Cola", 2.00} }; /* An order item stores the item's id and quantity */ typedef struct Item{ int item_id; int quantity; } Item; /* An order consistes of the name of the customer, number of ordered items, array of ordered items, the value added tax as a percentage to be applied to the total of the orders, and a delivery fee to be added to total after applyint the tax */ struct Order{ char customer_name[100]; int items_count; Item* items; float vat; float delivery_fees; }; /* read_item reads an order item information from the keyborad and returns a pointer to the read item */ Item* read_item(); /* read_order reads all information of the order from the keyboard and returns a pointer to the read order */ struct Order* read_order(); /* get_menu_item takes a menu item's id and returns a structure contains all details about this item from the menu */ struct MenuItem get_menu_item(int id); /* calc_total takes an order and returns the total amount that should be paid by the customer for this order*/ float calc_total(struct Order* or); /* save_receipt takes a file name fn and an order or and saves the corresponding receitpt to the text file fn in the following format: Welcome: Ahmad Ali ********************************** Item# Description Quantity Price ------------------------------------------------------------------ 115 Large cheese pizza 2 30.00 124 Medium veggi pizza 2 20.00 411 Garlic bread 3 5.00 611 Cola 3 2.00 ------------------------------------------------------------------ VAT: 0.05 Delivery fees: 10.00 ------------------------------------------------------------------ Total: 137.05 */ void save_receipt(char* fn, struct Order* or); /* main function reads an order from the keyboard and saves its receipt to the file "[login to view URL]", you can use the text of the file "[login to view URL]" as a test input */ int main();
ID-ul proiectului: 29891225

Despre proiect

7 propuneri
Proiect la distanță
Activ: 3 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
7 freelanceri plasează o ofertă medie de $184 USD pentru proiect
Avatarul utilizatorului
Hi there,I'm biddin on your project "c program oreder.c" I have read your project description and i'm an expert in C programming and machine learning therefore i can do this project for you perfectly.I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the project. Thanks. .. .
$250 USD în 5 zile
4,8 (99 recenzii)
7,8
7,8
Avatarul utilizatorului
Hi there, I'm bidding on your project "c program oreder.c" Being an expert in C, and C++ programming I can do this project for you. please leave a message on my chat so we can discuss the budget and deadline of the project. Also, have a look at my profile for my reviews and portfolios. Thanks Note: This is not an automated bid and i'm ready to discuss your project right now. .. .
$250 USD în 4 zile
5,0 (44 recenzii)
7,2
7,2
Avatarul utilizatorului
###### Experienced in C, Python, Data structure, Algorithm Design and Analysis ######## Hi, Greetings. I am a computer engineer having masters in Mathematics, Computer Science and PhD in Computer Science. I have more than 10 years experience in developing algorithms of mathematical problems as well as computer related problems and their implementation using C, C++, Java, Python programming language. I would like to discuss in more detail with you to get your exact requirements. I am confident I can provide you efficient solution. Here I put a tentative bid amount and days that can be fixed after understanding the project details. I'm looking forward to your response. Best regards,
$40 USD în 2 zile
5,0 (38 recenzii)
4,8
4,8
Avatarul utilizatorului
✔️ Dear Client. I am seeing your repeated post. Being top-notch C/C++ programmer, I would like to work on your project. We can discuss more detail over chat. Thanks for reading my proposal.
$250 USD în 1 zi
5,0 (4 recenzii)
3,9
3,9
Avatarul utilizatorului
please discuss. Negotiable price and duration...........................................................................................................................................................
$45 USD în 3 zile
5,0 (1 recenzie)
0,6
0,6
Avatarul utilizatorului
I have 7 years experience in algorithm. I have a hackerranck perfil and i like too much to solve this type of problem.
$200 USD în 3 zile
0,0 (0 recenzii)
0,0
0,0

Despre client

Steagul SAUDI ARABIA
riyadh, Saudi Arabia
5,0
1
Metoda de plată a fost confirmată
Membru din apr. 15, 2021

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.