0% found this document useful (0 votes)
6 views2 pages

BASIC Programming Assignment

The document contains three BASIC programming assignments: a simple program that displays a hello message, a GPA grading system that assigns grades based on user input scores, and a multiplication table for the number 2. Each program includes basic commands such as PRINT, INPUT, and control structures like IF statements and loops. The assignments demonstrate fundamental programming concepts in BASIC.

Uploaded by

ujadugheledavid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

BASIC Programming Assignment

The document contains three BASIC programming assignments: a simple program that displays a hello message, a GPA grading system that assigns grades based on user input scores, and a multiplication table for the number 2. Each program includes basic commands such as PRINT, INPUT, and control structures like IF statements and loops. The assignments demonstrate fundamental programming concepts in BASIC.

Uploaded by

ujadugheledavid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BASIC Programming Assignment

1. Basic Program (Hello Message)

CLS
PRINT "My Basic Program"
PRINT "Press any key to see a message..."
DO WHILE INKEY$ = ""
LOOP
PRINT "Hello, this is a basic program!"
END

2. GPA Grading System

CLS
INPUT "Enter your score: "; score

IF score >= 70 AND score <= 100 THEN


PRINT "Grade: A"
ELSEIF score >= 60 AND score <= 69 THEN
PRINT "Grade: B"
ELSEIF score >= 50 AND score <= 59 THEN
PRINT "Grade: C"
ELSEIF score >= 45 AND score <= 49 THEN
PRINT "Grade: D"
ELSEIF score >= 40 AND score <= 44 THEN
PRINT "Grade: E"
ELSEIF score >= 0 AND score <= 39 THEN
PRINT "Grade: F"
ELSE
PRINT "Invalid Score"
END IF

END

3. Multiplication Table (2 Times Table)

CLS
PRINT "Multiplication Table of 2"
FOR i = 1 TO 12
PRINT "2 x "; i; " = "; 2 * i
NEXT i
END

You might also like