Lorven Public School: Worksheet - III

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1

LORVEN PUBLIC SCHOOL


Chandapura, Bengaluru-560099
Worksheet -III
Subject: Computer applications Class: X -A

1. Write a program to display the following pattern


*
* 2
* 2 *
* 2 * 4
* 2 * 4 *

2. Write a program to display the following pattern


1
# #
3 3 3
# # # #
5 5 5 5 5

3. Write a program to create an integer array of size 20 ask the user to enter values for
it. After the array is stored with the user values, print only the prime numbers
present in the array.

4. Define a class PU_student with following details

Data members:
Name : stores name of the student
Registration number : stores student registration number
English : stores English marks
Maths : stores maths marks
Physics : stores physics marks
Chemistry : stores chemistry marks
Biology : stores biology marks

Member methods:
Read _info () : reads the information of the student.
Result () : Calculates the students total and average
marks obtained by student and displays it.

5. Write a program to print all the capital letters and their ASCII code In the following
format
Letters ASCII code
A 65
B 66

Lorven Public School, Chandapura-560099

You might also like