PRG/411 C++ Course - Week 2 Individual Hands-on Assignment: Object-Oriented Guessing Game, Part One Resources: U...
of 1

Prg411 week 2 ia

2. Individual Hands-on Assignment: Object-Oriented Guessing Game, Part One • Resources: University of Phoenix Material: Programming Assignment Worksheet • Write a console-based object-oriented C++ program that generates a random number and prompts the user to guess it. • Allow the user to guess the number until they find one that matches. Each time the user guesses, tell the user if the guess matches. If the guess does not match, tell the user if the guess was too high or too low. • Use a nonstatic member variable integer within a class called GuessingGame to store the random number obtained from a built-in function. Include a static member constant for the maximum random number the computer can choose. Set the initial random value of the random number member variable in a constructor. Use the this member to reference the random number. The remainder of your program will be in the main function in the same file. Instantiate the GuessingGame object and use its random number member within your program. • Include the proper header and make sure you properly comment your program. Make sure you use proper coding conventions. • Complete the University of Phoenix Material: Programming Assignment Worksheet, located on your student website. • Submit the worksheet with an attached .zip file, with the source and executables.
Published on: Mar 4, 2016
Source: www.slideshare.net


Transcripts - Prg411 week 2 ia

  • 1. PRG/411 C++ Course - Week 2 Individual Hands-on Assignment: Object-Oriented Guessing Game, Part One Resources: University of Phoenix Material: Programming Assignment Worksheet Write a console-based object-oriented C++ program that generates a random number and prompts the user to guess it. Allow the user to guess the number until they find one that matches. Each time the user guesses, tell the user if the guess matches. If the guess does not match, tell the user if the guess was too high or too low. Use a nonstatic member variable integer within a class called GuessingGame to store the random number obtained from a built-in function. Include a static member constant for the maximum random number the computer can choose. Set the initial random value of the random number member variable in a constructor. Use the this member to reference the random number. The remainder of your program will be in the main function in the same file. Instantiate the GuessingGame object and use its random number member within your program. Include the proper header and make sure you properly comment your program. Make sure you use proper coding conventions. Complete the University of Phoenix Material: Programming Assignment Worksheet, located on your student website. Submit the worksheet with an attached .zip file, with the source and executables.CLICK HERE TO GET THE SOLUTION !!!!!!!!!

Related Documents