Professional Documents
Culture Documents
Lorven Public School: Worksheet - III
Lorven Public School: Worksheet - III
Lorven Public School: Worksheet - III
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.
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