Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package SimpleCalcExams;
- import java.util.Scanner;
- public class VegetableMarket {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double priceVegetables = Double.parseDouble(scanner.nextLine());
- double priceFruits = Double.parseDouble(scanner.nextLine());
- double kilosVegetables = Double.parseDouble(scanner.nextLine());
- double kilosFruits = Double.parseDouble(scanner.nextLine());
- double totalIncomeBGN = priceFruits * kilosFruits + priceVegetables * kilosVegetables;
- double totalIncomeEUR = totalIncomeBGN / 1.94;
- System.out.println(totalIncomeEUR);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment