Programming Homework Help
SDSU Develop a Program that Shows the Sales of Bikes for Bike Company C++ Program
Develop a program that shows the sales of bikes for a bike company. The program should use a structure to store the following data about the bike sale:
Bike Brand (Company)
Type of Bike (mountain, road, kid’s etc.)
Sale Price
Year of Sale
The program should use an array of at least 4 structures (4 variables of the same structure). It should let the user enter data into the array, change the contents of any element and display the data stored in the array. The program should have a menu driven interface.
Input Validation: When the data for a new bike sale is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a “Sale Price” of the Bike.
An example:
You will use 1 structure only and then manipulate that for working with the information.
The program should use an array of at least 4 structures (4 variables of the same structure).
An example of the structure:
struct Bike
{
string name;
string type;
double price;
int year;
};