Posts

17. Program that inputs a value and type of conversion. The program should then displays the output after conversion.

16. Program inputs the type of vehicle and number of days to park the vehicle. It finally displays the total charges for the parking.

15. Program that inputs year and month. It displays the number of days in the month of the year entered by the user.

14. Program that inputs the salary of an employee from the user. It deducts the income tax from the salary. The program finally displays salary, income tax and the net salary.

13. Program that will take three values a, b and c and print the roots, if real, of the quadratic equation ax^2 + bx + c = 0.

12. Program that converts MILITARY time to STANDARD time.

11. Program that inputs obtained marks of a student, calculates the percentage and displays grade.

10. Program that inputs temperature and displays a message.

9. Program that inputs a year and display "Leap year" if it is a leap year otherwise displays "Not a leap year".

8. Program that inputs a value and type of conversion. The program should then output the value after conversion.

7. Program inputs code for movie type and display its category.

6. Program that accepts the code number as an input and display the correct disk drive manufacture.

5. Program that gets the number and a letter. If the letter is 'f', convert it to the temperature in degree Celsius. If the letter is 'c', convert it to Fahrenheit temperature.

4. Program that contains an if statement that may be used to compute the area of a square or a triangle after prompting the user to type the first character of the figure names.

3. Program to get three numbers from user for integer variables a, b and c. If a is not zero, find out whether it is the common divisor of b and c.

2. Program that accepts as input a salesperson status. If status is s or S, the senior person salary should be displayed; if status is j or J, the junior person salary should be displayed.

1. Program that accepts a character and determines whether the character is a lowercase letter.

Program that inputs two numbers and finds if second number is square of first.

Program that inputs two numbers and finds whether both are equal.

Program that input marks and displays "Congratulations! You have passed." if the marks are 40 or more.