Professional Documents
Culture Documents
Gr10 Revision Programs
Gr10 Revision Programs
Revision Q1.A cloth showroom has announced the following festival discounts
on the purchase of items, based on the total cost of the item purchased:
Write a program to input the total cost and to compute and display the amount
to be paid by the customer after availing the discount.
Revision Q2.The tax department has announced the new tax rated and
deductions as per the following rules:
Write a program to input name, pan number, gross monthly income and gender
(F for Female and M for Male). Compute the annual gross income, taxable
income and the tax to be paid using the above criteria. Print name, pan number,
gross annual income, taxable income and tax to be paid.
Programs:
60) An electricity board charges the bill depending on the number of units
consumed as follows:
Units Charge
First 100 units 40 p per unit
Next 200 units 60 p per unit
Above 300 units Re. 1 per unit
Write a java program to print the net bill to be paid by a consumer. The net
bill includes a rent of Rs. 250.00 charged from a consumer.
62)Write a program to compute the amount that a customer pays for the taxi that
he/she hires based on the following conditions:
Kms travelled Amount per km
Up to or equal to 1km 25
More than 1 to 6 Km 10
More than 6 to 12 15
More than 12 to 18 20
More than 18 25
Input the customer name, the taxi number and the number of kilo meters
travelled by him/her. Compute the amount to be paid by the customer and
display the details in the following format:
Taxi no Name km travelled bill amount
63) Write a program to calculate and print the sum of the series:
Sum =2 – 4 + 6 – 8 +……………….. – 20
66) Create a function int maxDigit(long num) to find and return the greatest
digit from the number stored in num. Write main( ) function to call the given
function and display the greatest digit.