Advertisement
Spocoman

08. Basketball Equipment

Aug 19th, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class BasketballEquipment {
  4.     public static void main(String[] args) {
  5.  
  6.         Scanner scanner = new Scanner(System.in);
  7.         int tuitionFee = Integer.parseInt(scanner.nextLine());
  8.  
  9.         double shoesPrice = tuitionFee * 0.6;
  10.         double teamClothes = shoesPrice * 0.8;
  11.         double ball = teamClothes / 4;
  12.         double accessories = ball / 5;
  13.  
  14.         double sum = tuitionFee + shoesPrice + teamClothes + ball + accessories;
  15.  
  16.         System.out.println(sum);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement