0% found this document useful (0 votes)
100 views2 pages

Project 1 CA 10th

This document contains 7 computer programming assignments for a grade 10 class. The assignments cover topics like electricity bill calculation, water tax calculation, salary calculation, series summation, pattern printing, checking for palindrome and perfect numbers, and checking if a number is a neon number. The document provides sample inputs, outputs and formulas for each programming problem.

Uploaded by

Adam Maxwell
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views2 pages

Project 1 CA 10th

This document contains 7 computer programming assignments for a grade 10 class. The assignments cover topics like electricity bill calculation, water tax calculation, salary calculation, series summation, pattern printing, checking for palindrome and perfect numbers, and checking if a number is a neon number. The document provides sample inputs, outputs and formulas for each programming problem.

Uploaded by

Adam Maxwell
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

MES Kishore Kendra Public School

Vidyaranyapura, Bangalore-97
Grade X
Computer Assignment: 2019 -20

1. An Electricity Board charges from the consumers according to the units


consumed per month but the amount is to be paid quarterly in advance as per
the given tariff:
UNITS CONSUMER CHARGES
Up to 100 units Rs. 4.80/unit
For next 200 units Rs. 5.50/unit
For next 300 units Rs.6.80/unit
For next 600 units Rs.7.50/unit
Write a program to input consumer’s name, consumer number and the unit
consumed. The program displays the following information at the time of
receiving the money receipt as:
Electricity Board
Money Receipt
Consumer Number:
Consumer’s Name:
Monthly Amount:
Amount to be paid quarterly:

2. To foster a sense of water conservation, the water department has an annual


water conservation tax policy. The rates are based on the water consumption
of the consumer. The tax rates are as follows:
Water consumed(in Gallons) Tax Rate in Rs./100 gallons
Up to 45 No tax
More than 45 but 75 or less 475.00
More than 75 but 125 or less 750.00
More than 125 but 200 or less 1225.00
More than 200 but 350 or less 1650.00
More than 350 2000.00
Write a program in Java to compute and display an annual water tax based on
the input value of water consumption.
3. A company announces revised Dearness Allowance(DA) and Special
Allowances(SA) for their employees as per the tariff given below:
Basic Dearness Allowance(DA) Special Allowance(SA)
Up to 10,000 10% 5%
10,001 – 20,000 12% 8%
20,001 – 30,000 15% 10%
30,001 and above 20% 12%
Write a program to accept Basic Salary (BS) of an employee. Calculate and
display gross salary.
Gross salary= Basic+ Dearness Allowance +Special Allowance
Print the information in the given Format:
BASIC DA Special Allowance Gross Salary

4. Write a program to find the sum of series, taking the value of ‘a’ and ‘n’
from the user.
𝑎+1 𝑎+3 𝑎+5 𝑎+𝑛
S= + + + ⋯……
2 4 6 𝑛+1

5. Write a program to display the given pattern:


1
23
456
7 8 9 10
11 12 13 14 15
6. Write a menu driven class to accept a number from the user and check
whether it is a palindrome or perfect number.
(i) Palindrome Number: A number is a palindrome which when read in
reverse order is same as in the right order.
(ii) Perfect Number: A number is called perfect if it is equal to the sum of
its factors other than the number itself.
7. Write a program to enter a number and check whether the number is
‘Neon’ or not. A number is said to be a ‘Neon’, if sum of the digits of square
of a number is equal to the number itself.
Sample Input: 9
Sample Output: 9 * 9= 81, 8+1 = 9
: 9 is a Neon Number

You might also like