Computer Project Class IX UNIT
Computer Project Class IX UNIT
Question 1
A shopkeeper offers 10% discount on the printed price of a mobile phone. However, a
customer has to pay 9% GST on the remaining amount. Write a program in Java to calculate
the amount to be paid by the customer taking printed price as an input.
Question 2
A man spends (1/2) of his salary on food, (1/15) on rent, (1/10) on miscellaneous. Rest of the
salary is his saving. Write a program to calculate and display the following:
Question 3
Write a program to input time in seconds. Display the time after converting them into hours,
minutes and seconds.
Sample Input: Time in seconds: 5420
Sample Output: 1 Hour 30 Minutes 20 Seconds
Question 4
Write a program to input two unequal numbers. Display the numbers after swapping their
values in the variables without using a third variable.
Sample Input: a = 76, b = 65
Sample Output: a = 65, b = 76
Question 5
A certain amount of money is invested for 3 years at the rate of 6%, 8% and 10% per annum
compounded annually. Write a program to calculate:
Write a program to find the result of a 2 + 2ab + b2 using ‘a’ and ‘b’ as user input.
Question 7
Write a program to take the temperature in Celcius and convert and print the temperature in
Fahrenheit. [f = (c * (9/5)) + 32]
Question 8
Write a program to take number of years, months and days from the user and print the total
number of days (Consider 30 days in a month).
_________