CS13 - Guessing game Write a two player guessing game. Players must guess a secret number (an integer) which is given as
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
CS13 - Guessing game Write a two player guessing game. Players must guess a secret number (an integer) which is given as
CS13 - Guessing game Write a two player guessing game. Players must guess a secret number (an integer) which is given as a command line argument. The program will begin by asking players for their name. The program will alternate, asking each player in the following style: <player>, what is your guess? When the player inputs a guess, 3 possible outcomes are possible. • The secret number is higher than the player's guess. The program will then output higher and go to the next player. • The secret number is lower than the player's guess. The program will then output Lower and go to the next player. • The secret number is equal to the player's guess. The program will print <player> wins! and the program will end. Assume all inputs are valid. Example:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!