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

Project Topics - Computer Applications (First Term)

Uploaded by

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

Project Topics - Computer Applications (First Term)

Uploaded by

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

St.

Xavier’s High School ICSE, Nashik Road

Grade- 9 Sub: Computer Applications Marks - 25

PROJECT – FIRST TERM


Write Java programs on the below mentioned topics:

Q.1 Program to add three numbers and find its average. (2 Marks)

Q.2 Program to find the total of 6 subjects and percentage. (2 Marks)

Q.3 Program to find the quotient and remainder of the division of two numbers.
(2 Marks)

Q. 4 The length of a rectangle field is 20 meters and breadth is 35 meters.

Find the area of the field. (2 Marks)

Q.5 Program to input three sides of a triangle and find its area. (2 Marks)

Q. 6 Program to input the total population of a city. Input the number of people

who are vaccinated. Find the number of people who are not vaccinated.

(3 Marks)

Q. 7 Program to find whether the current year is leap year or not.

(Hint: Use Ternary operator) (3 Marks)

Q.8 Program to input two numbers in Java and print the square root and cube

root both. (3 Marks)

Q.9 Write a program to input four numbers and print the biggest among them.

[Use Math.max()] (3 Marks)

Q.10 Program to assign the values to the variables a and b. Swap their values and

show the results before and after. (3 Marks)

*************************************

1|Page
Note-

1. Kindly use the pages for writing the programs as used for the
vacation homework.
2. Use transparent folder to clip the pages.
3. Use proper comments to explain a particular statement.
4. Variable description is must.
5. Output must be written for each and every program.
6. Attempt all the questions.
7. Refer to the example given on page no. 3.
8. All programs should have same pattern/method of writing a
program as example given.
9. The last date to submit the project of the First Term is 15th
August 2024.

Each program should fulfill the following requirements:

Class Variable Coding and Execution


Design Description Documentation of Output
Coding should be done
step by step , it should Output
Program It should have
be readable and should be
Should have Name of the
without any error. displayed
suitable variable, Data
There should be as per the
class or type, and the
proper use of question
class name purpose.
semicolons, brackets, asked.
functions etc.

2|Page
Example for Reference: (Comments are highlighted with red font)

Assignment No. 1

“PROGRAM TO CALCULATE THE AREA OF A RECTANGLE.”

import java.util.Scanner;
public class rec_area
{
public static void main(String[] args) {
// This program calculates the area of a rectangle
// Input: Length and width of the rectangle
Scanner scanner = new Scanner(System.in);
System.out.print("Enter the length of the rectangle: ");
double l = scanner.nextDouble(); // Length of the rectangle
System.out.print("Enter the width of the rectangle: ");
double w = scanner.nextDouble(); // Width of the rectangle
// Calculate the area of the rectangle
double area = l * w; // Area = length * width
// Output the result
System.out.println("The area of the rectangle is: " + area);
}
}
Variable Description Table:
Variable
Data Type Purpose/ Description
Name
L Double stores the length of the rectangle

W Double stores the width of the rectangle

Area Double stores the calculated area of the rectangle

Output
Enter the length of the rectangle: 5
Enter the width of the rectangle: 3
The area of the rectangle is: 15.0

3|Page

You might also like