Pascal 問題(急~識呢d的快d救我~~~)
本文來自:☆夜玥論壇ק★http://ds-hk.net★ 轉帖請註明出處! 發貼者:
迷.占 您是第1808個瀏覽者
我想有人可以同我解下呢d野其實叫我做咩?可唔可以同我解埋步驟?因為我係啱啱學的,面對老師的問題我一頭霧水。
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 – 5 + 1)
f)sqr(sqr(-16))
5.Write Pascal expressions to compute the following:
a)5A – 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”.
仲有咩叫mod同div?
有咩website啱我呢d新手睇呢?
咩軟件啱用來寫Pascal呢?
我阿sir就教我用qp....咩來架?點用呢?
一次個答哂係好難....因為我真係唔知點寫.....又睇唔明...希望你地可以答我...thx!!!!