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, 22.06.2019 00:20
What’s resistance in an electrical circuit ?
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. â–ş print out all positive integers from 1 to 100, inclusive and in order. â–ş print messages to standard output, matching the sample output below. â–ş in the output, state whether the each integer is 'odd' or 'even' in the output. â–ş if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. â–ş if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. â–ş design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
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
Physics, 06.06.2020 15:58
Questions on the website: 13722361