80 likes | 250 Views
Lab 4 Compound Logical Statements. Qutaiba Albluwi Introduction to MIS (ITD2011). Question 1 (AND function with 3 statements). If a student got: Above 15 in exam1 AND Above 15 in exam2 AND Above 30 in the final (true) Excellent Student (false) Average Student.
E N D
Lab 4Compound Logical Statements Qutaiba AlbluwiIntroduction to MIS (ITD2011)
Question 1(AND function with 3 statements) • If a student got: • Above 15 in exam1 AND • Above 15 in exam2 AND • Above 30 in the final • (true) Excellent Student • (false) Average Student
Question 2(Compound IF statement) • If a student has a grade in assignments greater than or equal to 16 (True) Good • (False) If less than 7 • (True) Lazy • (False) OK
Question 4(Compound AND-OR Statement) • If a student grade in exam 1, OR exam 2 is less than 10, AND his grade in the final is less than 25 • (true) bad examinee • (false) average examinee
Question 5(Compound OR-AND Statement) • IF a student’s grade in exam 1 AND exam 2 is greater than 15OR the final grade is greater than 25 • (True) Honour student • (False) Average Student
Question 6(Compound mathematical and logical statements) • If a student achieved the highest grade in Exam1, Exam2 or Final • (True) Top student • (false) ordinary
Question 7(Compound conditional and logical statements) • If a student has:Exam 1 >10 OR exam2 >15AND Final >= 30 • (True)Brilliant • (Fals) If Exam 1 > 8 OR exam 2 > 13 AND Final >=28 • (True)Good(Fals) bad