Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
CS 4700 Program 2 Ruby Programming (15 Points) For each person in your group, you want to assign a "spy" such that no one spies on themselves or someone with the
 

Summary: CS 4700 Program 2 Ruby Programming (15 Points)
Spies

For each person in your group, you want to assign a "spy" such that no one spies on themselves or someone with the
same last name. You don't want a person to spy on someone who is also spying on them (as they may discover the
spying).

Input:
A file you will name "people.txt" of the form:
Luke Skywalker
Leia Skywalker
John Wayne
Clark Kent
Lois Ken
Pop Eye
Private Eye
Robotic Eye
Vicki Allan
Joe Allan
Terrance Allan

  

Source: Allan, Vicki H. - Department of Computer Science, Utah State University

 

Collections: Computer Technologies and Information Sciences