0% found this document useful (0 votes)
2 views3 pages

Class X Computer Project (1)

The document outlines a Pre Selection Project Work for Class X at Assembly Of Christ School for the session 2026-27, detailing ten programming tasks to be completed using Java. These tasks include creating matrix operations, sorting algorithms, searching arrays, calculating loan interest, and implementing function overloading. Each program has specific requirements and expected outputs, focusing on various programming concepts and techniques.

Uploaded by

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

Class X Computer Project (1)

The document outlines a Pre Selection Project Work for Class X at Assembly Of Christ School for the session 2026-27, detailing ten programming tasks to be completed using Java. These tasks include creating matrix operations, sorting algorithms, searching arrays, calculating loan interest, and implementing function overloading. Each program has specific requirements and expected outputs, focusing on various programming concepts and techniques.

Uploaded by

imonmukherjee59
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assembly Of Christ School

Session 2026-27
Pre Selection Project Work
Class - X

Do the following programs using Java programming language :

Program no.1:
Write a program in Java to input a square matrix of order N × N (where N > 2 and N < 10).
Display the matrix and determine whether it is a Symmetric Matrix. A matrix is said to be
symmetric if its transpose is equal to the original matrix. Display an appropriate message
indicating whether the matrix is symmetric or not.

Program no.2:

Write a program in Java to input a square matrix of order N × N (where N > 2 and N < 10).
Display the matrix and check whether it is an Identity Matrix or not. An Identity Matrix is a square
matrix in which all the elements of the principal diagonal are 1 and all the remaining elements
are 0. Display an appropriate message based on the result.

Program no.3:
Write a program to accept the names of 10 cities in a single dimensional array and their STD
codes(three digit numbers)in another single dimensional array. Search for a name of a city input
by the user in the list. If found,display “Search Successful “ and print the name of the city along
with its STD code or else display the message “Search Unsuccessful “, no such city in the list.

Program no.4:

Write a Java program to input the prices of N mobile phones available in a store. Arrange the
prices in ascending order using Selection Sort and display the sorted list.

Program no.5:
Write a Java program to input the monthly electricity bills of N households. Sort the bills in
descending order using Bubble Sort and display the sorted list.

Program no.6:

Write a Java program using function overloading to calculate the ticket fare.

●​ fare(int distance) – Calculates the fare for an adult.


●​ fare(int distance, int age) – Calculates the fare with a 50% concession for
senior citizens (age ≥ 60).
Programuser 7:

A tech number has even number of [Link] the number is split into two equal halves,then
the square of the sum of these halves is equal to the number [Link] a Program to
generate and print all four digits tech numbers.

Example: Consider the number 3025.

Square of the sum of two halves=(30 +25)2 =(55)2 = 3025 is a tech number

Program no. 8:

Using a Switch Statement ,write a menu driven Program to:

I.​ To find and display all the factors of a number input by the user (including 1 and
excluding the number itself)
II.​ To find and display the factorial of a number input by the user.

Program no. 9:

A person has taken a loan to buy a vehicle. He has to repay the loan according to the
following criteria:

Time Rate of Interest

For 1 year. 4.5%

For 2 years. 5%

For 3 years 7.5%

More than or equal to 4 years 10%

Define a class Loan with the following specifications:

Data members:

int principal : Principal amount to be taken.

int time: Time to repayment

double rate: rate of interest.

Member Methods:

void accept (): inputs the principal and time

double cal_interest():Calculates the simple interest according to the above criteria and
return the interest.
void display() : Print the Principal and interest .

Program no. 10:

Write a program to create an overloading method to do the following:

a.​ void shape(int m,int n): print a rectangle of m rows and n columns with ‘p'
character. Say input: m=3,n=4

Output: pppp

pppp

pppp

[Link] shape(int s,char ch): prints

square with character ch

Say input s=4,ch= ‘A'

Output: AAAA

AAAA

AAAA

AAAA

You might also like