I gang

Dynamics Arrays and Structure

struct Application {

string name;

float price;

};

int displayMainMenu() - Displays the menu shown below, waits for the user to select a choice, and then returns the choice as an integer

Main Menu

[1] Create New Array of Applications

[2] Add New Application to Array

[3] Display Array of Applications

[4] Update Existing Application

[0] Quit

Your choice:

Application* createNewAppArray(int size) - Creates a new array of Applications of size elements and returns a reference to the array

Application* createNewApp() - Creates a new Application by asking the user for an application name and price and returns a reference to the new Application which contains the name and price entered by the user

void addAppToAppArray(Application* app, Application* appArray, int appArraySize) - Adds a new Application app to an existing array appArray of size appArraySize

void displayAppArray(Application* appArray, int appArraySize) - Displays the array of Application appArray that contains appArraySize elements. Displays as follows:

[0] App 1, $12.34

[1] App 2, $23.34

[2] App 3, $34.45

int chooseApp(Application* appArray, int appArraySize) - Uses displayAppArray() to display the array appArray of size appArraySize, waits for the user to choose an index from the array, and then returns the index as an integer

void updateApp(Application* appArray, int appIndex, Application* app) - Uses chooseApp() to choose the application to be updated, then uses createNewApp() to have the updates, and then replaces the application in appArray at appIndex with the new application

COOL YOU ALREADY DID! THANKS

Færdigheder: C++ Programmering

Se mere: int size c, Arrays, string float, menu structure app, add non class function display list contents, struct, structure menu, menu structure, add static contents admin display user sidebar wordpress, php update time display dynamic, php display update array, update array, struct struct arrays, struct arrays, arrays struct, add money update query access, add trigger update panel code, php display update, add async update trigger, add html link product display zen cart, add trigger update pannel, struct integer

Om arbejdsgiveren:
( 22 bedømmelser ) Cambridge, United States

Projekt-ID: #6008732

Tildelt til:

PeinOS

Hired by the Employer

$10 USD på 1 dag
(3 bedømmelser)
1.4