Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROPERTY OF SINCLAIR COLLEGE DO NOT DISTRIBUTE CIS 1111 More Functions Assignment (20 Points) Description: For this assignment, you will create one function to calculate

image text in transcribed
PROPERTY OF SINCLAIR COLLEGE DO NOT DISTRIBUTE CIS 1111 More Functions Assignment (20 Points) Description: For this assignment, you will create one function to calculate the hypotenuse and another function to calculate the area of a right triangle. The user will input the lengths of the two legs (the sides that intersect to form the right angle). Requirements: 1. Collect the length of the two legs of a right triangle from the user. 2. The first function will receive the lengths of the 2 legs of a right triangle as parameters and will return the length of the hypotenuse. 3. The second function will receive the lengths of the 2 legs of a right triangle as parameters and will return the area of the triangle. 4. Display the results of the 2 functions in the main function. Display the hypotenuse rounded to the nearest tenth. Do not round the area. 5. The output must be labelled and easy to read as shown in the sample output below. 6. The first 4 lines of your program should contain the following identification comments: a. // Name b. // Date c. // Program Name d. // Description Sample Output: Please enter the two legs of the right triangle: 8 10 The length of the hypotenuse is: 12.8 The area of the right triangle is: 40.0 Test Data: Side 1 Side 2 Hypotenuse Area 8 10 12.8 40.0 ??

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

=+Why is this a steady state?

Answered: 1 week ago