- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSalesPrediction.java
More file actions
Latest commit
20 lines (15 loc) · 643 Bytes
/
Copy pathSalesPrediction.java
File metadata and controls
20 lines (15 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//SalesPrediction.java
// This program predicts the sales of a company's sales division
publicclassSalesPrediction
{
publicstaticvoidmain(String[] args)
{
//Variables to hold the sales data
doubletotalyearlySales = 4600000;
//Calculate sales prectiction of the East Coast division
doublesalesPrediction = totalyearlySales * 0.62;
//Display sales prectiction of the East Coast division
//For some reason if I wrapped the ouput, it would error on compile
System.out.println("The East Coast sales division will generate $" + salesPrediction + " if the company earns $4.6 million");
}
}