//Xinnuo Wang CS1A chapter 2, p.81 #2
//
/*******************************************************************************
*
* Sales Prediction
* _____________________________________________________________________________
* This program computes the prediction how much the East Coast division will
* generate if the company has $4.6 million in sales this year based on the East
* Coast sales division of a company generates 62 percent of total sales.
*
* Computation is based on the formula:
* East Coast sales = total sales * percentage
* _____________________________________________________________________________
* INPUT
* total sales : The total sales of the company this year
* percentage : The persentage of the East Coast divition on total sales
* OUTPUT
* East Coast sales: The prediction of East Coast sales
*
******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
float totalSales; //INPUT - The total sales of the company this year
float percentage; //INPUT - The persentage of the East Coast divition on total sales
float EastCoastSales; //OUTPUT - The prediction of East Coast sales
//
// Initialize Program Variables
totalSales = 4.60;
percentage = 0.62;
//
// compute the pridiction of the East Coast sales
EastCoastSales = totalSales * percentage;
//
// Output Result
cout << "The prediction of the East Coast sales is: $" << EastCoastSales<< "millon" <<endl;
return 0;
}