Complete the code provided to complete the program
3 total assignments. I will need 3 different .cpp files as the response.
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