Project Topics - Computer Applications (First Term)
Project Topics - Computer Applications (First Term)
Q.1 Program to add three numbers and find its average. (2 Marks)
Q.3 Program to find the quotient and remainder of the division of two numbers.
(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.8 Program to input two numbers in Java and print the square root and cube
Q.9 Write a program to input four numbers and print the biggest among them.
Q.10 Program to assign the values to the variables a and b. Swap their values and
*************************************
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.
2|Page
Example for Reference: (Comments are highlighted with red font)
Assignment No. 1
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
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