project1 - CS 240 Project 1 Summer 2009 Due Date Wednesday...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 240 Project 1 Summer 2009 Due Date: Wednesday, July 1, 4:00 p.m. Upload to WebCT the zipped file of your complete NetBeans project (named yourLastName_project1). Complete the following program: Write a program that enables a person to play the Rock-Scissor-Paper game against the computer. Allowable moves are P , R , or S (upper- or lower-case). The winner is determined by these rules: Paper covers rock, Rock smashes scissors, Scissors cuts paper, or game is a tie. Some guidelines: Use comments to divide your code into the following sections: Variable declarations Get user input Get computer move Determine/Display winner Variable declarations. Determine what items must be stored and declare variables accordingly. Get user input. Ask the player for his/her name. Then ask this person to enter his/her move as a single character P, R, or S (upper- or lower-case). If the move is not valid, display a message to that effect and end the program (the statement return; will have the effect of ending the program).
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern