CONDITION CHECKING
20.
Write a Program to accept two numbers & print which is greater.
21.
Write a Program to accept a number & print if it is positive or negative.
22.
Write a Program to accept a number & print if it is even or odd.
23.
Write a Program to accept a character & print if it is Capital or Small letter.
24.
Write a program to accept percentage of the student & print his/her grade.
Percentage
Grade
> 75
Distinction
>= 60 && <= 75
First Class
>= 50 && < 60
Second Class
>= 40 && < 50
Pass Class
< 40
Fail
25.
Write a Program to calculate Electricity bill as per following rules:
Units consumed
Charges per unit (Rs.)
<= 100
0.50/-
>= 101 && <= 300
0.60/-
>= 301
1.00/-
26.
Write a program to check whether given year is leap or not using ternary operator.
20.
Write a Program to accept two numbers & print which is greater.
21.
Write a Program to accept a number & print if it is positive or negative.
22.
Write a Program to accept a number & print if it is even or odd.
23.
Write a Program to accept a character & print if it is Capital or Small letter.
24.
Write a program to accept percentage of the student & print his/her grade.
Percentage
|
Grade
|
> 75
|
Distinction
|
>= 60 && <= 75
|
First Class
|
>= 50 && < 60
|
Second Class
|
>= 40 && < 50
|
Pass Class
|
< 40
|
Fail
|
25.
Write a Program to calculate Electricity bill as per following rules:
Units consumed
|
Charges per unit (Rs.)
|
<= 100
|
0.50/-
|
>= 101 && <= 300
|
0.60/-
|
>= 301
|
1.00/-
|
26.
Write a program to check whether given year is leap or not using ternary operator.
M.C.A I Programming assignment List 2014
1.
|
Write a program to print your resume
|
2.
|
a) Write a program to add, subtract, multiply, divide 2 numbers.
b) Write a program above assignment after accepting numbers from user.
|
3.
|
Write a Program to accept a number & print its square and cube
|
4.
|
Write a program to print ascii value of a given character and convert it into opposite case.
|
5.
|
Ramesh’s basic salary is input through the keyboard. His dearness (DA) allowance is 40% of the basic salary, and house rent(HR) allowance is 20% of the basic salary. Write a program to calculate his gross salary.
|
6.
|
Write a Program to accept length & breadth of rectangle & print its area.
|
7.
|
Write a Program to accept radius of circle & print its area.
|
8.
|
Write a Program to accept radius of a sphere & print its volume (4/3 πr3).
|
9.
|
Write a Program to accept side of a cube & print its volume(s3).
|
WAP to check whether the given number is Prime or not.
| |
WAP to display all the prime numbers between 1 to 100.
| |
WAP to display all the Perfect numbers between 1 to 100..
| |
WAP to check given number is palindrome or not.
| |
WAP to add n integers.
| |
WAP to check given number is amstrong or not.
| |
Accept a 4 digit number and print reverse
| |
Accept a 4 digit number and print sum of 1st and last digit
| |
Write a program to find out a magic number from the entered number.
| |
Write a program to display the Fibonacci series.
| |
Write a program to swap two numbers without using third variable.
|