Computer Project 2025-26
Computer Project 2025-26
IN
(Mrs Jyoti Nigam ) Computer Project
Allotment date : 20/5/25
Submition date. : 20/9/25
Question 1 : WAP to accept three side of triangle and find out whether it is right angle triangle or not
Question 2 : WAP to accept three side of triangle and check whether its Scalene, Equilateral or Isosceles.
Question 3: An electricity board charges the bill depending on the number of unit consumed as follows
UNIT CHARGE
First 100 Unit 40 P per Unit
Next 200 Unit 60 P per Unit
Above 300 Unit Re 1 per Unit
WAP to print the net bill to be paid by a consumer . The net bill includes rent of RS. 350.0 charge from a
consumer.
Question 4: Write a java program that displays the result of the following evaluations based on the user’s entry
of choice from the keyboard.
Question 5 A private courier firm charges for the transportation of any parcel within a zone as follows
Upto 100 grams Rs. 30
For each additional 50 grams or part there of Rs 10. WAP to calculate the charge of parceltaking weight of
the parcel in kilograms as input Sample input : =weight of the parcel 180 gms. Charge : for 100 gm 30 RS
for next 50 grms 10 Rs ,for remaining 30 gms 10 Rs.
Sample of Output : Total charge : Rs 50.
Question 6 The Bank sanction housing Loan to the employees belonging to HIG group, MIG group according
to their yearly income as followins:
Question 7 . To foster a sense of water conservation , the water department has an annual water conservation
tax policy . The rates are based on the water consumption of the consumer . Tax rates are as follows:
Up to 45 No tax
1
I
IN
More than 45 but 75 or less 475.00
WAP to compute and display an annual water tax chart based on the input value of water consumption.
Question 8 .St. Xavier School display a notice on school notice borad regarding admission in Std XI of
choosing different streams, according to marks obtained in English Maths and Science in ICSE Examination
Marks % Stream
Question 1: Write a menu driven program to accept a number and check and display whether it is a Prime number or not
an Automorphic number or not (Use Switch case statement)
(a) Prime number : A number is said to be a prime number if it is divisible only by ! and itself and not by any other
number. Example 3 , 5 , 7 , 11 , 13 etc
(b) Automorphic number : An Automorphic number is the number which is contained in the last digit(s) of its
square. Example 25 is an automorphic number as its square is 625 and 25 is present as the last two digits.
Question 2:WAP to generate a triangle or an inverted triangle till N terms based upon the user`s choice of triangle to be
displayed.
Example 1 Input : type 1 for a triangle and type 2 for an inverted triangle
1
Enter the number of terms
5
Example 2 Input : type 1 for a triangle and type 2 for an inverted triangle
2
Enter the number of terms
2
I
IN
6
OUTPUT : OUTPUT :
1 666666
22 55555
333 4444
4444 333
55555 22
1
Question 3 : Write a menu driven program to accept a number from the user and check whether it is a BUZZ number or to
accept any two number and print the GCD of them.
(a) A BUZZ number is the number which either ends with 7 or divisible by 7.
(b) GCD ( Greatest Common Divisor) of two integers is calculated by continued division method. Divide the larger
number by the smaller ; the remainder then divides the previous divisor . the process is repeated till the remainder
is zero. The divisor then results the GCD.
(b) Sum(s) =
(c) Sum(S) =
(d) 1 , 4,9,16,25 …….n terms
(e) 1,8,27,64,125 …… n terms
(f) 0, 7,26,63,124 ……. N terms
Question 10: WAP to accept a number and check whether its Perfect Square or not .
( A number whose square root contain decimal part as zero)
Question 11: WAP to accept two numbers and find out LCM of given two numbers.
Question 12: WAP to input a number and print each digit in words:
Ex:- 52031
FIVE TWO ZERO THREE ONE
3
I
IN
Question 13: A pair of number are Amicable if sum of factor number(excluding highest factor) equal to second number
and vice versa.
Ex : - first number 220 factors = 1 , 2 , 4 , 5 , 10 , 11 , 20 , 22 , 44 , 55 , 110 , sum = 284
Second number 284 factors = 1 , 2 , 4 , 71 , 142 , sum = 220
Question 14: WAP to input a number and check whether its SUNNY number or not,
(hint : A sunny number is number whose consecutive is a perfect square )
Ex ; 8 as 8+1 = 9 which is a perfect square.
Question 15: WAP to accept long integer number and print each digit of number in ascending order .
Ex Input number is : 5972146
Output number is : 1245679
Question 16 Write a program and check whether its Ugly Number or not
(hint :- A number is said to be an Ugly number if positive Numbers whose prime factors only include 2,3,5 for Examplr 6
(2 x3 ), 8 (2x2x2), 15 (3x5)are Ugly numbers while 14(2x7) is not Ugly since it includes another prime factor 7.
ARRAY
Question 1. WAP to store 20 numbers in array and display only those numbers which are prime.
Question 2.. WAP to print sum of negative numbers, sum of positive numbers and sum of positive odd numbers
from list of numbers(N) entered by the User. The list terminates when the user enters zero.
Question 3. WAP to print the product of all odd subscripted values of an array and sum of all even subscripted
values of an array.The annual examination result of 100 students of class X –A of St. Aloysius high School is
tabulated as follows”
Rollno. Subject A Subject B Subject C
WAP to read the data and determine:
(1)Total marks obtained by each student.
(2)Highest marks in each subject and the roll number of the student who obtained it.
(3)Highest total marks and the roll no. of the student who obtains it.
Question 4. A company keeps a linear array year(K) that contains the number of employees born in year K.
WAP to perform the following task:
(a) To print each of the year in which no employee is born.
(b)To find and print the numbers of years which no employee is born.
(c) To find the no. of employees who will be atleast 60 year old at the end of the year 2024.
Question 5 : WAP to accept an array and find out
(a) Largest number
(b)Second largest number
(c) Smallest number
4
I
IN
Question 6 : WAP to accept an array and shift all negative number to ward left side of array.
Question 7: WAP to accept an array and delete an element from specific place given by user.
Question 8: WAP to accept an array and insert an element at specific place given by user.
Question 9: WAP to accept an array and print only consecutive digit pair.
Ex:- Input
3 7 8 12 15 18 19 23 25 26
Instructions :-
1. Classmate Register is required for Project with brown cover.
2. Questions must be written in black pen and Answers must be in blue pen.
3. Project must be submitted on time.
7
IN
I