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 basketballFee = Integer.parseInt(scanner.nextLine());
- //double sneakersPrice = basketballFee - (basketballFee * 0.40);
- double sneakersPrice = basketballFee * 0.60;
- //double setPrice = sneakersPrice - (sneakersPrice * 0.20);
- double setPrice = sneakersPrice * 0.80;
- double ballPrice = setPrice * 1/4;
- double accessPrice = ballPrice * 1/5;
- double finalPrice = basketballFee + sneakersPrice + setPrice + ballPrice + accessPrice;
- System.out.println(finalPrice);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement