Question: Please use Python Two points in a plane are specified using the coordinates (x1,yl) and (x2,y2). Write a pro- gram that calculates the slope of
Please use Python
Two points in a plane are specified using the coordinates (x1,yl) and (x2,y2). Write a pro- gram that calculates the slope of a line through two (non-vertical) points entered by the user. stope -- r2 rl Write a program that accepts two points (see previous problem) and determines the distance between them distance = / (x2-x1)2 + (y2-y1)2 The Gregorian epact is the number of days between January 1st and the previous new moon. This value is used to figure out the date of Easter. It is calculated by these formulas (using int arithmetic): Cyear//100 epact = (8 + (?//4)-C+ ((8C+ 13)//25) + 11 (yeaM.19))%30 Write a program that prompts the user for a 4-digit year and then outputs the value of the epact. Write a program to calculate the area of a triangle given the length of its three sides a, b, and c using these formulas: a+b+o Write a program to determine the length of a ladder required to reach a given height when leaned against a house. The height and angle of the ladder are given as inputs. To compute length use height sin angle length - Note: the angle must be in radians. Prompt for an angle in degrees and use this formula to convert: raaians -odegrees 180
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
