Write C programs to perform the following tasks. Use CEILIDH (See
Appendix ) to input and run programs if you wish. Use CEILIDH
also to test and mark your program.
The location of the exercise in ceilidh is given in () at the end of each question
100.0 degrees Celsius converts to 212.0 degrees Fahrenheit.
(unit1:introduction:c-f).
(unit1:introduction:mlp).
(unit1:introduction:prn).
Your output should take the form: The area of a circle of radius ... units is .... units.
If you want to be clever, and have looked ahead in the notes, print the message Error: Negative values not permitted. if the input value is negative.
(unit2:basics:ccl)
Assume 2.54 centimeters per inch, and 12 inches per foot.
If the input value is 333.3, the output format should be:
333.3 centimeters is 10 feet 11.2 inches.
(unit2:basics:cms).
7322 seconds is equivalent to 2 hours 2 minutes 2 seconds.
(unit2:basics:hms).
The first integer value represents a time of day on a 24 hour clock, so that 1245 represents quarter to one mid-day, for example.
The second integer represents a time duration in a similar way, so that 345 represents three hours and 45 minutes.
This duration is to be added to the first time, and the result printed out in the same notation, in this case 1630 which is the time 3 hours and 45 minutes after 12.45.
Typical output might be
Start time is 1415. Duration is 50. End time is 1505. There are a few extra marks for spotting. Start time is 2300. Duration is 200. End time is 100.
(unit2:basics:tt).