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

Class 9 Array in QBASIC 2019-2020

The document outlines a series of tasks for writing QBASIC programs involving arrays and data manipulation. It includes instructions for asking for numbers, student names, and marks, as well as performing operations like printing odd/even numbers, calculating averages, and sorting. The tasks also involve working with matrices and performing arithmetic operations on them.

Uploaded by

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

Class 9 Array in QBASIC 2019-2020

The document outlines a series of tasks for writing QBASIC programs involving arrays and data manipulation. It includes instructions for asking for numbers, student names, and marks, as well as performing operations like printing odd/even numbers, calculating averages, and sorting. The tasks also involve working with matrices and performing arithmetic operations on them.

Uploaded by

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

Array in QBASIC:

Write QBASIC program using DIM statement to:

1) Ask 5 numbers and print them without using DIM


statement.
2) Ask 5 numbers and print them using DIM statement.
3) Ask 5 students’ name and print them.
4) Ask roll and name for 5 students and print them.
5) Ask name, roll and marks in Computer for 5 students
and print them all with their title.
6) Ask 5 numbers and print only odd numbers among
them.
7) Ask 5 numbers and print odd and even numbers
separately.
8) Read 5 numbers and print the average marks.
9) Ask 5 numbers and print the greatest number among
them.
10)Ask 5 numbers and print the smallest number among
them.
11)Ask 5 numbers and print the greatest and smallest
number among them.
12)Read marks in C Math, Science and Computer for 5
students and print their average marks in each
subject.
13) Ask 5 students’ Roll, Name, House and Percentage.
Print the Roll, Name, House and Percentage of the
student who has scored the highest percentage.
14) Ask 5 numbers and print them in ascending order.
15) Ask 5 numbers and print them in descending order.
16) Ask 5 students’ name and print them in ascending
order.
17) Ask 5 students’ name and print them in descending
order.
18) Ask 5 names and print all the names starting with
“A”.
19) Ask to input 5 employee’s Full Name and print their
initials only.
20. Ask to input elements of a matrix and arrange them
in tabular form using double dimension matrix.
21. Input elements of two 2 by 2 matrix and find their
sum.
22. Input elements of two 2 by 2 matrix and find their
difference.
23. Input elements of matrix and find their sum of
individual column and row.

You might also like