GNVQ
Advance IT Task 1. Write a program to input a temperature in degrees Fahrenheit and display the equivalent temperature in degrees Centigrade. The formula for conversion is :-
Centigrade = (Fahrenheit -32)* 5/9.
Task 2. Take the program in task 1 and alter it so that it will convert more than one temperature if the user requests it.
Task 3. Write a program to input the length and width of a rectangular garden. Calculate the area of the garden and the cost of turfing the area, if a border of 0.5m is left around the perimeter of the garden. The cost of the turf is £1.25 per square metre. Display the result of these calculations.
Task 4. Take the declaration section of the "Bike Program" that you coded in the first session. Now add the extra code necessary to produce a working program, given that the inputs are the number of days of hire, the season and the name of the customer. The output should be a bill giving the hire charge.
Task 5. Take the program in task 4 and add instructions to cause the program to repeat until the user wishes to finish.
|
|
|
|