SEE Programming In QBasic

SEE Programming in QBasic

SEE Solution

SEE Programming in QBasic

SEE programming in Qbasic is the solution of the programming in Qbasic part of Computer Science of Class 10. SEE programming in Qbasic  is of 18 marks where the highest marks is of writing the qbasic program that is Q14. There are 3 questions and each is of 3 marks. This is the solution for the 9 marks.

READ  SEE Science Model Solution 2076

1. Write a program using FUNCTION…….END FUNCTION to get a word from the user and then print the word in reverse order.

DECLARE FUNCTION REV$(A$)

CLS

INPUT A$

PRINT “REVERSE OF THE WORD”;REV$(A$)

END

FUNCTION REV$(A$)

FOR I=LEN(A$) TO 1 STEP -1

R$=R$ + MID$(A$,I,1)

NEXT I

REV$=R$

END FUNCTION

 

2. Write a program using SUB…..END to get radius of circle and then print area.

DECLARE SUB AREA(R)

READ  SEE Programming Solution 2076

CLS

INPUT “RADIUS”;R

CALL AREA(R)

END

SUB AREA( R)

A=22/7*R^2

PRINT “AREA OF CIRCLE”;A

END SUB

 

3. A sequantial date file called ‘MARKS DAT’ contains Roll No., Name, English, Nepali and Maths fields. Write a program to display all the contents of the data file.

OPEN “MARKS.DAT” FOR INPUT AS $1

READ  SEE Model Solution HPEE 2076

WHILE NOT EOF(1)

INPUT #1, R,N$,E,NE,M

PRINT R,N$,E,NE,M

WEND

CLOSE #1

END

Explanation by video

Leave a Reply

Your email address will not be published.