KnowledgeBoat Logo

Computer Studies

Correct the mistakes in the following flowchart and write the program. The given flowchart is to accept the length in centimeters and express it in metres (if the length exceeds 100 centimeters or more), otherwise in centimeters.

Correct the mistakes in the given flowchart to accept the length in centimeters and express it in metres (if the length exceeds 100 centimeters or more), otherwise in centimeters. Class 7 ICSE Understanding Computer Studies

QBASIC: Conditional Statements

14 Likes

Answer

Flowchart

Corrected flowchart to accept the length in centimeters and express it in metres (if the length exceeds 100 centimeters or more), otherwise in centimeters. Class 7 ICSE Understanding Computer Studies

QBASIC Program

Cls
Input "ENTER LENGTH"; A
If A >= 100 Then
    M = A * 100
    Print M
Else
    Print A
End If
End

Output

ENTER LENGTH? 562
56200

Answered By

6 Likes


Related Questions