1. Write a complete program (algorithm, pseudocode & raptor) that converts between degrees Fahrenheit and Celsius. The user must first enter the conversion that is desired (F to C or C to F) using any means you want and then enter the value to be converted.
The formulas for conversion are:
F = 9/5 C + 32 and C = 5/9 (F - 32)
2. The Fast freight shipping company charges the following rates:
Weight packages | Rate per Pound |
2 pound or less | $1.50 |
Over 2 pounds but not more than 6 pounds | $3.00 |
Over 6 pounds but not more than 10 pounds | $4.00 |
Over 10 pounds | $4.75 |
Write both algorithm and pseudocode and code into raptor that asks the user to enter the weight of a package then displays the shipping charges.
3. A software company sells a package that retails for $99. Quantity discounts are given according to the following table:
Quantity | Discount |
10 - 19 | 10% |
20 - 49 | 20% |
50 - 99 | 30% |
100 or more | 40% |
Write both algorithm and pseudocode. For the raptor, ask the user to enter the number of packages purchased. The program should then display the amount of the discount and the total amount of the purchase after the discount.