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
1 answer
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.