Question
I need some help with my homework please
Write a C++ program to prompts the user to enter the first character of shape name (Cycle, Rectangle, or Triangle). Then calculate the area of that shape.
„h If the user enters another character the program should print: You should insert C || c, R || r, or T || t „h
Output
Note:
1- Using Nested if ¡V else statements ). 2- Using Switch Structure
Write a C++ program to prompts the user to enter the first character of shape name (Cycle, Rectangle, or Triangle). Then calculate the area of that shape.
„h If the user enters another character the program should print: You should insert C || c, R || r, or T || t „h
Output
Note:
1- Using Nested if ¡V else statements ). 2- Using Switch Structure
Answers
There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. Format your dollar amount in a fixed-point notation with two decimal points and make sure the decimal point is always displayed.
Related Questions
Write a program that prompts the user to enter a temperature, followed by a letter representing Cels...
Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include err...
Design and plan the logic for a program that prompts the user for and allows the user to enter TWO n...
Write a program in C language that prompts a user to enter five different marks for a test in an arr...