0% found this document useful (0 votes)
264 views5 pages

Class 10 Sci A Holiday Homework of Computer App 2024 - 25

Bhia

Uploaded by

devilllll709
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)
264 views5 pages

Class 10 Sci A Holiday Homework of Computer App 2024 - 25

Bhia

Uploaded by

devilllll709
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
You are on page 1/ 5

HOLIDAY HOMEWORK 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:

Write a menu driven program for the following:

Option a: To find and display the sum of the series given below:

S = x1 - x2 + x3 - x4 + x5 - ………… - x20; where x inputted by user.

Option b: To display the sum of the following series:

1 + (1+2) + (1+2+3) + (1+2+3+ 4) + ……. (1+2+ …+n) where n is inputted by user.

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

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.

Old Slab New Slab

Annual Salary (Rs.) Income Tax Rates Income Tax Rates

1000 + 10% of income


0 to 250000 Nil
exceeding 100000

5000 + 15% of income


250000 to 500000 5%
exceeding 350000

7500 + 20% of income


500000 to 1000000 20%
exceeding 750000

10000 + 25% of income


Greater than 1000000 30%
exceeding 100000
Question No. 6:
An electronic shop has announced the seasonal discounts on the purchase of certain items.
Purchase amount in Rs. Discount on Laptop Discount on Desktop
0 – 25000 5.0% 7.5%
above 25000 – 57000 7.5% 10.0%
above 57000 – 100000 10.0% 15.0%
More than 100000 15.0% 20.0%
Write a program based on above criteria, to input name of customer, address of customer,
amount of purchase and type of purchase (L for Laptop and D for Desktop). Calculate and
print the net amount to be paid by the customer along with his/her name and address.

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:

i. Write a program to print the following Binary Triangle


0
1 0 1
01 0 1 0
1 01 0 1 01
01 01 0 1 01 0

ii. Write a program to print the hollow Diamond


@
@ @
@ @
@ @
@ @
@ @
@ @
@ @
@

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:

PQR PQR PQR PQR


PQR PQR PQR
PQR PQR
PQR
PQR PQR
PQR PQR PQR
PQR PQR PQR PQR

__________________
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.

3. Use A4 size interleave pages to complete your computer project work.


4. On the blank side you have to paste the Screenshot of Terminal window (Output of your
program).
5. On the right-side Handwritten Program. Use black pen to write questions and use blue
pen to write java programs.
6. Keep all pages in an A4 size file in a proper sequence as follows:
a. Front Page (Coloured Printed Page from any colour lab of A4 size)
b. Acknowledgement (Coloured / B&W Printed Page of A4 size)
c. Index (Printed pages sent to you as PDF of 10 questions)
d. 10 Handwritten Programs & their outputs.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy