-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMain.java
More file actions
33 lines (21 loc) · 1.02 KB
/
Main.java
File metadata and controls
33 lines (21 loc) · 1.02 KB
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
30
31
32
package org.codedifferently;
import java.util.Scanner;
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
public static void main(String[] args) {
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
// to see how IntelliJ IDEA suggests fixing it.
RecieptGenerator calculateTax = new RecieptGenerator();
Scanner scanner = new Scanner(System.in);
System.out.println("What is your Name?");
String customerName = scanner.next();
System.out.println("What is your Budget?");
double budget = scanner.nextDouble();
System.out.println("----WELCOME TO THE DEV GROUP'S MYSTERY SHACK----");
calculateTax.receiptCode(customerName, calculateTax.randomIdCode());
double total = calculateTax.itemTax(calculateTax.itemPrices());
calculateTax.canYouAffordIt(total, budget);
scanner.close();
}
}