1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#include<iostream>
#include<string>
using namespace std;
double computeAnnsales(int, double, double, double, double);
double computeAvrage(int, double, double, double, double);
struct CorporateData{
string division1,division2, division3, division4,east, west, central, mountain;
double totalAnnsales, averageQsales;
double firstQsalesEast,secondQsalesEast,thirdQsalesEast,fourthQsalesEast;
double firstQsaleswest,secondQsaleswest,thirdQsaleswest,fourthQsaleswest;
double firstQsalescentral,secondQsalescentral,thirdQsalescentral,fourthQsalescentral;
double firstQsalesmountain,secondQsalesmountain,thirdQsalesmountain,fourthQsalesmountain;
CorporateData (){
division1=east;
firstQsalesEast=4876957.32;
secondQsalesEast=6349845.61;
thirdQsalesEast=3456978.97;
fourthQsalesEast=5348976.44;
division2=west;
firstQsaleswest=12345941.14;
secondQsaleswest=9874561.87;
thirdQsaleswest=10315648.25;
fourthQsaleswest=11594843.81;
division3=central;
firstQsalescentral=2465948.58;
secondQsalescentral=3459123.25;
thirdQsalescentral=4012648.38;
fourthQsalescentral=3945372.76;
division4=mountain;
firstQsalesmountain=7843123.33;
secondQsalesmountain=8364891.97;
thirdQsalesmountain=6159487.54;
fourthQsalesmountain=8974561.27;
};
double computeAnnsales(int, double, double, double, double)
{
|