Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am working on a c++ program that describes triangles. The task at hand is for

ID: 3531052 • Letter: I

Question

I am working on a c++ program that describes triangles. The task at hand is for the program is to find the area and perimeter, and also classify what type of triangle it is. This is the format it needs to be in: When A is seleced: T R I A N G L E P R O G R A M M E N U ========================================== Compute area and perimeter...............A Classify.................................B Quit.....................................Q Select An Option-> A Enter a triple-> 7.5 4.5 6 The triangle [7.500, 4.500, 6.000] has an area of 13.50000 and a perimeter of 18.00000. When B is selected: T R I A N G L E P R O G R A M M E N U ========================================== Compute area and perimeter...............A Classify.................................B Quit.....................................Q Select An Option-> B Enter a triple-> 3 4 5 The classification of triangle [3.000, 4.000, 5.000] is: Right: Yes Isosceles: No Scalene: Yes Equilateral: No When Q is selected: T R I A N G L E P R O G R A M M E N U ========================================== Compute area and perimeter...............A Classify.................................B Quit.....................................Q Select An Option-> Q Goodbye! When invalid options are entered the program it outputs: T R I A N G L E P R O G R A M M E N U ========================================== Compute area and perimeter...............A Classify.................................B Quit.....................................Q Select An Option-> A Enter a triple-> 1 2 5 [1.000, 2.000, 3.00] do not satisfy the triangle inequality. then it sends the program back to the menu. I have no idea on where to start this program, and some assistance would be greatly appreciated. Thanks again!

Explanation / Answer

This is not a difficult problem. Are you familiar with functions?

the outline of the problem would be to create 3 functions:

menu

calculate

classify

main


in main, declare 3 doubles for the triple (or 1 array of 3 int) and a char for option

do{

c all menu

use switch (option) to call subsequent

}while(option!='Q');


end main


define other functions


Tell me if you need more help than this

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote