switch and loop practice
switch and loop practice
2. Menu Display:
a. The program first displays a simple menu with four options:
i. Start New Game
ii. Load Game
iii. Options
iv. Exit
3. Write a Simple program in C++ to calculate the area of Circle,
Square, and Rectangle using switch statement.
Loop
1. Write a C++ program to print all numbers between a and
b (a and b inclusive) using for loops.
2. Write a program to calculate the sum of all numbers
entered.
4.Write a Program that displays the following menu of Fast Food Cafe:
1. Pizza Deal
2. Burger Deal
If user go for pizza deal then the program further shows the following menu:
1. Excel Pizza
2. Medium Pizza
3. Small Pizza
If user go for Burger deal then the program further shows the following
menu:
1. Zinger Burger
2. Cheese Burger
User either can purchase Pizza or Burger. If user purchase more than 1 pizza
also offer him/her 1.5lt free Sprite.