0% found this document useful (0 votes)
61 views

Class - IX Computer Application Project 2024 -25-1

The document outlines the format for a Class IX Computer Application project, including sections for student details, acknowledgments, an index, introduction, programming tasks, conclusion, and bibliography. It provides specific programming assignments in Java, categorized by different programming concepts such as assignment statements, input methods, mathematical methods, and control structures. Each program follows a structured format detailing the program heading, question, answer, data description, input, and output.

Uploaded by

moajjamsyed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Class - IX Computer Application Project 2024 -25-1

The document outlines the format for a Class IX Computer Application project, including sections for student details, acknowledgments, an index, introduction, programming tasks, conclusion, and bibliography. It provides specific programming assignments in Java, categorized by different programming concepts such as assignment statements, input methods, mathematical methods, and control structures. Each program follows a structured format detailing the program heading, question, answer, data description, input, and output.

Uploaded by

moajjamsyed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Computer Application Project Format

Class - IX
Page 1: Students details
Page 2: Acknowledgement
Page 3 to Page 5: Index
Sl. No. Topics Page No.

Page 6: Introduction
Page 7:
1. i. Program Heading
ii. Program Question
iii. Answer
iv. Data Description
Variable Data type Purpose / Use

v. Input
vi. Output
2. i. Program Heading
ii. Program Question
iii. Answer
iv. Data Description
Variable Data type Purpose / Use

v. Input
vi. Output
(*** Each and every programs you will follow this format.)
Second Last Page: Conclusion
Last Page: Bibliography

Internal Signature External Signature

Page 1 of 5
Programs using Assignment statements Date:- 31. 05. 2024
1. Write a program in Java to calculate and display the area of a rectangle.

Programs based on– Input through parameters

2. Write a program in Java to find and display the simple interest and amount by using the
function argument.

Programs based on – Input through Scanner class.


3. A shopkeeper sells two calculators for the same price. He earns 10% profit on one and
suffers a loss of 15% on the other. Write a program to find his total cost price of the
calculators by taking selling price as input (using the Scanner class).
Hint: CP = (SP / (1 + (profit / 100))) (when profit)
CP = (SP / (1 - (loss / 100))) (when loss)

Programs based on Mathematical methods.


4. Write a program in Java to input two numbers and display the greater and the smaller of the
two numbers.
5. Without using if-else statement and ternary operators, accept three unequal numbers and
display the second smallest number.
[Hint: Use Math.max( ) and Math.min( )]
Sample Input: 34, 82, 61
Sample Output: 61

Programs based on if
6. Write a program to input name, class and marks in English, Mathematics, and Computer.
Calculate the average marks and display name, average marks and grade obtained.

Marks Grades
>=80 % A*
>=60 % and <80 % A
>=50 % and <60 % B
>=40 % and <50 % C
<40 % “Fail”

Programs based on if - else

Page 2 of 5
7. Write a program in Java to input a number and check it “odd” or “Even”.
8. Write a program to input three angles of a triangle and check whether a triangle is possible or
not. If possible then check whether it is an acute-angled triangle, right-angled or an obtuse-
angled triangle otherwise, display 'Triangle not possible'.
Sample Input: Enter three angles: 40, 50, 90
Sample Output: Right=angled Triangle

Programs based on if – else - if


9. 'XYZ Computer Solution' has announced the following seasonal discounts on purchase of
certain items.

Purchase Amount Discount on Laptop Discount on Desktop PC

Up to ₹ 25000 0.0% 5.0%

₹ 25,001 to ₹ 50,000 5% 7.5%

₹ 50,001 to ₹ 1,00,000 7.5% 10.0%

More than ₹ 1,00,000 10.0% 15.0%

Write a program to input name, amount of purchase and the type of purchase (`L' for Laptop
and 'D' for Desktop) by a customer. Compute and print the net amount to be paid by a
customer along with his name.
(Net amount = Amount of purchase - discount)

10. A cloth showroom has announced festival discounts and the gifts on the purchase of items,
based on the total cost as given below:

Total Cost Discount Gift

Up to ₹ 2,000 5% Calculator

₹ 2,001 to ₹ 5,000 10% School Bag

₹ 5,001 to ₹ 10,000 15% Wall Clock

Above ₹ 10,000 20% Wrist Watch

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

Programs based on switch case


11. Write a program in Java to input a number and check it name of the month.
12. Write a menu driven program to input two positive numbers m and n (where m>n) and
perform the following tasks:
(a) Find the sum of two numbers without using '+' operator.
(b) Find the product of two numbers without using '*' operator.
(c) Find the quotient and remainder of two numbers without using '/' and '%' operator.
[Hint: The last value obtained after each subtraction is the remainder and the number of
iterations results in quotient.]
Sample Input: m=5, n=2
5 - 2 =3
3 - 2 = 1, thus Quotient = 2 and Remainder = 1

Programs based on Looping Statement


13. Write a program in Java to display the message “Happy Birthday” twenty times on the screen.
14. Write a program in Java to display the first ten terms of the following series:
24, 99, 224, 399. …………………..
15. Write a program in Java to accept a number and check whether it is a prime number or not.
16. Write a program to input 10 different numbers. Display the greatest and the smallest numbers
among them.
17. Write a program to accept a number and check whether it is a 'Spy Number' or not. (A
number is spy if the sum of its digits equals the product of its digits.)
Example: Sample Input: 1124
Sum of the digits = 1 + 1 + 2 + 4 = 8
Product of the digits = 1*1*2*4 = 8

Programs based on Menu Driven

18. Write a menu driven program to perform the following tasks by using Switch case statement:
To print the series:
(a) 0, 3, 8, 15, 24, ............ to n terms. (value of 'n' is to be an input by the user)

Page 4 of 5
(b) To find the sum of the series:
S = (1/2) + (3/4) + (5/6) + (7/8) + ........... + (19/20)

19. Using switch statement, write a menu driven program to:


(a) find and display all the factors of a number input by the user ( including 1 and the
excluding the number itself).
Example: Sample Input : n = 15
Sample Output : 1, 3, 5
(b) find and display the factorial of a number input by the user (the factorial of a non-
negative integer n, denoted by n!, is the product of all integers less than or equal to n.)
Example: Sample Input : n = 5
Sample Output : 5! = 1*2*3*4*5 = 120
For an incorrect choice, an appropriate error message should be displayed.

20. Using a switch statement, write a menu driven program to:


(a) Generate and display the first 10 terms of the Fibonacci series
0, 1, 1, 2, 3, 5
The first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the
previous two.
(b) Find the sum of the digits of an integer that is input.
Sample Input: 15390
Sample Output: Sum of the digits = 18
For an incorrect choice, an appropriate error message should be displayed.

Page 5 of 5

You might also like