subject

[25] write a c++ console application that prompts the user to input the length of a triangle (a, b, and c) and outputs the shape of the triangle. a) define an enumeration type triangletype that has values: i. equilateral, which is if all sides are the same; ii. scalene, which is if no two sides are the same; iii. isosceles, which is if any two of three sides are the same; iv. and notriangle. b) write a function triangleshape that takes as parameters three numbers, each of which represents the length of a side of the triangle. the function should return the shape of the triangle. (note: in a triangle, the sum of lengths of any two sides must be greater than the length of the third side.) c) write a sentinel controlled loop, that prompts the user to run the program until they enter the value "x", which will terminate the program. use appropriate parameters and do not include any global variables. take a screenshot of your output with the following inputs: i. 3,4,5 ii. 1,7,3

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Difference between ancient and modern mode of information transmission
Answers: 1
You know the right answer?
[25] write a c++ console application that prompts the user to input the length of a triangle (a, b,...
Questions
question
Mathematics, 05.05.2021 08:40
question
Geography, 05.05.2021 08:40
question
Mathematics, 05.05.2021 08:40
Questions on the website: 13722367