Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class BasketballEquipment {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int tuitionFee = Integer.parseInt(scanner.nextLine());
- double shoesPrice = tuitionFee * 0.6;
- double teamClothes = shoesPrice * 0.8;
- double ball = teamClothes / 4;
- double accessories = ball / 5;
- double sum = tuitionFee + shoesPrice + teamClothes + ball + accessories;
- System.out.println(sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement