Computer Sc - Algorithems and Flow Charts - HOTS
The complete solutions for the HOTS (Higher Order Thinking Skills) and Lab Zone sections from page 143 of your lesson.
HOTS (Higher Order Thinking Skills)
Study the image and answer the questions that follow.
Q1. Identify the terminal box(es) and label them as A.
Answer: The terminal boxes are the rounded rectangles at the very top and bottom of the flowchart.
A: Start (at the top)
A: Stop (at the bottom)
Q2. Identify the Input/Output box(es) and label them as B.
Answer: These are the parallelograms used for reading data or printing results.
B: Read Class and Tuition Fee of the student
B: Print Fee
Q3. Identify the Process box(es) and label them as C.
Answer: These are the rectangles where calculations are performed.
C: Fee = Tuition Fee + 200
C: Fee = Tuition Fee + 500
Q4. Is a Decision box being used in the above flowchart? If yes, label it as D.
Answer: Yes, a Decision box is being used. It is the diamond-shaped box in the middle.
D: Is Class >= 6?
Lab Zone
A. Write an algorithm and draw the flowchart to find the difference of two numbers.
Algorithm:
Start
Input two numbers (A and B).
Calculate the difference: Difference = A - B.
Display (Print) the Difference.
Stop
Flowchart:
Code snippetgraph TD Start([Start]) --> Input[/Input A, B/]
B. Draw a flowchart to check whether the entered number is odd or even.
Algorithm (for context):
Start
Input a number (N).
Check if N is divisible by 2 (Remainder = 0?).
If Yes, Display "Number is Even".
If No, Display "Number is Odd".
Stop
Flowchart:
Code snippetgraph TD
Comments
Post a Comment