Exercise 8 -- First Class usage Create a program that will take the coordinates of two points on a rectangle (the upper left corner and lower right corner) then allow the user to select one of the following options: calculate area, calculate perimeter, print an on-screen sample of the rectangle. The program should use the following class outline: >>class Rect: ... def __init__(corner1, corner2): ... #calculate and print height and width ... def area(): ... def perimeter(): ... def __repr__: ... # draw a rectangle of given size Exercise 9 -- Advance Class usage Create a Money calculator that takes numbers as input and displays all output in currency format (12345 would be displayed Euro 12.345,00). The program must use a class and must have operator overloads for addition, subtraction, multiplication, and division so that when a number is added to the original amount, the result is displayed in money format as well. Exercise 10 -- install pipeline Go to the local /data disk and create a personal directory there. Get the full python code from the cvs repository. The LDAC software is installed in the /software/ldac path. Make sure this externlal package can be found in your PATH by adding the following three lines to the ~/.settings file: if ( -d /software/ldac/scripts ) then source /software/ldac/scripts/pipe_env endif and source this file (it will be sourced each time you login). Copy the testdata to the local disk (it is at /software/astrowise/unittestdata) because you will need write access to this directory. Modify the Environment.cfg file to suit your needs. Run the unittests in the astro/test directory. Exercise 11 -- run Recipes Go to the Recipes directory and run some of the recipes. (In the directory /software/astrowise/recipedata you may find some example fits files for the Recipes). Exercise 12 -- run in parallel mode Go to the parallel directory and start a number of clients and run the example code. As a bonus, you might run one of the recipes in the parallel mode...