Assignment #3-Assessment for Unit #4 (7 pts)Try to code the compound conditional
ID: 3597975 • Letter: A
Question
Assignment #3-Assessment for Unit #4 (7 pts)Try to code the compound conditional information: You have read in an Employee's name (s Name), age (iAge) status (istutassume l is full- (sGender). For gender assume 4. expressions for the following sentences using the following and gender M" is male and" F"is female. For employment status assume ns time and 2 is part-time. Sentence writedown the conditional expression that will determine if a female employee is over 65 years old. Compound Conditional Expression - Gener: And iAje>65) Write down the conditional expression that will determine if an employee is anyong of nenec the following conditions: at least 40 years old, nnkr male employee, part-time employee. .. M., Write down the conditional expression that will indicate if a maleemployee is part-time o younger thanl ender Ane Write down the conditional expression that sus 2 will indicate if a part-time employee who 17 years old Write down the conditional expression that ciStutus:2) will specify if it is a part-time female employee who is 18 years old or a full-time ender: f employee who is a female at least 25 years old ne e: 5) Page 3 of 4 3/28/2017Explanation / Answer
1.
(sGender=='F' && iAge > 65)
2.
(iAge > 40 || sGender=='M' || iStatus==2)
3.
(sGender=='M' && (iStatus==2 || iAge < 17))
4.
(iStatus==2 && sName != 'Sue Brown' && iAge > 17)
5.
(sGender=='F' && iStatus==2 && iAge==18) || (iStatus==1 && sGender=='F' && iAge >= 25)