Difference between revisions of "CSC111 Homework 4 2014"

From dftwiki3
Jump to: navigation, search
(Requirements)
(Requirements)
Line 21: Line 21:
 
<br />
 
<br />
 
* The program will stop only once the difference in score between computer and human players is 3.
 
* The program will stop only once the difference in score between computer and human players is 3.
* You should not include the mug of '''Homework 3''' in this  program/game.
+
* You should '''not''' include the mug of '''Homework 3''' in this  program/game.  
 
* The program will keep on prompting the user if the input is not one of 'P', 'R', or 'S'.  The program will accept valid letters in lower or upper case, and with extra spaces before or after the letter.
 
* The program will keep on prompting the user if the input is not one of 'P', 'R', or 'S'.  The program will accept valid letters in lower or upper case, and with extra spaces before or after the letter.
 
* The program will indicate the winner of each round.
 
* The program will indicate the winner of each round.
Line 28: Line 28:
  
 
<br />
 
<br />
 +
=Problem #2=
 
<br />
 
<br />
 +
Write a program...
 
<br />
 
<br />
 
<br />
 
<br />
 +
=Submission=
 +
<br />
 +
Submit your programs to [http://cs.smith.edu/~thiebaut/111b/submit4.php cs.smith.edu/~thiebaut/111b/submit4.php].
 
<br />
 
<br />
 
<br />
 
<br />

Revision as of 12:33, 18 February 2014

--D. Thiebaut (talk) 12:26, 18 February 2014 (EST)



This assignment can be do individually or in Programming-Pair mode. You are not restricted in your selection of a partner if you are working in pair. The assignment is due on Thursday evening, February 27th, 2014, at midnight.






Problem #1


Rewrite the Rock-Scissors-Paper game using while loops. Call your program hw4a.py.

Requirements


  • The program will stop only once the difference in score between computer and human players is 3.
  • You should not include the mug of Homework 3 in this program/game.
  • The program will keep on prompting the user if the input is not one of 'P', 'R', or 'S'. The program will accept valid letters in lower or upper case, and with extra spaces before or after the letter.
  • The program will indicate the winner of each round.
  • The program will output a final string at the end, when the difference in score is 3, pointing out and congratulating the winner.



Problem #2


Write a program...

Submission


Submit your programs to cs.smith.edu/~thiebaut/111b/submit4.php.