Computer Studies
Correct the errors in the following flowchart and write the program:

QBASIC: For-Next Statements
4 Likes
Answer
Flowchart

QBASIC Program
Cls
Input "Enter a value"; N
For I = 1 To N
Input "ENTER YOUR HEIGHT IN METRES"; M
CM = M * 100
Print CM
Next I
End
Output
Enter a value? 2
Enter your height in metres? 4
400
Enter your height in metres? 5
500
Answered By
3 Likes
Related Questions
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.
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.
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.
Correct the errors in the following flowchart and write the program: