-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSalesPrediction-Program
29 lines (24 loc) · 1.33 KB
/
SalesPrediction-Program
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
//******************************************************************************************************************************
//
// File: SalesPrediction.cpp
// Student: Alec Ochoa Michaud
// Programing challenge: Starting Out With C++ 7th edition. Page 100, exercise 2.
// The East Coast sales division of a company generates 62 percent of total sales.
// based on the percentage, write a program that will predict how much the East coast
// division will generate if the company has $4.6 million is sales this year. Display
// the result on the screen.
//
//*******************************************************************************************************************************
#include <iostream>
using namespace std;
int main() {
//Expected values.
int percentageOfTotalSales, sales, ECDrevenue;
percentageOfTotalSales=62;
sales=4600000;
ECDrevenue = percentageOfTotalSales*sales/100;
cout<< "The East Coast sales division of a company generates 62 percent of total sales. " << endl;
cout<< "If the company generates $4.6 millions in this year. " << endl;
cout<< "Means that the Eas Coast division generated $ " << ECDrevenue << " millions";
return 0;
}