Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).
 
Options:
RSS cloud
Jump to:

Assignment 1- Question 4

4 of 390 articles shown, currently no other people reading this forum.
photo
From: Wei L.
Date: Sun 5th Apr 2020, 4:22pm
Actions: 
        Login-to-reply

 

Hi Chris, 

Just want to clarify on whole family. In the question, is it mean that we need to 
generate family name that all people survived wreck crash of Titanic?

Regards,
Weichean Liew

Assignment 1- Question 4

photo
From: Christopher M.
Date: Mon 6th Apr 2020, 8:44am
Actions: 
        Login-to-reply

 

"Wei Liew" <22*1*2*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hi Chris, 
> 
> Just want to clarify on whole family. In the question, is it mean that we need to 
> generate family name that all people survived wreck crash of Titanic?

Hi Wei,

As an example, if all members ( >= 2) of the Liew, McDonald, and Kennedy families survived 
the shipwreck, a suitable output for this task would be the 3 lines:

Liew
McDonald
Kennedy

Does that make more sense?

Assignment 1- Question 4

photo
From: Wei L.  O.P.
Date: Mon 6th Apr 2020, 12:23pm
Actions: 
        Login-to-reply

 

Hi Chris, 

Just for example:
If Drucker family had 3 members on the ship, only 2 survived. 

If Booker family had 3 members on the ship, all survived. 

So, the output should be Booker family instead of Drucker family as Drucker family had lost 1 
family member. 

Is it correct? 

Regards,
Weichean Liew

Assignment 1- Question 4

photo
From: Christopher M.
Date: Mon 6th Apr 2020, 12:26pm
Actions: 
        Login-to-reply

 

"Wei Liew" <22*1*2*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hi Chris, 
> 
> Just for example:
> If Drucker family had 3 members on the ship, only 2 survived.

They would not be listed as the *whole* family did not survive.


> If Booker family had 3 members on the ship, all survived.

Would be listed.


> So, the output should be Booker family instead of Drucker family as Drucker family had lost 1 
> family member.

Yes  (except there's no reason to include your phrase 'instead of').
Only and all families where all members survived will be listed.
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020