0% found this document useful (0 votes)
17 views11 pages

Computer Applications Assignments Guide

The document outlines assignments for Grade 10 Computer Applications at JSS International School, detailing various programming tasks and concepts to be completed by students. It includes topics such as Tech Numbers, temperature conversion, composite numbers, series calculations, and more, with specific programming requirements for each task. Additionally, it provides a certificate template for completion of the assignments and includes a sample Java code for a salary increment program based on age.

Uploaded by

narutofromspain
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)
17 views11 pages

Computer Applications Assignments Guide

The document outlines assignments for Grade 10 Computer Applications at JSS International School, detailing various programming tasks and concepts to be completed by students. It includes topics such as Tech Numbers, temperature conversion, composite numbers, series calculations, and more, with specific programming requirements for each task. Additionally, it provides a certificate template for completion of the assignments and includes a sample Java code for a salary increment program based on age.

Uploaded by

narutofromspain
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

a Assignments

Computer Applications

Name:
Grade: 10
Division:
Roll No:
JSS INTERNATIONAL SCHOOL
P. O. Box: 37232, JVC, Dubai– U.A.E

CERTIFICATE

This is to certify that Ms./Mr. has satisfactorily completed the assignements in COMPUTER APPLICATION
prescribed by the ICSE BOARD- Grade X of this institution in the year 2025-26.

Signature of Teacher in – charge Head of the Department

Date:

Name of the Candidate:


Register N umber: JSSIS00550-12/13//sample
Index Page
PROGRAMS

1. Tech Number

A Tech number is a number with even number of digits. If the number is split into two equal halves
and the sum of these halves is squared, the result is equal to the original number.

Example:
2025 → 20 + 25 = 45 → 45² = 2025 ✅ → Tech Number

2. Scholar's Library Membership

Write a program to input the total cost of the item purchased, discount amount to be paid after availing
discount and the assured gift.

Months Discount Assured Gifts

1-3 5% Bookmark Set

4-6 10 % Reading Lamp

7-12 15 % Personal Diary

More than 12 20 % Wireless Earbuds

3. Temperature.

Using a switch statement, write a menu driven program to convert a given temperature from Fahrenheit
to Celsius and vice versa. For an incorrect choice, an appropriate error message should be displayed.

4. Composite and Smallest Number.

Using the switch statement, write a menu driven program:

 To check and display whether a number input by the user is a composite number or not (A number
is said to be a composite, if it has one or more than one factor excluding 1 and the number itself).

 To find the smallest number of an integer is input.

For an incorrect choice, an appropriate error message should be displayed.

5. Series program.

Write a program to calculate and print the sum of each of the following series:

 Sum (S) = 1² – 2² + 3² – 4² + 5² – 6² + … ± n²

 Sum (S) = x/3 + x/6 + x/9 + x/12 + … + x/30

6. Spy Number

A Spy number is a number where the sum of its digits equals the product of its digits.

7. Pattern Program

Write a program to display the given pattern:

1 2 3 4 5

2 2 3 4 5

3 3 3 4 5

4 4 4 4 5

5 5 5 5 5

8. Maximum and minimum number.

Write a program to initialize the given data in an array and find the minimum and maximum values
along with the sum of given elements.

9. Length of the smallest Word

Write a program to input a sentence and print the number of characters found in the smallest word of
the given sentence.
10. Convert_case

Write a program to input a string and print out the text with the uppercase and lowercase letters
reversed, but all other characters should remain the same as before.

11. Frequency of the search word.

Write a program to enter a sentence from the keyboard and count the number of times a particular word
occurs in it. Display the frequency of the search word.

12. Piglatin word

Write a program in java to accept a word and display the same in Pig latin form. A word is said to be
pig latin form when it is obtained by forming a new word by placing the first vowel of the original word
at the start of the new word along with the letters following it. The letters present before the first vowel
are shifted to the end of the new word, followed by ‘ay’.

13. Palindrome_word

Write a program to accept a sentence and display only ‘Palindrome words”. A word is palindrome if it
appears to be the same after reversing its characters.

14. Write a program in java to accept a string in lower case. Convert all the first letters of the words in the
string in upper case and display the new String.

Sample Input : understanding computer applications

Sample Output: Understanding Computer Applications

15. Automorphic number.

An automorphic number is a number that is contained in the last digit (s) of its square. Write a program
to accept a number and check whether it is automorphic or not. Use the function name as digits (int n)
that returns the last digit(s) present in the number.

16. Twin_prime_func

Write a program to accept two numbers and check whether they are twin prime or not. Use the function
name as twin( ). The function returns 1 if it is twin prime, otherwise it returns 0. Twin Prime numbers
are the prime numbers whose difference is 2.
17. Function overloading - Area of Different Triangles

Write a program using function overloading called area() to calculate the area of:

• Equilateral Triangle (side known)

• Right-Angled Triangle (base and height known)

• Scalene Triangle (using Heron's formula with three sides a, b, c)

Display the menu to output the area as per User’s choice.

18. Bubble Sort

Write a program to accept a set of 10 integers in a Single dimensional array. Sort the numbers in
ascending order by using the bubble sort technique. Display the sorted array.

19. Binary Search

Write a program to accept a student ID (integer) from the user. Using linear search on the given array of
student IDs, output:

• "Student found" if the ID is present in the array

• "Student not found" if the ID is not present

Student IDs Array: {102, 305, 214, 123, 432, 512, 401, 298, 390, 275}

20. Function Overloading

Write a program to perform the following operations by using function overloading concept:

 generate ( ) : To use the function with an integer type argument to generate Fibonacci series up to
given value.

 generate ( ) : To use the function with two integer type arguments to print the prime numbers
between both the values.

21. Library Class

Define a class called Library with the following description: Instance variables / data members:

• int acc_num – Stores the accession number of the book String title – stores the title of the book.

• String author – Stores the name of the author Member methods :


 -A parameterized constructor to initialize the data members.

 -void input( ) – To input and store the accession number, title and author.

 -void compute ( ) – To accept the number of days late, calculate and display the fine charged at
the rate of Rs. 2 per day.

 void display ( ) – To display the details in the following format:

Write a main method to create an object of the class and call the above member methods.

22. Default Constructor

A company announces an increment of their employees on seniority basis as per the given condition:

Age Increment
56 years and above 20 % of basic
Above 45 and below 56 years 15 % of basic
Up to 45 years 10 % of basic

Write a program to find new basic by using the following class specifications:

• Class : Increment

• Data members / Instant variables :

• String name : Name of the employee

• double basic : Basic pay of the employee int age : Age of the employee

• Member methods:

 Increment( ) : Initialize the default constructor

 void getdata( String n, double b, int a) : to accept name, basic and age.

 void calculate( ) : To find increment and update basic pay

 void display ( ) : To display age and updated basic


• Code:

//Constructor and function program for increment of basic salary based on age in a company

import [Link].*; public class Increment

String name; double basic; int age;

Increment()//default constructor

name=""; basic=0.0; age=0;

public void getdata(String n,double b,int a)//parameterized function to recieve data from main

name=n; age=a; basic=b;

public void calculate()//function to calculate increment

double inc = 0.0; if(age>=56)

inc= basic*20.0/100.0; if(age<56 && age>45) inc=basic*15.0/100.0; if(age<=45)


inc=basic*10.0/100.0; Double new_pay =basic+inc;

public void display()//function to display details

[Link]("Name\t" + "Age\t" + "Updated Basic\t");

[Link](name + "\t" +age+"\t" +basic);


}

public static void main(String args[])throws IOException//main function

InputStreamReader read = new InputStreamReader ([Link]);

BufferedReader in = new BufferedReader (read);

[Link]("Enter you name , age and basic pay"); String m= [Link]();

int c= [Link]([Link]());

double d =[Link]([Link]()); Increment ob = new Increment(); [Link](m,d,c);

[Link](); [Link]();

• Output:
• Variable Description:

Name of the Variable Data Type Description / Purpose


name String Variable available for all functions of the class storing
name of employee.
basic Double Variable available for all functions of the class storing
basic pay.
age Integer Variable available for all functions of the class storing
age of employee.
n String Value parsed from main is stored here.

b Double Value parsed from main is stored here.

a Integer Value parsed from main is stored here.

inc Double Variable used to calculate increment amount.

new_pay Double Variable used to calculate basic + increment.

m String Variable in main to declare initial value input by the


user.
c Integer Variable in main to declareinitial value input from
user.
d Double Variable in main to declare initial value input from user.

You might also like