Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package examPreparation;
- import java.util.Scanner;
- public class P01OscarsCeremony {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int hallRent = Integer.parseInt(scanner.nextLine());
- double statuette = hallRent * 0.7;
- double catering = statuette * 0.85;
- double sound = catering / 2;
- double expenses = statuette + catering + sound + hallRent;
- System.out.printf("%.2f", expenses);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement