Name : Bhavyam Sharma
Class: XI – B
Roll NO. : 29
Q1. WAP to input two numbers. Add, subtract, multiply and divide
Q2. WAP to enter marks of five subjects out of 100 each and print the average marks
Q3. WAP to calculate simple interest where principle, rate and time are entered by the user
Q4. WAP to calculate total price when user enter the quantity and unit price of an item. Also
calculate the price after allowing 10% discount on total price
Q5. Write a program to enter two numbers and find remainder.
Q6. Write a program to input total number of days and find total number of months and
remaining days after months.
Q7. Write a program to find area and perimeter of Square, circle and rectangle.
Q8. Write a program to convert Fahrenheit to Celsius and vice versa.
Q9. An amount of Rs 1,50,000 is deposited in a bank paying an annual interest rate of 8.5 %,
compounded quarterly. Find the balance after 6 years. (A= P(1+r/n)nt
Q10. Write a program to calculate volume and surface area of sphere
Q11. Write a program to enter two strings and concatenate them.
Q12. Write a program to enter two numbers and find greater of the two numbers.
Q13. Write a program to enter the time in minutes and print in as ____ hours and ______min
Q14. Write a program to calculate sales tax of an item
Q15. Write a program to input total marks of 5 subjects. Find the percentage and print “Grade A”
if the percentage is greater than or equal to 80.
Q16. Write a program to take a number from user if number is < 120 print square else print
square is not allowed.
Q17. Write a program to print whether the number is greater than zero or not.
Q18. Write a program to check whether a number is divisible with another number or not.
Display appropriate result.
Q19. Write a program to enter average marks and print the grade as per following criteria
>80 A
>70 B
>60 C
>50 D
<50 E
Q20. Write a program to enter a number and check if the number is zero, positive or negative
using if else if ladder.