This information already appears in the system design

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: in this examination and then to print it along with his/her roll number and name. Solution: The flowchart for the algorithm of this problem is shown in Figure 11.4. The first symbol is a terminal symbol labeled "Start". It shows that this is the starting point or beginning of our flowchart logic. It does not mean that the computer is to be turned on or that anyone is to press a start button. The second symbol is an I/O symbol that is labeled specifically to show that this step is "Read input data". This step will input the roll number, name, and the marks obtained by the student from an input device into the main storage of the computer system. The third symbol is a processing symbol, which is suitably labeled to indicate that at this step, the computer will add the marks obtained by the student in various subjects and then store the sum in a memory location, which has been given the name Total. The fourth symbol is again a processing symbol. The label inside it clearly indicates that the percentage marks obtained by the student is calculated at this stage by dividing Total by 10 and the result is stored in a memory location, which has been given the name Percentage. The fifth symbol is an I/O symbol and is labeled "Write output data". This logical step in the flowchart outputs the data desired as output (roll number, name and percentage marks obtained) on an output device such as a printer. Note that details such as the roll number, name and the marks or percentage being input or output are not a part of the logical steps of data input or data output operations. This information already appears in the system design documents and will be included in the computer program as input and output descriptions. The sixth symbol is a terminal symbol labeled "Stop". This symbol indicates the conclusion of our logic, that is, the conclusion of the computer program. The various symbols used in the flowchart are connected by directed flow lines to indicate the sequence in which the instructions are to be executed. Start Read input data Add marks of all subjects giving Total Percentage = Total 110 Write output data...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online