1.Write a Pascal program that will read in two integers and then output their sum, difference and product.
2.Write a Pascal program that will convert a number of seconds to the equivalent number of minutes and seconds. Use the MOD and DIV operators.
3.A Celsius (Centigrade) temperature C can be converted to an equivalent Fahrenheit temperature F according to the following formula: F = (9/5) C + 32.
4.Find the value of each of the following expression or explain why it is not a valid expression:
a)2 div 3 + 3 / 3
b)9 / 2 div 5
c)7 mod 5 mod 3
d)12 / 2 * 3
e)(12 + 3 div 2) / (8 ¡V 5 + 1)
f)sqr(sqr(-16))
5.Write Pascal expressions to compute the following:
a)5A ¡V 6BC + 9
b)The square root of a2 + 2b
c)|A / (mn + q)|
6.What is the difference between the following identifier?
a)NUMBER number NumBer _number
b)temp1 Temp_1 Temp1 temp.1
7.Write Pascal statements for the following tasks:
a)Ask the user to enter his height in centimeters (cm) and display it in meter (m) round in 2 decimal places.
b)Display the sum of the ordinal for character in the string ¡§HaHa¡¨.