problem 1) prepare a program to input marks of a student and print the result (pass/fail) using conditional operator.
problem 2) prepare a program to input inches from the user and convert it into yards, feet and inches.
problem 3) prepare a program to determine the area of a triangle.
problem 4) prepare a program to determine whether a given number is even or odd using conditional operator.
problem 5) prepare a program to determine the greatest of three numbers using conditional operator.
problem 6) prepare a program to input choice (1 or 2). If choice is 1 print the area of a circle otherwise print the circumference of circle. Input the radius from user.
problem 7) prepare a program to input a number. If the number is even, print its square otherwise print itscube.
problem 8) prepare a program to input employee code, name and basic salary of an employee and compute the following values:
HRA 40 % of basic salary
DA 10 % of basic salary
CCA 5 % of basic salary
GS Basic + HRA + DA + CCA
PF 10 % of GS
IT 10 % of GS
NS GS – (PF + IT)
Display all the values.
problem 9) prepare a program to input the temperature in Fahrenheit and convert it into Celsius and viceversa.
problem 10) prepare a program to swap the values of two integer variables
(a)Using extra variable
(b) Without using extra variable
problem 11) prepare a program to print the system date.
problem 12) prepare a program to find the age of a person by the given date of birth.