Eligibility Criteria - 4
Given a student has scored M marks in Maths, P marks in Physics and C
marks in Chemistry. Write a program to check if a student is eligible for admission in a professional course. If any one of the below conditions is satisfied then the student is eligible.
1) M >= 60, P >= 50, C >= 45 and M + P + C >= 180.
2) Total in M and P >= 120 or Total in C and P >= 110.
The first line is an integer M
The second line is an integer p
The third line is an integer C
The output should be a single line containing True , if it satisfies the given conditions, False in all other cases
Given M = 72, P = 65, C = 51 , the scores of this student satisfies the first condition
M >= 60, (72 >= 60)
P >= 50 (65 >= 50)
C >= 45 (51 >= 45)
M + P + C >= 180 (72 + 65 + 51 >= 180)
So, the student is eligible.
Sample Input 1
72
65
51
Sample Output 1
True
Sample Input 2
70
70
Sample Output 2
False
Sample Input 3
60
60
40
Sample Output 3
True
Draw an ER diagram for a university library information system which stores
information about books, journals, publishers, students, staff, borrowing of books,
and reservation of books. Note that the library may have more than one copy for
some of the books. You must show the entities, relationships and attributes along
with the cardinality constraints and proper symbols.
Years, Weeks & Days
Given N number of days as input, write a program to convert N. number of days to years (Y)
weeks (W) and days (D)
Note:
The input contains single integer N
Print space-separated integers Y, W and D
Given N = 1329
The value can be written as
1329 = 3 years + 33 weeks + 3 days
So the output should be
3 33 3
.
Sample Input 1
1329
Sample Output 1
3
33
3
Sample Input 2
Sample Output 2
Elements in the Range
You are given three numbers. Check if any of the numbers exist in the range from 10 to 20 (including 10 and 20).
The first, second, and third lines of input are integers.
The output should be either
True or False
Given
a = 2, b = 4, c = 16 , 16 is in the range between 10 and 20.
So the output should be True
Sample Input 1
2
4
16
Sample Output 1
True
Sample Input 2
2
4
6
Sample Output 2
False
You are given N number of inputs. Print the maximum of them after each input.
Diamond Crystal
Given an integer value
N, write a program to print a diamond pattern of 2*N rows as shown below.
You are given a word W as input. Print W by adding a hyphen (-) between each letter in the word.
In the given example, the word is
Hello.So, the output should be H-e-l-l-o.
Problem #2 (20 points for pseudocode)
You are working for the weather channel and you have to write a program that will generate the average temperature for the last 7 days. A modular code is preferred, but a non-modular code is OK. (Provide the pseudocode)