grodek118

Energy Drink Survey

Aug 31st, 2022
946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. package com.company;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         double surveyed = 12467;
  8.         double customers;
  9.         double citrusDrink;
  10.  
  11.         customers = surveyed * 0.14;
  12.         citrusDrink = customers * 0.64;
  13.  
  14.         System.out.println("Customers surveyed: " + surveyed);
  15.         System.out.println("One or more drinks per week: " + customers);
  16.         System.out.println("Citrus-flavoured drink: " + citrusDrink);
  17.  
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment