// Jeremy Huang CS1A Chapter 2, Pp. 81, #2
/*****************************************************************************
* PREDICT SALES
* ____________________________________________________________________________
* This program calculates the expected sales generated by a specific division
* of a company based on its percentage contribution to total sales. The user
* provides the company’s total annual sales and the division’s sales
* percentage. The program then applies the percentage to the total sales figure
* ouputs the amount of revenue the division generates.
* ___________________________________________________________________________
* INPUT
* totalSales : company's total annual sales
* divisionPerc : percentage of total sales generated by the division
*
* OUTPUT
* salesPredict : projected amount of sales division generates
*
* **************************************************************************/
#include <iostream>
using namespace std;
int main() {
//Declaring variables
int totalSales = 4600000;
float divisionPerc = 0.62;
//Computing sales made
float salesPredict = totalSales * divisionPerc;
//Output
cout<<"The East Coast division will generate $"<<salesPredict;
cout<<" in sales this year.";
//End program
return 0;
}