2- Write a C+ program that calculates the area of a Rectangleif the user inserts R' or Y, and the area of a Triangle if the user insert T or ", using the following formulas:...


2- Write a C+ program that calculates the area of a Rectangleif the user inserts R' or<br>Y, and the area of a Triangle if the user insert T or

Extracted text: 2- Write a C+ program that calculates the area of a Rectangleif the user inserts R' or Y, and the area of a Triangle if the user insert T or ", using the following formulas: RectangleArea-Height*Width; Triangle Area-0.5* Base *Height; Where the values of the base, height, and width inserted by the user from the keyboard. Please choose the shape type: "R' or 'r' to calculate the Area of a Rectangle, T'or 't' to calculate the Arca of a Triangle R Please insert the height of the Rectangle: 10 Insert the width of the rectangle: The Area of the Rectangle is: 50 Piease choose the shape type: "R'or 'r' to calculate the Area of a Rectangie, T or 't' to calculate the Area of a Triangle Please insert the base of the Triangle: 10 insert the height of the Triangle: The Area of the Rectangle is 10 Spring 2021

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here