Question: please answer in C++ and according to the mentioned topic. thank you! Assignment 4 - Giftbox to Tricity - Hy.potenuse You were invited to the




Assignment 4 - Giftbox to Tricity - Hy.potenuse You were invited to the city Tricity, where everything is a triangular shape! To honor the city, you decided to bring some special treats and you decide to put them into triangular box, which you will build. You take three wooden plank and in order to save energy, you decide to build the right-angle triangular box, so that you have to cut only one plank. In order to do that, you use the hypotenuse formula. By knowing the length of two other planks, you calculate how big has the third side has to be. Also, before that you decide to compare both you calculate how big has the third side has to be. Also, before that you decide to compare both planks' lengths (if they are the same, less, or greater), before calculating the hypotenuse. To-Do: User inputs two values for wooden planks. Both those planks are compared if =, and the output should return if those are true/false (1/0); Find the hypotenuse given the formula (hypotenuse =sideli2+side22) and output it following this sentence "The hypotenuse of the triangle is " and round the answer. Sample Input/output: Input: 2.1 2.1 Output: 1 0 0 The hypotenuse of the triangle is 3 Input: 2.9 4.1 Output: 0 1 0 The hypotenuse of the triangle is 5 Topics that will help you towards forming_your solution: - C++ Syntax/Semantics - C++ Input/Output - C++ Variables and Identifiers - C++ Datatypes - C++ Operators - C++ String - C++ Conditional - C++ Math Video references: - C++ Output Variables Identifiers and User Input - C++ Datatypes Operators and String Any topics beyond this scope means you are over-complicating your solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
