Class 10 Sci A Holiday Homework of Computer App 2024 - 25
Class 10 Sci A Holiday Homework of Computer App 2024 - 25
Class – X Science
Section – A
Sub: COMPUTER APPLICATIONS
Question No. 1
A unique-digit integer is a positive integer (without leading zeros) with no duplicate digits.
For example: 7, 135, 214 are all unique-digit integers whereas 33, 3121, 300 are not. Given
two positive integers m and n, where m < n, write a program to determine how many unique-
digit integers are there in the range between m and n (both inclusive) and output them. The
input contains two positive integers m and n. Assume m < 30000 and n < 30000. You are to
output the number of unique-digit integers in the specified range along with their values in the
format specified below:
Sample Input:
m = 100
n = 120
Sample Output:
The Unique-Digit integers are:
102, 103, 104, 105, 106, 107, 108, 109, 120.
Frequency of unique-digit integers is: 9
Question No. 2:
A Smith number is a composite number, whose sum of the digits is equal to the sum of its
prime factors. For example: 4, 22, 27, 58, 85, 94, 121 ………. are Smith numbers.
Write a program to enter a number and check whether it is a Smith number or not.
Sample Input: 666
Sum of the digits: 6 + 6 + 6 = 18
Prime factors are: 2, 3, 3, 37
Sum of the digits of the prime factors: 2 + 3 + 3 + (3 + 7) = 18
Thus, 666 is a Smith Number.
Question No. 3
A prime triplet is a set of three prime numbers of the form (p, p + 2, p + 6) or (p, p + 4, p +
6)
For example we take prime number 5
Here p=5
then p+2= 5+2 = 7 is a prime
and p+6 = 5+6 = 11 is a prime
Then (5,7,11) is a prime triplet.
Write a program to enter start limit S (S>0) and the last limit L (L>S), print all prime triplets
between S and L (both inclusive).
Question No. 4:
Option a: To find and display the sum of the series given below:
Question No. 5:
Write a program to calculate the total income tax paid in old and new tax slabs by taking
the monthly salary from the user.
Question No. 7:
Write a program to accept a date in three in three integer variables separately dd, mm & yyyy
and check its validity. A date may be incorrect at Day number, at Month number and at year.
For example:
Sample Input: dd= 32 mm = 9 yyyy=2023 Output: Invalid Date
Sample Input: dd= 27 mm = 18 yyyy=2000 Output: Invalid Date
Sample Input: dd= 29 mm = 2 yyyy=1999 Output: Invalid Date
Sample Input: dd= 12 mm = 12 yyyy=-2012 Output: Invalid Date
Sample Input: dd= 22 mm = 5 yyyy=2024 Output: Valid Date
Question No. 8:
A popular soap brand has launched a new soap. A survey is conducted to find the number of
people who liked, who disliked and who remained neutral towards the launch. Write a program
to accept the choice of n people and display the percentage of people in each category.
Question No.9:
Write a program to input daily sales of shop for 6 days in a week, calculate and print the
weekly total and monthly total. You can assume that 4 week make a month.
Question No. 10:
iii. Write a program to enter your name in a String and print your name in triangular shape
and in inverted triangular shape as follows:
For example if your name is PQR then print:
__________________
General Instructions
1. Design a colourful Front page of A4 size of your Computer Project file with background
images that may be related to Blue-J, java programming, Laptop, Computer, St. George’s
Logo or Building (You can make a collage of 2 or more of these pictures).
2. Front page must contain Heading Computer Project, academic year 2024 - 25, submitted
by, roll number, class, section and submitted to: Mr. Ritesh Kr. Sharma You must arrange
headings as follows.