University of Illinois C++ Program Code

Question C++: please, provide .cpp file for lab4.Lab 4:This program will use a structure to hold the data for each division of a corporation.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

The structure will keep the following data:

Name of division (string)Sales total for quarter 1 (double)Sales total for quarter 2 (double)Sales total for quarter 3 (double)Sales total for quarter 4 (double)The program will ask the user for the inputs needed to populate the structure. Then display the data for each instance of the structure.

Complete the code provided to complete the program.

Source Lab 4 File:#include#include#includeusing namespace std;

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

struct Division{

}

;

void GetDivisionSales(Division& div);void DisplayDivision(Division div);

int main(){Division east, west, north, south;

east.name = “East”;west.name = “West”;north.name = “North”;south.name = “South”;

GetDivisionSales(east);GetDivisionSales(west);GetDivisionSales(north);GetDivisionSales(south);

DisplayDivision(east);DisplayDivision(west);DisplayDivision(north);DisplayDivision(south);

return 0;}

void GetDivisionSales(Division& div){

}

void DisplayDivision(Division div){cout

Question C++: please, provide .cpp file for lab4.
Lab 4:
This program will use a structure to hold the data for each division of a corporation.
The structure will keep the following data:
Name of division (string)
Sales total for quarter 1 (double)
Sales total for quarter 2 (double)
Sales total for quarter 3 (double)
Sales total for quarter 4 (double)
The program will ask the user for the inputs needed to populate the structure. Then display the data for each instance of the structure.
Complete the code provided to complete the program.
Source Lab 4 File:
#include
#include
#include
using namespace std;
struct Division
{
};
void GetDivisionSales(Division& div);
void DisplayDivision(Division div);
int main()
{
Division east, west, north, south;
east.name = “East”;
west.name = “West”;
north.name = “North”;
south.name = “South”;
GetDivisionSales(east);
GetDivisionSales(west);
GetDivisionSales(north);
GetDivisionSales(south);
DisplayDivision(east);
DisplayDivision(west);
DisplayDivision(north);
DisplayDivision(south);
return 0;
}
void GetDivisionSales(Division& div)
{
}
void DisplayDivision(Division div)
{
cout

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER