0% found this document useful (0 votes)
11 views8 pages

Computer Project 2025-26

The document outlines a computer project assignment with various programming tasks to be completed by students, including writing Java programs for geometric calculations, electricity billing, loan calculations, and string manipulations. It includes specific questions that require the implementation of algorithms for tasks such as checking triangle types, calculating bills based on usage, and generating patterns or series. The project is due on September 20, 2025, with an allotment date of May 20, 2025.

Uploaded by

ayushmaan12645
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)
11 views8 pages

Computer Project 2025-26

The document outlines a computer project assignment with various programming tasks to be completed by students, including writing Java programs for geometric calculations, electricity billing, loan calculations, and string manipulations. It includes specific questions that require the implementation of algorithms for tasks such as checking triangle types, calculating bills based on usage, and generating patterns or series. The project is due on September 20, 2025, with an allotment date of May 20, 2025.

Uploaded by

ayushmaan12645
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
You are on page 1/ 8

I

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.

(a)​ Natural logarithm of a number.


(b)​Absolute value of a number
(c)​ Square root of a number.
(d)​Random number between 0 to 1

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:

Category Yearly Income Loan Amount


LIG Group Up to Rs 1,50,000 150% of annual income
MIG group Rs 1,50,001 to Rs 5,00,000 200% of annual income
HIG group More than Rs 5,00,000 250% of annual income
Enter a choice as L for LIG ‘M” for MIG and ‘H’ for HIG and monthly income then print Loan amount.

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:

Water Consumption Tax

Up to 45 No tax
1
I
IN
More than 45 but 75 or less 475.00

More than 75 but125 or less 750.00

More than 125 but 200 or less​ 1225.0


More than 200 but 350 or less​ 1650.00

More than 350​ 2000.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

Eng, Maths and Science >= 80 % Pure Science

Eng and Science >= 80% Maths >= 60 Biology


Eng, Maths and Science >= 60% Commerce

​ WAP to accept marks in English , Maths , Science from the consol.

LOOPING AND SWITCH CASE PROGRAMS

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.

Question 4: Write a program to calculate and print the following series:

(a)​ Sum (S) = 2 – 4 + 6 – 8 + …………………………. -20

(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 5: WAP a program to generate and Fibonacci series till n terms


​ ​ 0 , 1 , 1 , 2 , 3 , 5 , 8 , 13 ……….. n
Question 6: Write a program to print the following :
I​ II​ III​ IV …………………….. X
Question 7: Write a program to calculate the sum of all the prime numbers between the range of 1 to 100.
Question 8: WAP to accept two numbers and check whether its twin prime or not
Example (input numbers = 3 , 5 both are prime and difference between two prime number is 2 then called twin
prime numbers)
Question 9: WAP to print all palprime number between 1 to 1000.
(Hint := 13 is prime reverse the number 31 is also prime is called palprime)

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

Output (7, 8) (18, 19) (25, 26)

Question 10 : WAP to accept an array and interchange the element of array as


(a)​ First change with last and second change with second last and so on
(b)​Middle change into next middle and so on.
Question 11: WAP to accept 4x4 Matrix and find sum of each elements.
Question 12: WAP to accept 4x4 Matrix and find out sum of each rows .
Question 13: WAP to accept 4x4 Matrix and find out sum of each columns.
Question 14: WAP to accept 4x4 Matrix and find out sum of Principal diagonal elements.
Question 15: WAP to accept 4x4 Matrix and find out sum of Right diagonal elements.
Question 16: WAP to accept 4x4 Matrix and find out Transpose of Matrix.
Question 17 : WAP to accept 4x5 Matrix and find largest element in a given Matrix

String Programming worksheet


Question 1: Write a program to input a sentence and delete a character next of vowel.
Sample Input : My name is Anand Shankar.
Sample Output : My nae I Aad Shaka
Question 2 : Write a program to input a sentence and display the short form of it.
Sample Data Defence Research Development Organization
Sample Output : DRDO
Question 3: Write a program to input a name and display the initials with the surname.
Sample Input : Anand Shankar Srivastava.
Sample Output : A.S.Srivastava
Question 4: Write a program to input a sentence and find and display the repeating alphabets in it.
Sample Input rabbit has a good habbit
Sample output : bb , oo , bb
Question 5: Write a program to input a sentence and display the sentence in reverse order of the
words.
5
I
IN
Sample Input ; Anand Shankar Srivastava.
Sample Output : Srivastava Shankar Anand
Question 6: Write a program to input a sentence and display the words in reverse order.
Sample Input ; Anand Shankar Srivastava.
Sample Output : dnanA raknahS avatsavirS
Question 7: Write a program to make the word as palindrome if it is not palindrome.
Sample Input : AMIT
Sample Output : AMITTIMA
Question 8: Write a program to input a name and print it in pattern.
Sample Input : AMIT
Sample Output : ​ A
​ ​ ​ AM
​ ​ ​ AMI
​ ​ ​ AMIT
Question 9 : Write a program to input a sentence and display the longest word in it.
Sample Input : Mathematics is my favourite subject.
Sample Output Mathematics.
Question 10 : Write a program to input a sentence and delete all the repeating words in it.
Sample Input : A table is a collection of records. A Database is a collection of tables.
Sample Output : table records . Database tables.
Question 11: Write a program to insert a middle name.
Sample Input : Amit Srivastava
Middle name : Kumar
Sample Output : Amit Kumar Srivastava.
Question 12: Write a program to accept a sentence and print the palindrome words in it.
Sample Input : MOM and DAD are watching a movie.
Sample Output : MOM , DAD
Question 13 : Write a program to check whether the word is unique or not . Aword is considered as
unique if it does not have any repeating characters.
Sample Input : HISTORY
Sample Output : Unique word
​ Sample Input : WRITING
​ Sample Output : Not a unique Word.
Question 14: Write a program to count number of vowels present in each word.
Sample Input : MY NAME IS AMIT
Sample Output :
My vowel = 0
NAME Vowel =2
IS Vowel =1
AMIT Vowel = 2
Question 15 : Write a program display all the words beginning with capital letter.
Sample Input : My name is Amit Kumar
Sample Output : My Amit Kumar
Question 16: Write a program to accept a string and print the second longest word in it.
Sample Input : MY NAME IS MOHIT SHARMA
Sample Output : MOHIT
Question 17 : Write a program to accept a string and display the highest frequency character.
Sample Input : my name is amit kumar
Sample Output : m
Question 18 : Write a program to accept a string and display those words not containing the vowel.
6
I
IN
Sample Input : My name is Amit Kumar
Sample Output : My
Question 19 : Wrire a program to print the number of words with consecutive letters placed next to each other.
1.​ Sample input : Abacus operates abstantially.
Output 4
Ab op ab st
Question 20 : Write a program to accept a string. Print the string in alphabetical order of its alphabets.
Sample Input : COMPUTER
Output :CEMOPRTU
Question 21 : Write a program to accept 50 students name in String Array STR . Print all name in alphabetical
order.
Question 22: Write a program to accept 50 students name in string Array ARR. Sort the array according to
Length in ascending order.
Question 23: Write a program to accept a sentence. Print all the words that start with a vowel and end with a
consonant. For example”
INPUT : “ THE PURPOSE OF EDUCATION IS TO REPLACE AN EMPTY MIND WITH AN OPEN ONE”
OUTPUT : OF EDUCATION IS AN EMPTY AN OPEN
2.​ WAP to accept a word and do the following:
(1)​If the word starts with a vowel , then move the vowel to the end of the word and add “ay” to it Example
OWL = WLOAY
(2)​If there are no vowels in word, then just add “ay” to it. Example SKY = SKYAY
(3)​If the vowel lies in between ,then remove all the letters from the beginning till the vowel and add them
at the end of the word. Finally, attach “ay” to it
Example STOP = OPSTAY
Question 24: Write a program to accept a sentence and formed new sentence by shifting two step forward
each character of sentence.
Example : ANIMALS LIVE IN ZOO
OUTPUT : CPKOCNV NKXG KP BQQ

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

You might also like