Find Jobs
Hire Freelancers

451167 assignment project 3

N/A

Imekamilika
Imechapishwa over 13 years ago

N/A

Kulipwa wakati wa kufikishwa
A Company needs to create software for their new line of phone Apps. Customers will have the opportunity to purchase the Apps using the following credit amounts: (1) - $20.00, (2) - $10.00, (3) - $5.00 (4) - $1.00 G – GPS locator $4.99 L -Flashlight $1.99 X – X-ray vision $12.99 F – Food replicator $15.99 P – Game Package $9.99 You must have at least 7 user defined functions: // Displays the list of apps available //prompts for the user's selection and sets the value of the selection void Menu(char *selection); //sets the cost of the item based on value in selection void GetCost(char selection, double *item_cost); //Displays the codes for money input- gets user input amounts //compares the int codes and updates the bank amount entered void MoneyMenu(double *bank, double item_cost); //compares the amount the user has in the bank to the price of item selected. //It returns 1 if the amount is enough to cover the cost, 0 if there is not enough. int CheckMoney(double bank, double item_cost); //uses MoneyMenu function to display and collect dollar amounts from the user //uses CheckMoney function to keep comparing the added deposited amount to the item cost. void GetMoney(double *bank, double item_cost, char selection); //calculates the amount of leftover in the bank void GetChange(double *bank, double item_cost); //Asks the user if they want another app void Quit(char *again); Additional Requirements: • Create a typed algorithm that outlines the steps your program will follow in English/pseudocode. This is worth 10 points of the grade for this assignment. • Use function prototypes. • Write comments for each function that will appear in the file before each prototype and again before each function definition. • Be sure to comment your code adequately. • Be sure to indent properly. Check your textbook and lecture code examples to see how it should be done. • Use meaningful variable names. Electronically submit only your source code, apps.c
Kitambulisho cha mradi: 2197052

Kuhusu mradi

pendekezo 1
Mradi wa mbali
Inatumika 12 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
Imetolewa kwa:
Picha ya Mtumiaji
Hi, I've sent some details to your PMB. Cheers.
$30 USD ndani ya siku 1
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya UNITED STATES
wilton manors, United States
5.0
6
Njia ya malipo imethibitishwa
Mwanachama tangu Okt 25, 2010

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.