Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intro to Programming in C Large Programming Assignment 2 (apps.c) Assignment purpose: User defined functions, pointers, arrays, Menu driven program A Company needs to create

image text in transcribed
Intro to Programming in C Large Programming Assignment 2 (apps.c) Assignment purpose: User defined functions, pointers, arrays, 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) S1000.00, (2)-S500.00, (3)- $100.00 (4) S10.00 L - LogMeIn Ignition V VIP Black F- Facctune T-Tap Menu M- Minecraft $1399.99 $999.99 $3.99 $399.99 $6.99 You must have at least 7 user defined functions as follows: // Displays the list of apps available //prompts for the user's selection and sets the value of the selection void DisplayApps (char selctionPtr); //sets the cost of the item based on value stored in purchase void SetCost(char selection, double *costPtr); //Displays the codes for the user to input money gets user input amounts //compares the int codes and updates the deposit amount void Paymentoptions (double "depositPtr, double cost); /Icompares the amount the user has in deposits to the price of app selected //It returns 1 if the amount is enough to cover the cost, if there is not enough int Compare (double deposit, double choiceCost); //uses Paymentoptions function to display and collect dollar amounts from the user //uses Compare function to keep comparing the added deposited amount to the item cost void Pay(double *depositPtr, double choiceCost): //calculates the amount of leftover from your deposits void GetChange(double "depositPtr, double choiceCost); //Asks the user if they want another app void DoItAgain(char *quitPtr); .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 examples to see how it should be done. Use meaningful variable names

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions