Practice Perl Programs Set #1
(we'll do these in class)

Work with a partner on these. Show your working program to either Anthony or me when you are done. In all cases, you should write complete perl programs.


1) Calculate tax due with AMT (alternative minimum tax).
Your program should prompt (ask) the user to enter his/her earnings for 2011. It should then calculate and output
the amount of tax to pay. The amount of tax to pay is the larger of 5000.00 or 23% of earnings entered.

2) Shopping coupons for money!
Your program should prompt (ask) the user how many shopping coupons he/she has and output how much money
he/she will receive for redeeming the coupons. Coupons are redeemed according to the following table:

At least But not more than Amount
0 999 0.00
1000 5000 23.00
5001 10000 65.00
10001 50000 93.00
50001 156.00 + 0.01 for each coupon over 50001


3) Sort 2 numbers
Ask the user to enter 2 numbers. Your program should output the two numbers in increasing order. Print each number on a seperate line.

4) Sort 2 names(almost the same problem as the previous one)
Ask the user to enter 2 names. Your program should output the two names in alphabetical order. Print each name on a seperate line.