This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Intro to Programming in C - Programming Assignment 3 DUE WED OCTOBER 27 – 9:00 AM Assignment purpose : User defined functions, pointers, Menu driven program 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. //compares the amount the user has in the bank to the price of item selected....
View Full Document
- Spring '08
- X-Ray vision, double item_cost, Food replicator