(5/5)

### you will write a Python 3.x program to calculate the length of the hypotenuse (side C) of a right triangle, given the lengths of the other two sides (A & B) as provided by the user.

INSTRUCTIONS TO CANDIDATES

Assignment 01A – Triangle Calculator

ALIGNMENT: The purpose of this assignment is to provide practice with variables, getting user input and displaying formatted output. You will also need to cast (convert) data types from string to float (with the input) and vice-versa (with the output).

ASSIGNMENT: In this assignment, you will write a Python 3.x program to calculate the length of the hypotenuse (side C) of a right triangle, given the lengths of the other two sides (A & B) as provided by the user. The program will also calculate the area of the triangle and the perimeter (the sum of the three sides). Other specifications:

• Save your file with as “CIS156_01A_Triangle_YourLastName.py”

• Print the project tile on the first line

• Print the next line showing your name as the developer, followed by a blank line (remember you can use \n)

• Then provide a description of what the program

• The user should be prompted to enter the length of sideA and then prompted to enter

• Convert the string input to float data

• Write statements that use math operations to calculate the hypotenuse, area, and Remember the Pythagorean Theorem? . . . C2 = A2 + B2 …. Or….. C = square root of A2 + B2 (by the way the square root is the same as the value raised to the power of 0.5)

The area is half of sideA length * sideB length. The perimeter is the sum of the three sides.

(5/5)

## Related Questions

##### . Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

##### . The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

##### . Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

##### . SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

##### . Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

### Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed ##### Abhilekh Nath DasComputer science
(/5)

Hire Me ##### Mahmoud HamdyEngineering
(/5)

Hire Me ##### Vaibhav SankhlComputer science
(/5) 