1.ODD OR EVEN
2. DIVISIBLE BY 7 AND 3
3. DIVISIBLE BY 2 OR 3
2. DIVISIBLE BY 7 AND 3
3. DIVISIBLE BY 2 OR 3
Write a program that prints “yes” if the given integer is divisible by 2 or 3 and “no” otherwise
4. MAXIMUM OF 2
Write a program to find the maximum of 2 numbers.
5. MAXIMUM OF 3
Write a program to find the maximum of 3 numbers.
6.LEAP YEAR
Write a program to check whether a given year is a leap year or not.
7.CALCULATE GRADE
Write a program that accepts the marks in 3 subjects of a student , calculates the average mark of the student and prints the student's grade. If the average mark is greater than or equal to 90, then the grade is 'A'. If the average mark is 80 and between 80 and 90, then the grade is 'B'. If the average mark is 70 and between 70 and 80, then the grade is 'C'. If the average mark is 60 and between 60 and 70, then the grade is 'D'. If the average mark is 50 and between 50 and 60, then the grade is 'E'. If the average mark is less than 50, then the grade is 'F'.
8.CHARACTER – UPPER OR LOWER
Write a program that accepts a character as input and checks whether it is an uppercase letter or lowercase letter or neither.
code:
9.IN / OUT
Ms. Sita, the faculty handling programming lab for you is very strict. Your seniors have told you that she will not allow you to enter the week's lab if you have not completed atleast half the number of problems given last week. Many of you didn't understand this statement and so they requested the good programmers from your batch to write a program to find whether a student will be allowed into a week's lab given the number of problems given last week and the number of problems solved by the student in that week.
Can you help in writing this program?
code:
10.NEW or OLD
When parents take their kids for Engineering Counselling, they always go with apreconceived notion that older the college, better will be the quality of education offered. There is a help desk in front of the counselling hall to tell out of the colleges in which seats are available, which college is the older one.
Nowadays, engineering counselling goes on for a month and the help desk needs to function on all days. So the Dean, Admissions decided to automate this task. Can you help him in this task?
Given the year of establishment of 2 colleges, write a program to determine which college is the older one.
code:
thankyou......
No comments:
Post a Comment