Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 53ce6c0

Browse files
Sales Prediction
1 parent f583ef7 commit 53ce6c0

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
The East Coast sales division of a company generates 62 percent of total sales.
3+
Based on that percentage, write a program that will predict how much the East Coast division will generate if the company has 4ドル.6 million in sales this year.
4+
Hint: Use the value 0.62 to represent 62 percent.
5+
*/
6+
7+
package com.challenges;
8+
9+
public class SalesPrediction {
10+
public static void main(String [] args) {
11+
12+
// Declare Variables
13+
double totalSales = 4600000;
14+
15+
// Output
16+
System.out.println("The East Coast sales division will make 62% of 4ドル.6 Million: " + (0.62 * totalSales));
17+
}
18+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /