Archive for the ‘Info Tech’ Category
WHILE Question
Friday, November 7th, 2008Write a structured algorithm which prompts the user to read the scores for a number of batsmen who played in a cricket match and the number of extras made by the team. Calculate and output the total runs made by the team. The data is terminated by 9999
If you did this one already, create your own and solve it
The WHILE Construct
Friday, October 31st, 2008 An initial value for the condition
WHILE [condition] DO
[Instructions which are to be repeated]
ENDWHILE
Try this: Write an algorithm to calculate and print the average age of three students terminated by 999
Looping - The FOR Construct
Friday, October 24th, 2008The For Construct
FOR <variable> = <starting> TO <ending> DO
<instructions to be carried out>
ENDFOR
Create your own algorithm question & solve it as well….
Programming Questions
Friday, September 19th, 20081. Explain the difference between the following:
a. Logic and syntax error
b. Source and object code
c. Compiling and executing
d. Machine language and assembly language
e. While loop and For loop
IF Construct
Friday, September 19th, 20081. Read the temperature. If temperature (temp) is 25º, output ‘Room temperature’
2. Read a number N; if N is greater than 500, add 50 to the number. Print the number.
3. Input the score of a person; if the score is greater than 65, output ‘Pass’, otherwise output ‘Fail’.
Find Amount Due
Wednesday, September 10th, 2008Write a program to ask the user to enter price & quantity of an item. The program should also compute and display the amount due.
Instructions
Friday, September 5th, 2008What are the intructions to:
1. get information into the computer
2. promp the user to input information
3. get output from the program.
4. Write a structured algorithm which requests the user to input the price of an item. The algorithm should also allow the user to enter the price and out it with suitable label.
5. Write a structured algorithm to read the licence plate number of a bus, the route it will be travelling and the number of passengers it contains. Output the information appropriately labelled.
Protocols
Friday, September 5th, 20081. What is meant by the term ‘Protocol’?
2. HTTP, PPP, TCP/IP, FTP, give the abreviations
3. What is a Network & list some disadvanatges of networking.
Developing an Algorithm
Friday, September 5th, 20081. What is a pseudocode?
2. What are the 2 types of data?
3. What are the advantages of using variables over constants?