0% found this document useful (0 votes)
3 views1 page

ClassX CompApp Array 1

Uploaded by

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

ClassX CompApp Array 1

Uploaded by

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

CLASS : X

Sub: Computer Applications


Topic: Arrays
Worksheet-1

Name…………………………… Sec………. Date……………

1. Write a program to input 10 integers in an array and display the sum


and average.

2. Write a program to input ‘n’ integers in an array and print the array
elements in reverse order.

3. Write a program to store names and marks of ‘n’ students in two


arrays name[ ] and marks[ ]. Find out the highest and lowest scorer.

4. Write a program to accept a student’s name and his marks in 5


subjects. Calculate the Percentage and determine the grade based
on the following criteria:

Percentage Grade
Percent<50 D
Percent>=50 and Percent <60 C
Percent>=60 and Percent <80 B
Percent>=80 and Percent <100 A

5. Write a program to input marks of 15 students in English and


Computer Science in Eng[ ] and Comp[ ] arrays. Add the marks and
store in a third array Total [ ].

6. Write a program to input 10 nos. in array A[ ] extract all the odd


numbers and store them in an array ODD[ ] and even numbers in
array EVEN[ ]. Display all the three arrays.

You might also like