anonymous
  • anonymous
I need help with a program in C not C++. this is not graded but it will help a lot to see how program since I'm having issues with array. User defined functions, pointers, Menu driven program A Company needs to create software for their new line of phone Applications. Customers will have the opportunity to purchase the Apps using the following cash amounts: (1) - $20.00, (2) - $10.00, (3) - $5.00 (4) - $1.00 G – GPS navigation $4.99 F -Flashlight $0.99 E –E-bay Autobidder $12.99 R – Restaurant locator $2.99 P – Game Package $9.99 You must have at least 7 user defined
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
shadowfiend
  • shadowfiend
Sorry, looks like you got cut off. Can you post the rest of your issue?
anonymous
  • anonymous
// Displays the list of apps available //prompts for the user’s selection and sets the value of the selection void Menu(char *purchase); //sets the cost of the item based on value stored in purchase void GetCost(char purchase, double *item_cost); //Displays the codes for money input- gets user input amounts //compares the int codes and updates the deposit amount void MoneyMenu(double *deposits, double item_cost); //compares the amount the user has in deposits 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 deposits, 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 *deposits, double item_cost, char purchase); //calculates the amount of leftover from your deposits void GetChange(double *deposits, double item_cost); //Asks the user if they want another app void Quit(char *again);
anonymous
  • anonymous
and the Sample Output: Welcome to THE APP STORE Would you care to make a purchase(Y/N)?: y ********************************** You have deposited $0.00 HERE ARE THE SELECTIONS: G -- GPS navigation $4.99 F -- Flashlight $0.99 E -- E-bay Autobidder $12.99 R -- Restaurant locator $2.99 P -- Game Package $9.99 Please enter a selection: G ------------------------------ You have not deposited enough money The item costs $4.99 You have deposited $0.00 Please make a deposit by selection: -- 20 $20.00 -- 10 $10.00 --- 5 $5.00 --- 1 $1.00 Deposit Amount: $10 You have purchased: G You have $5.01 left, Would you like to make another purchase? y ********************************** You have deposited $5.01 ------------------------- HERE ARE THE SELECTIONS: G -- GPS locator $4.99 F -- Flashlight $0.99 E -- E-bay Autobidder $12.99 R -- Restaurant locator $2.99 P -- Game Package $9.99 Please enter a selection: P ------------------------------ You do not have enough in your bank The item costs $9.99 You have $5.01 available in your bank Please make a deposit by selection: -- 20 $20.00 -- 10 $10.00 --- 5 $5.00 --- 1 $1.00 Deposit Amount: $20 You have purchased: P You have $15.02 left, Would you like to make another purchase? n Dispensing change $15.02 … Thank you, enjoy your purchase(s) Press any key to continue . . .

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Hello Alex, It looks like you have already defined the problem very well, particularly with the example output. What specifically do you want help with? Someone could write out all the code for you, but that wouldn't be any fun! If you start writing the code yourself, then post any problems you have (such as: compiler errors, uncertainty about how to design things), I'm sure someone will be happy to help. Cheers, Scott
shadowfiend
  • shadowfiend
Definitely follow his advice ^^ :)

Looking for something else?

Not the answer you are looking for? Search for more explanations.