Thursday, September 15, 2005

Exam Revision 1

QUESTION 1

Sectors Control Unit Cylinders Program ALU Backing Store Internal Memory Track



In order to execute a ____________________ the computer must first load a file from its __________________ into its ____________________. The ___________________ then picks each instruction in turn, passing any mathematical or logical statements over to the ____________ until the entire sequence of instructions is completed.



Draw the process outlined above using any diagram you like, then copy the completed paragraph into your theory notebook.


At the end of this lesson, the completed answer will be posted. You may post any questions you like.

QUESTION 2

Write an algorithm and pseudocode to add 3 numbers entered by a user and find the average. The printed output should be The total is (total) and the average is (average)

QUESTION 3 (homework)

Write an algorithm and pseudocode to allow a teacher to enter all the test scores for a class of 10 students. The program should output the average score in the test.

You may post questions or comments to help complete the task

2 Comments:

Blogger John S said...

In order to execute a program the computer must first load a file from its backing store into its internal memory. The control unit then picks each instruction in turn, passing any mathematical or logical statements over to the ALU until the entire sequence of instructions is completed.

6:32 AM  
Blogger John S said...

Algorithm
Input first number
Input second number
Input third number
Add first, second and third numbers : store as Total
Divide Total/3 : store as Average
Display Total and Average
Pseudocode
Input First
Input Second
Input Third
Total=First+Second+Third
Average=Total/3
Print Total, Average

6:43 AM  

Post a Comment

<< Home