Classwork/Homework:
- Write a program, MidPoint_YI.py that calculates the midpoint between two points on the number line.
Example: Let’s say x1 = 5 and x2 = 8, the midpoint on the number line is the point 6.5 - Write a program, IsItRight_YI.py that determines if the three values given make up the angles of a right triangle.
In all your programs, make sure to include the following:
1. The header
2. A welcome message to the user
3. Be clear when prompting the user
4. Print the results with a message
5. At exit, print a goodbye message.
Homework:
A mortgage calculator program, YI_mortgage.py prompts the user for:
1. The amount to be borrowed
2. The number of years to pay it back
3. The rate charge for borrowing the money
Then prints back what each payment will be. An added feature would be to calculate how much the total amount paid would be at the end of the years the money was borrowed.
This is an example of what a GUI mortgage calculator would look like. You can not implement a GUI at this point but your program can have the same functionality.