Lab 6: Week of Sep 08-Sep 14
 



1. Write a program that asks user for an integer and then prints out all
its factors. For example when user enters 150 the program prints 2, 3, 5, 5.

2. Write a unit conversion program. Ask the user from which unit they
want to convert to another unit. The units are floz (fluid ounce), oz
(ounce), gal (gallon), lb (pound), in (inch), ft (foot), mi (mile), kg,
ml (milli litre), l (litre), g (gram), mm, cm, m, km. Reject
incompatible conversions such as kg to mm. Ask the value to be converted
and display the results. The dialogue should look something like
(however, you are encouraged to innovate!):

Convert from?
gal
Convert to?
ml
Value?
2.5

2.5 gallon = 9462.5 ml

Another conversion (type yes or no)?
xyz
type yes or no
yes
.
.
.
.