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

STS Class X Project Computer Application

The document outlines a project for Class X students at St. Thomas School, focusing on various programming tasks in Java. It includes ten specific programming exercises, such as calculating perimeters of geometric shapes, summing cubes, and determining triangle types. Students are instructed to complete the project on ruled foolscap sheets, ensuring neatness and clarity in their work.
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 views2 pages

STS Class X Project Computer Application

The document outlines a project for Class X students at St. Thomas School, focusing on various programming tasks in Java. It includes ten specific programming exercises, such as calculating perimeters of geometric shapes, summing cubes, and determining triangle types. Students are instructed to complete the project on ruled foolscap sheets, ensuring neatness and clarity in their work.
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

St.

Thomas School, Kidwai Nagar, Kanpur

Sub: Computer Applications

Project Wrok

Class : X

Solve these programs with variable description:

Note : Complete the project on ruled foolscap sheets and write neatly on both sides
of the sheet.

1. Write a menu driven program in Java to calculate the perimeter of different plane
figures, viz. square, rectangle and circle can be calculated by the formula:
Perimeter of a square (P = 4 × side)
Perimeter of a rectangle (P = 2 × (l + b))
Circumference of a circle (P = 2 × π × r)
Using a switch case statement, write a program to find the perimeter of different figures
by taking suitable variables and data types.

2. Write a program to print sum of cubes of numbers from 1 to N, where N is given by the
user.

3. Write a program to input a number and identify whether it is sum of two consecutive
odd numbers or not. For ex. 24 is sum of 11 and 13 which are in consecutive sequence.

4. Write a program to input two numbers in A and B and print the product without using
multiplication (*) operator.

5. Write a program to input two numbers in A and B and print the quotient and
remainder of the division without using division (/) and modulus (%) operator.

6. Write a program to input three sides of a triangle and check whether a triangle is
possible or not. If possible then check whether it is an equilateral triangle, isosceles
triangle or a scalene triangle otherwise, display 'Triangle not possible'.

7. A Water Supply Department charges their consumers according to the units of water
consumed per month according to the given tariff:

Units Consumed Charges


Up to 100 units Rs. 3 per unit
More than 100 units and up to 200 units Rs. 2.50 per unit
More than 200 units Rs. 2 per unit

In addition to the above, every consumer has to pay Rs.150 as Maintenance Charge per
month. Write a program to input the amount of units consumed and calculate the total
charges payable by the consumer.
Page 1 of 2
8. A footwear showroom has announced festival discounts and gifts on the purchase of
items, based on the total cost as given below:

Total Cost Discount Gift


Up to Rs. 3,000 5% Key Chain
Rs. 3,001 to Rs. 6,000 10% Water Bottle
Rs. 6,001 to Rs. 12,000 15% School Bag
Above Rs. 12,000 20% Wrist Watch

Write a program to input the total cost. Compute and display the amount to be paid by
the customer along with the gift.

9. Write a program to input an alphabet and identify whether it is a vowel or a


consonant. If it is a consonant then print the next consecutive vowel to it.

10. Write a program to input two numbers in A and B and print the HCF of the two
numbers.

Page 2 of 2

You might also like