Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete these problems and submit the whole notebook 1. The area of a triangle is calculated using the following equation area = (base x height).
Complete these problems and submit the whole notebook 1. The area of a triangle is calculated using the following equation area = (base x height). Write a Python function to calculate the area of triagle when the base and height values are provided through formal parameters. 2. Write a function to calculate the perimeter of a triangle. For this implementation, the function asks the user to enter the sides of a triangle and calculates its perimeter. Note, the perimeter of traingle is the summation of all three sides (so, if a, b and c are the lengths of each side of a traingle then the perimeter is a + b + c). 3. If the coordinates of a point is given (x, y) in 2D, the distance from the origin is: d= 7x2 + y2. Write a function to calculate the distance of a point from the origin. (you can use parameter or user input to implement this function) In [ ]: In [ ]: In [ ]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started