0% found this document useful (0 votes)
147 views19 pages

ICSE Class 10 Project Guide

The document outlines 6 school projects for Class 10 students. Each project describes a problem related to a different topic and defines a class with data members and member functions to calculate or display relevant outputs. Some examples of projects include calculating water bills and telephone bills based on usage, calculating payroll and income tax based on salary, and handling geometric figures by calculating areas and perimeters. For each project, additional questions related to the topic are provided for other classes.

Uploaded by

Ananya
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)
147 views19 pages

ICSE Class 10 Project Guide

The document outlines 6 school projects for Class 10 students. Each project describes a problem related to a different topic and defines a class with data members and member functions to calculate or display relevant outputs. Some examples of projects include calculating water bills and telephone bills based on usage, calculating payroll and income tax based on salary, and handling geometric figures by calculating areas and perimeters. For each project, additional questions related to the topic are provided for other classes.

Uploaded by

Ananya
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/ 19

CLASS 10

ICSE PROJECTS (SESSION 2020-2021)

Project 1 – Number conversion ( REHMAT SINGH)

1.Write a class with name Convrtr with following members :

Member functions :

Deci2bin( int n) It will convert decimal number to its binary equivalent

Bin2Deci(int a) will convert binary number a to its decimal equivalent

KmtoM(int k) will convert kilometers to meters

MtoKm(int m) will convert Meters to Kilo meters

HourstoMin(int h) will convert hours to minutes

MintoHrs(int min) will convert minutes to hours

FeettoInches(int f) will convert feet to inches

Inchestofeet(int i) will convert inches to feet

Create another class which has main function, and use all the above functions.

Q2. Read a list of numbers in a terminal window and display count of positive and negative numbers.

Q3.

1. Sum= ½ + 2/3 + 3/4 ….. n/n+1


2. 1
2 2

3 3 3

3. exit

Q4. Display a menu with the following options

1. HCF
2. Reduce to a smaller fraction
3. Exit
Depending on the choice do the needful

Q5. Read an array of 5 integers in a terminal window and display the same.
Project 2 – Water Bill Calculation (GHRITIKA SETIA)

Problem Description : To calculate the monthly Water bill.

Write a class with name water with following members :

Date members :

String name subscriber’s name

int units No. of units of water consumed

float bill Total bill

Member functions

water( ) constructor to initialize the object

water(String, int) constructor to initialize the object

calc( ) to calculate the bill as per the following crieteria:-

units consumed Charges

First 100 units 1/-

100 to 300 units Rs. 1.50/-

300 to 500 units Rs. 2.00/-

Above 500 units Rs. 3.00/-

Surcharge will be charges at the rate of 5% of the bill amount, from every subscriber.

show( ) To display all the details.

Create another class which has main function, and use all the above functions.

Q2. Read a list of numbers in a terminal window and display sum of even and odd numbers.

Q3. Write a program with two methods to print a series and pattern

a. Sum= ½ + 2/4 + 3/6 ….. n


b. 1
1 2

1 2 3
1 2
1

Q4. Display a menu with the following options

1. Palindrome check( a number)


2. Positive negative check
3. Exit
Depending on the choice do the needfulQ5. Read an array of maximum ten strings from a user and
display the array.

Q5. Read an array of 5 double data types values in a terminal window and display the same.
Project 3 – Telephone Bill ( ISHAANVEER )

Problem Description : To calculate the monthly telephone bill.

Write a class with name Telephone with following members:

Date members :

String name subscriber’s name

int calls No. of calls made by the person

boolean staff true if a person is working in telephone dept. otherwise false

float bill Total telephone bill

Member functions

telephone( ) constructor to initialize the object

telephone(String, int, Boolean) constructor to initialize the object

calc( ) to calculate the phone bill as per the following crieteria:-

Calls made Charges

First 100 calls Free

100 to 200 calls Rs. 0.80/-

200 to 400 calls Rs. 1.00/-

Above 400 calls Rs. 1.20/-

Surcharge will be charges at the rate of 5% of the bill amount, from every subscriber. Note : if person is staff, will
get first 400 calls free.

Create another class which has main function, and use all the above functions.

Q2. Read a list of numbers in a terminal window and display count of even and odd numbers.

Q3.

a. Sum= ½! + 2/4! + 3/6! ….. n


b. 1
2 2
3 3 3

2 2

Q4. Display a menu with the following options

1. addition
2. subtraction
3. Exit
Depending on the choice do the needful

Q5. Write a program to read five characters in one method and display in another method.
Project 4 – Payroll (ARYAN)

Problem Description : To calculate the monthly salary of an employee .

Define a class employee having the following description :-


Data Member/ int empNo to store employee number
Instance variables String name to store name
int bp to store basic salary of an employee
double gross to store the gross salary
double netsal to store the net salary
Member Functions :
input( ) To accept the employee number, name, basic pay
calc( ) To calculate the gross and net salary of an employee based on the following
parameters :
Allowances Deductions
HRA 20% of basic pay PF 12% of basic pay
DA 51% of basic pay Staff Club fund 150/-
Med. Allowance 2000/-
disp( ) To output details of an employee
Write another class, and create main( ) function and use the above functions to calculate the salary of
any employee.
Create another class which has main function, and uses all the above functions.

Q2. Read sides of a triangle in a terminal window and display the type of the triangle.
Q3.
a. Sum= ½! + 2/4! + 3/6! ….. n
b.
1234567
123456
12345
1234
123
12
1
Q4. Display a menu with the following options
1. Two strings are equal or not
2. Display length of a string
3. Exit
Depending on the choice do the needful

Q5. Read an array to store the marks of five students and display the marks.
Project 5 – Income Tax (TAIJAS)

Problem Description : To calculate the Income Tax of an employee .

Define a class employee having the following description :-


Data Member/ int pan to store personal account number
Instance variables String name to store name
double taxincome to store annual taxable income
double tax to store tax that is calculated
Member Functions :
input( ) To accept the pan number, name, taxable income
calc( ) To calculate tax for an employee
disp( ) To output details of an employee
Write a program to compute tax according to the given conditions and display the output as per given
format.

Total Annual Taxable Income Tax Rate


Upto Rs. 1,00,000 No tax
1,00,001 to 1,50,000 10% of the income exceeding 1,00,000
1,50,001 to 2,50,000 Rs. 5000 + 20% of the income exceeding 1,50,000
Above 2,50,000 Rs. 25,000 + 30% of the income exceeding 2,50,000
Output :
Pan Number Name Tax-Income Tax
- - - -
- - - -
- - - -
Create another class which has main function, and uses all the above functions.
Q2. Read two numbers and an operator(+,-,*,/) in a terminal window and display the result accordingly.
For example if the numbers are 4 and 5 and the operator is + then the result should be 9.
Q3.
a. Sum= x/2! + x/4! + x/6! ….. n
b.
1111
2222

Q4. Display a menu with the following options


1. Power of a number( eg 23 is 8)
2. Square root of a number
3. Exit
Depending on the choice do the needful
Q5. Read an array of double data type with eight elements, store the array and display.
Project 6 – Geometric Figures (RAGHAV)

Problem Description : Handling of different kinds of figures.

Q1.Display the following menu :

***** Main Menu *****


1. Square
2. Circle
3. Triangle
4. Exit
Select any figure.

Based on the figure selected, further show the menu as following :

If option selected is 1 (i.e. Square) menu is


(a) Area of square
(b) Perimeter of square

If option selected is 2 (i.e. Circle) menu is


(a) Area of Circle
(b) Circumference of Circle

If option selected is 3 (i.e. Triangle) menu is


(a) Area of Triangle
(b) Type of triangle (equilateral/isosceles/other)

If option selected is 4 (i.e. Exit), program will terminate.

Make the appropriate choices and do the needful. Try to modularize the program (by creating the functions)
wherever it is possible. For any wrong input, give the proper error messages.
Q2. Read two numbers in a terminal window and display the smaller number.
Q3.
a. Sum= 1/11 +2/22 +3/33+n/nn
b.
1
3 5
7 9 11

Q4. Display a menu with the following options


1. Convert meters into centimeters
2. Convert feet into inches
3. Exit
Depending on the choice do the needful.

Q5. Read an array of maximum ten strings from a user and display the array.
Project 7 – Student (JOYLEEN)

Q1. Computer Science Project on Student

Class : Student

Member Variables:

rollno, Name, marks in 5 subjects, avg

Functions used :

Default constructor

Parameterized constructor

void new_student( int , String, int, int , int) // Function to accept roll no, name, eng, maths, science

void display_details( )// Function to display the details

void calcavg() // to calculate the average marks and store in avg

double return_average( ) // To return the average marks

String return_name()//To return the name

Class Usestudent

Write a main method which creates an object of the above class and call all the methods

2. Read a number in a terminal window and display area of a square.

Q3.

a. Sum= 1/22 +2/42 +3/62+….n


b.
1

35

7 9 11

Q4. Display a menu with the following options

1. Surface Area of a cube


2. Surface Area of a cuboid
3. Exit
Depending on the choice do the needful.

Q5. Read marks of a student in five subjects, display sum of the marks.
Project 8 – Item (SATTYANSHI)

Q1. Class : Item

Member Variables:

id, Name, price , qty, total

Member Functions :

Default constructor

Parameterized constructor

void new_item( int , String, int, int) // Function to accept id name price and quantity of the item

void display_details( )// Function to display the details

void calc_total() // to calculate the total bill and stores in total

int return_total( ) // To return the total

String return_name()//To return the name

int return_price( ) // To return price

Class Useitem

Write a main method which creates an object of the above class and call all the methods.

2. Read 3 sides of a triangle in a terminal window and display area of a triangle.

Q3.

a. Sum= 1/22 +1/42 +1/62+….n


b.
1

2 2

3 3 3

2 2

Q4. Display a menu with the following options

1. Area of a cube
2. Area of a cuboid
3. Exit
Depending on the choice do the needful.
Q5. Read an array of 5 integers in a terminal window and display the same.

Project 9: (ARYMAN)
Q1. Computer Science Project on result
Class : Result
Member Variables:
rollno, Name, marks in 5 subjects (eng, maths, science, art, geo) ,avg ,grade
Functions used :
Default constructor
Parameterized constructor
void new_student( int , String, int, int , int, int, int) // Function to accept rollno, name, eng, maths, science, art, geo
marks from user.
void display_details( )// Function to display the details
void calcavg() // to calculate the average marks and store in avg
void calcgrade()// to calculate the grade using the following formula
avg grade
>90 A
>70 &<= 90 B
>60 & <=70 C
>40 & <=60 D
<40 F
double return_average( ) // To return the average marks
String return_name()//To return the name
char return_grade( ) // To return the grade
Class Useresult
Write a main method which creates an object of the above class and call all the methods

2. Display all twin prime numbers till N.


Q3.
a. Sum= 1/22 +1/43 +1/64+….n
b.
a
a a
a a a
a a
a

Q4. Display a menu with the following options


4. Convert meters into centimeters
5. Convert feet into inches
6. Exit
Depending on the choice do the needful.
Q5. Read an array of 5 integers in a terminal window and display the same.
Project 10 – Sales (AAZEEN)

Q1. Computer Science Project on sales

Class : Sales

Member Variables:

Salesid, name, qty, price, bill

Member Functions :

Default constructor

Parameterized constructor

void new_sales( int, String, int, int ) // Function to accept sales id, name, quantity , price from user

void calcbill() //calculates bill and stores in bill

int returnbill() // which returns bill

String returnname() //returns name

Class Usesales

Write a main method which creates an object of the above class and call all the methods.

Q2. Read a list of numbers in a terminal window and display count of positive and negative numbers.

Q3.

a. Sum= ½ + 2/3 + 3/4 ….. n/n+1


b. 1
2 2

3 3 3

Q4. Display a menu with the following options

1. HCF
2. Reduce to a smaller fraction
3. Exit
Depending on the choice do the needful

Q5. Read five integers in an array and display 1st, 3rd and 5th elements (odd positions).

Project 11 – Banking ( SANJOT )

Q1. Computer Science Project on Banking


Class : bank

Member Variables:

Accno, name, balance

Member Functions :

Default constructor

Parameterized constructor

void good()//which displays good morning 5 times

void new_account(int, string , int) // to accept account number , name and balance

void display_details( )// Function to display the details

void deposit(int amt ) // To deposit the amount in the account

void withdraw(int amt ) // To with draw the amount from balance

int returnbalance() // it returns the current balance

Class Usebank

Write a main method which creates an object of the above class and call all the methods.

2. Read a list of numbers in a terminal window and display sum of even and odd numbers.

Q3.

a. Sum= ½ + 1/3 + ¼ ….. 1/n


b. 1
12

123

Q4. Display a menu with the following options

1. Prime number check


2. Palindrome number check
3. Exit
Depending on the choice do the needful

Q5. Read an array of 5 integers in a terminal window and display the same.
Project 12 – Book shop (ANGAD)

Computer Science Project on book

Class : Book

Member Variables:

bookno, Name, price , no of copies

Member Functions :

Default constructor

Parameterized constructor

void new_book( int , String, int, int) // Function to accept bookno,name,price and no of copies

void display_details( )// Function to display the details

int return_copies( ) // To return the no of copies

String return_name()//To return the name of the book

int return_price( ) // To return price

Class Usebook

Write a main method which creates an object of the above class and call all the methods

2. Display all prime palindrome numbers till N.

Q3.

a. Sum= 1/22 +1/43 +1/64+….n


b.
a

a a

a a a

a a

Q4. Display a menu with the following options

1. Convert meters to centimeters


2. Convert feet to inches
3. Exit
Depending on the choice do the needful.

Q5. Read marks of a student in five subjects, display sum of the marks.
Project 13 – YUVRAJ

Computer Science Project on order

Class : order

Member Variables:

bookid , customerid no of copies , price per each copy, bill

Member Functions :

Default constructor

Parameterized constructor

void new_order(int, int, int int) // Function to accept bookid, customer id, no. of copies, price

void display_details( )// Function to display the details

void calc_bill() // to calculate the total bill and stores in bill

int return_bill( ) // To return the bill

int return_copies()//To return no of copies ordered

int return_price( ) // To return price

Class Useorder

Write a main method which creates an object of the above class and call all the methods

2. Read two numbers in a terminal window and display the greater number.

Q3.

a. Sum= 1/12 +2/22 +3/32+n/n2


b.
1

35

7 9 11

Q4. Display a menu with the following options

1. Volume of a cuboid
2. Volume of a cube
3. Exit
Depending on the choice do the needful.

Q5. Read an array of 5 integers in a terminal window and display the same.
Project 14 – EKANSH

Problem Description : Handling of different kinds of figures.

Display the following menu :

***** Main Menu *****


1. Area
2. perimeter
1. Exit
Select any figure.

Based on the figure selected, further show the menu as following:

If option selected is 1 (i.e. Area) menu is


a) Area of square
b) Area of Rectangle
c) Area of circle

If option selected is 2 (i.e. perimeter) menu is


a) Perimeter of a Triangle
b) Perimeter of a square
c) Perimeter of a rectangle

If option selected is 4 (i.e. Exit), program will terminate.

Make the appropriate choices and do the needful. Try to modularize the program (by creating the functions)
wherever it is possible. For any wrong input , give the proper error messages.
Q2. Read two numbers and an operator(+,-,*,/) in a terminal window and display the result accordingly.

For example if the numbers are 4 and 5 and the operator is + then the result should be 9.

Q3.

c. Sum= x/2! + x/4! + x/6! ….. n


d.
1111

2222

Q4. Display a menu with the following options

4. Power of a number( eg 23 is 8)
5. Square root of a number
6. Exit
Q5. Write a Java program to store English alphabets (capital letters) in an array called alpha (Hint:
Use Unicode for storing).

Project 15– Book Order - RAVLEEN

Class : Order
Member Variables:

bookid , customerid no of copies , price per each copy, bill

Member Functions :

Default constructor

Parameterized constructor

void new_order(int, int, int int) // Function to accept bookid, customer id, no. of copies, price

void display_details( )// Function to display the details

void calc_bill() // to calculate the total bill and stores in bill

int return_bill( ) // To return the bill

int return_copies()//To return no of copies ordered

int return_price( ) // To return price

Class Useorder

Write a main method which creates an object of the above class and call all the methods

Q2. Read a list of numbers in a terminal window and display sum of even and odd numbers.

Q3.

a. Sum= 1/1! + 2/2! + 3/3! ….. n


b.
55555

44444

33333

22222

11111

Q4. Display a menu with the following options

1. Prime number check


2. Palindrome number check
3. Exit
Depending on the choice do the needful

Q5. Read an array of 5 integers in a terminal window and display the same.

Project 16: AMANAT

Q1. Computer Science Project on password checking

Class : password

Member Variables:
Id, password

Member Functions :

Default constructor

Parameterized constructor

void new_password()throws IOException // Function to create a new id and password

void check(String , String)// Function to accept id and password and check they match with the data stored in
instance variables. (Check at the most 3 times )If id and/or password not matched with the data quit checking
after 3 times then display a message SORRY!!!!

Class Usepassword

Write a main method which creates an object of the above class and call all the methods

2. Display Fibonacci series till n.  N should be accepted in a terminal window.

Q3. 

a. Sum= 1/2 +1/4 +1/6 +….n


2 3 4

b.         
    1 

  1  2

1  2  3

  1  2

   1  

Q4. Display a menu with the following options 

1. Convert kilometers to meters


2. Convert hours to minutes
3. Exit
Depending on the choice do the needful.

Q5. Read N from user and store all the natural numbers from N to 1 and display the array.

Project: 17: GURJAGJOT

Computer Science Project on Patients

Class : Patient

Member Variables:

Id, Name, disease, roomno, advancepaid, doctorid ,roomcharges, doctorcharges, operationcharges

Functions used :
Default constructor

Parameterized constructor

void new_patient( int , String, String, int ,int , int, int, int, int) // Function to create a new patient by accepting

id, name, disease name, room no, advance paid, doctor id, room charges, doctor charges, operation charges

void display_details( )// Function to display the details

int calc() // to calculate the charges i.e.

doctorcharges + operationcharges + roomcharges-advancepaid and return amount to be paid

int return_advancepaid( ) // To return the advance

String return_name()//To return the name

int return_disease( ) // To return the disease name

Class Usepatient

Write a main method which creates an object of the above class and call all the methods

Q2. Read a list of numbers in a terminal window and display sum of even and odd numbers.

Q3. Write a program with two methods to print a series and pattern

c. Sum= ½ + 2/4 + 3/6 ….. n


d. 1
1 2

2 2 3
3 2
1

Q4. Display a menu with the following options

4. Palindrome check( a number)


5. Positive negative check
6. Exit
Depending on the choice do the needful

Q5. Read an array of 5 double data types values in a terminal window and display the same.
Project 18: SOHAM

Share handling

Write a class with name shares with following members :

Date members :

String nm to store the name of the buyer

int no to store the number of shares

int unitprc to store the price of one share

int totval total value of shares

Member functions

shares( ) constructor to initialize the object

shares(String , int , int ) constructor to initialize the object

void buy( ) for buying the shares

void sell( ) for selling the shares

calc( ) to calculate the total value of shares

show( ) to show the details.

Note : buy( ) and sell( ) functions will increase or decrease the number of shares, and

accordingly the Total value of shares will change.

Create another class and write main( ) function and use the above functions

2. Display Fibonacci series till n.  N should be accepted in a terminal window.

Q3. 

c. Sum= 1/2 +1/4 +1/6 +….n


2 3 4

d.         
    1 

  1  2

1  2  3

  1  2

   1  

Q4. Display a menu with the following options 

4. Convert kilometers to meters


5. Convert hours to minutes
6. Exit
Depending on the choice do the needful.
Q5. Read N from user and store all the natural numbers from N to 1 and display the array.

Project 19 – Number conversion ( ANANYA)

1.Write a class with name Convrtr with following members :

Member functions :

Deci2bin( int n) It will convert decimal number to its binary equivalent

Bin2Deci(int a) will convert binary number a to its decimal equivalent

KmtoM(int k) will convert kilometers to meters

MtoKm(int m) will convert Meters to Kilo meters

HourstoMin(int h) will convert hours to minutes

MintoHrs(int min) will convert minutes to hours

FeettoInches(int f) will convert feet to inches

Inchestofeet(int i) will convert inches to feet

Create another class which has main function, and use all the above functions.

Q2. Read a list of numbers in a terminal window and display count of positive and negative numbers.

Q3.

A. Sum= ½ + 2/3 + 3/4 ….. n/n+1


B. 1
2 2

3 3 3

C. exit

Q4. Display a menu with the following options

A. HCF
B. Reduce to a smaller fraction
C. Exit
Depending on the choice do the needful

Q5. Read an array of 5 integers in a terminal window and display the same.

You might also like