These are some common Quick Basic programs by which almost every student starts his programming. Quick Basic is not obsolete yet, it’s still used to introduce students to the programming world. So try this and write more programs! I have run all this programs, so be sure that all the programs are correct.
***************
1
***************
‘Program to calculate total and average marks of two subjects
MarkInPhysics = 80
MarkInMath = 70
TotalMark = MarkInPhysics + MarkInMath
AverageMark = TotalMark / 2
PRINT TotalMark
PRINT AverageMark
END
***************
2
***************
REM To calculate the total and average mark
CLS
INPUT “Physics”; phy
INPUT “Mathematics”; math
Total = phy + math
Average = Total / 2
PRINT “Total=”; Total
PRINT “Average=”; Average
END
***************
3
***************
‘This program calculates the total & average marks of two subjects
CLS
READ Physics, Mathematics
Total = Physics + Mathematics
Average = Total / 2
PRINT Physics, Mathematics
PRINT Total, Average
DATA 80, 70
END