Computer Studies
A class teacher wants to calculate the average marks obtained by a student in three terms in a class of 50 students. Draw a flowchart and write a program in QBASIC to enter the name and the total marks obtained by a student in three terms. Display the result along with the name.
QBASIC: For-Next Statements
25 Likes
Answer
Flowchart
QBASIC Program
Cls
For I = 1 To 50
Input "Enter name"; N$
Input "Marks of three terms"; T1, T2, T3
AVG = (T1 + T2 + T3) / 3
Print "Name - "; N$
Print "Average marks - "; AVG
Next I
End
Answered By
17 Likes
Related Questions
Draw a flowchart and write a program in QBASIC to enter the name and marks secured in 12 subjects in a term examination. Display the name, total and the average marks.
Draw a flowchart and write a program in QBASIC to calculate the area and the perimeter of 10 different rectangles. Take the length and breadth as inputs and display the result.
Draw a flowchart and write a program in QBASIC to display the sum of the first 10 terms of the series S = 1 + 2 + 4 + 8 + …….
Draw a flowchart and write a program in QBASIC to display 10 different values of the expression (a + b)2. Take the values of a and b as inputs after each iteration.