Overlaps

Write a program that reads the coordinates of four point points, the
former two defining one rectangle and the
latter two defining another one. The program must read the coordinates
of a fifth point and say whether the point
is inside both rectangles, inside one of them only, or out of both.
Your Change, please

Write a program that reads the total cost of a purchase and an amount of
money that is paid to buy it. Your
program should output the correct change specifying the amount of notes
(50, 20, 10, 5) and coins (2, 1, 0.50, 0.20,
0.10, 0.05, 0.02, 0.01) needed.