Skip to main content

Programming using Java Hands On - Control Structures | Bill Generation

Bill Generation

Tom went to a movie with his friends in a multiplex theatre and during break time he bought pizzas, puffs and cool drinks. Consider   the following prices : 

  • Rs.100/pizza
  • Rs.20/puffs
  • Rs.10/cooldrink

Generate a bill for What Tom has bought.


Sample Input 1:

Enter the no of pizzas bought:10
Enter the no of puffs bought:12
Enter the no of cool drinks bought:5

Sample Output 1:

Bill Details
No of pizzas:10
No of puffs:12
No of cooldrinks:5
Total price=1290
ENJOY THE SHOW!!!

Bill Generation   Tom went to a movie with his friends in a multiplex theatre and during break time he bought pizzas, puffs and cool drinks. Consider   the following prices :   Rs.100/pizza Rs.20/puffs Rs.10/cooldrink Generate a bill for What Tom has bought.    Sample Input 1:  Enter the no of pizzas bought:10 Enter the no of puffs bought:12 Enter the no of cool drinks bought:5  Sample Output 1:  Bill Details No of pizzas:10 No of puffs:12 No of cooldrinks:5 Total price=1290 ENJOY THE SHOW!!!


 

Result Description

Summary of tests
*Note: All the test cases might not have same weightage
+------------------------------+
|  6 tests run/ 6 tests passed |
+------------------------------+
 

Comments

Subscribe to Get's Answer by Email