Advertisement
GabrielHr00

07. Food Delivery

Jan 5th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class FoodDelivery {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         int ch = Integer.parseInt(scanner.nextLine());
  7.         int f = Integer.parseInt(scanner.nextLine());
  8.         int ve = Integer.parseInt(scanner.nextLine());
  9.  
  10.         //•   Пилешко меню –  10.35 лв.
  11.         //•   Меню с риба – 12.40 лв.
  12.         //•   Вегетарианско меню  – 8.15 лв.
  13.         double all = (ch * 10.35) + (f * 12.40) + (ve * 8.15);
  14.         double dessert = all * 0.20;
  15.         double alll = all + dessert + 2.50;
  16.         System.out.println(alll);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement