B. Let p and q be propositions
p: You make a correct program
q: You get an A
Write each of the following sentences in terms of p, q and logical connectives:
______________1. You do not make a correct program.
______________2. You make a correct program, but you do not get an A.
______________3. Making a correct program is sufficient for getting an A.
______________4. You get an A but you do not make a correct program.
______________5. Whenever you get an A, you are making a correct program.
A. Let p and q be propositions
p: 4 is an even integer
q: 5 is an odd integer
Write each of the following sentences in terms of p, q and logical connectives:
______________1. 4 is an even integer and 5 is an odd integer.
______________2. 4 is not an even integer or 5 is an odd integer.
______________3. If 4 is an even integer then 5 is an odd integer.
______________4. 4 is an even integer whenever 5 is an odd integer.
______________5. 4 is not an even integer if an only if 5 is not an odd integer.
state the statement is true or false the function f[x,y]={x^2y/x^4+y^2[x,y]=0 is not continuous at [0,0] and 0,[x,y]=0
HALINDROME Given string S. Let us divide S to two equal parts S1 and S2. S is called halindrome if atleast any one of the following condition satisfy. a) String S is palindrom and length of S >=2 b) String S1 is halindrom. c) String s2 is halindrom. In case of odd length string, the middle element is not present in both S1 and S2. If index of middle element is M, then S1 is equal to S[0,m-1] and S2 = S[m+1, |S|- 1].
Input Specification
Input1: No. of strings. 1<= Input1 <=100
Output Specification find whether string is halindrome.
A string is Halindrom if any one of the criteria is correct .
a) String S is palindrom and its length is >=2
b) String S1 is halindrom.
c) String s2 is halindrom. if string length of S is odd then center letter is ignored and S1 is [0, len/2 -1] and S2 is [len/2+1, len-1]
ELECTROSTATICS:
Doug caught up with a rod comprising of negative(N) and positive(P) charges. He is asked to calculate the maximum net absolute value of electrostatic field possible in the region due to the rod.
Note : Assume, Electrostatic field = (absolute value of total charge) * 100;
input1 : {4,3,5}
input2 : PNP
output : (4-3+5) * 100 = 600
A higher coffee price (substitute for tea) will shift the demand curve to left. True/false?
Use the bissection method to approximate the root of f(x)=2x²-1 in the interval . Let ε=0.1 be the margin of error of approximation.
A patient with first stage zombie virus has escaped from the facility in a city of population N. The zombie virus is very dangerous as it passes on to othr people as they come in contact with the patient makin them a petient as well. Zombie virus has K life stages to develop, each of which takes 1 unit of time. Only the last stage is contagious. A person with zombie attack only healthy people and can oly affect one person in 1 unit of time. If the patient escaped on day 1, find out the number of days it will take to wipe out the entire city's healthy population and turn them into a last stage zombie. Note: 1 unit of time is equal to 1 day.
i/p1: Total healthy population of the city
i/p2: No. of stages of zombie virus.
Ex1
i/p1:10
i/p2:1
o/p:5
Hence, on day2, the affected population will be 2 and so on. On day 5, the affected population will be 16 which is bigger than 10. Ex2
i/p1:10
i/p2:2
o/p:6 It takes 2 days for virus to evolve.
For 2AB+C₂ → A₂+2BC, suppose AH = 100kJ, E₁-250kJ, and that the intermediate is A + C. Describe a potential energy process for this reaction. You do not need to use your reaction mechanism for this question.
B. Let p and q be propositions.
p: Cristina is a computer science major.
q: Leonardo is an Information Technology major.
Express each of these proposition as an English sentence:
1. q =
2. pq =
3. pq =
4. ¬q V (¬p ^ q )=
5. p ↔q =