Hi! I need assistance writing the PSEUDOCODE and the SOURCE CODE for the problem listed below! Any help is appreciated, thank you! program5_3.py Write a program about triangles. You need two files , a...


Hi! I need assistance writing thePSEUDOCODEand theSOURCE CODE for the problem listed below! Any help is appreciated, thank you!





program5_3.py


Write a program about triangles. You needtwo files, a module file and an executable file with a main method.

The module file (defines two functions):




  • One function that takes the three sides of a triangle as arguments. Itreturns True if the sides define aright triangle and False if it doesn't.HINT: This is easiest with aMath module function.

  • The other function must useHeron's Formulato calculate andreturn the area of a triangle. Learn about Heron's formula online.


The main file:
Prompt the user to enter the three sides (longest first) of the triangle. Use integers only. Make sure that no side is longer than the sum of the other two sides. Call the function that returns a boolean and use it to output whether the triangle is a right triangle, or not. Call the function that returns the area. Display the value returned withtwo decimal places.


Two Example outputs

Enter longest side of the triangle 14

Enter any another side of the triangle 11

Enter third side of the triangle 10

Not a right triangle

Area is 54.64

>>>

Enter longest side of the triangle 10

Enter any another side of the triangle 8

Enter third side of the triangle 6

Triangle is a right triangle

Area is 24.00



Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here