KnowledgeBoat Logo

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

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. Class 7 ICSE Understanding Computer Studies.

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