//Julio Ramirez CSC5 Chapter 2, P. 81, #2
/*******************************************************************************
* Sales Prediction
* _____________________________________________________________________________
* This program computes the predicted sales (in dollars) for a sales division
* based on the percentage of the company's total sales that the division
* generates and the company's expected total sales.
*
* Computation is based on the Formula:
* Sales Prediction for Sales Division = (Company's Expected Total Sales *
* Percentage of the Company's Total Sales that the Division Generates) / 100
* _____________________________________________________________________________
* INPUT
* salesPercent : Percentage of the company's total sales that
* the division generates
* expectedSales : Company's expected total sales
*
* OUTPUT
* predictedSales : Sales prediction for sales division
*
******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
float salesPercent; //Input - Percentage of the company's total sales
// that the division generates
float expectedSales; //Input - Company's expected total sales
float predictedSale; //Output - Sales prediction for sales division
// Initialize Program Variables
salesPercent = 62;
expectedSales = 4600000;
// Compute Predicted Sales
salesPercent = (expectedSales * salesPercent)/100;
// Output Results
cout << "The sales divisons predicted sales is: $" << salesPercent;
return 0;
}