Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. System.out.println("Enter the number of people:");
  2. double numPeople = (double)IO.readInt();
  3. System.out.println("Enter the number of slices per person:");
  4. double slices = (double)IO.readInt();
  5. System.out.println("Enter the number of cans per person:");
  6. double cans = (double)IO.readInt();
  7. System.out.println("Enter the price of each pizza:");
  8. double pizzaCost = IO.readDouble();
  9. System.out.println("Enter the number slices in the pizza:");
  10. double slicesinpie = (double)IO.readInt();
  11. System.out.println("Enter the price of the soda:");
  12. double sodaCost = IO.readDouble();
  13. System.out.println("Enter the number of cans in each case:");
  14. double cansincase = (double)IO.readInt();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement