Question: please i need this code in cpp language Write a complete C+ program for a guessing game as follows: 1. Create one array - that

please i need this code in cpp language
please i need this code in cpp language Write a complete C+

Write a complete C+ program for a guessing game as follows: 1. Create one array - that contains numbers from 0 to 4 . ( 0.5 mark). {0,1,2,3,4} 2. Ask the user to guess a number - it must be from 0 to 4 . ( 0.5 mark). Guess a number? 3. Rotate the array elements two cells to the right. (1 mark). 4. Check if the user input number is equal to the number in index 0 or not. ( 0.5 mark). If equal, print - (Correct - Win) ( 0.5 mark). If not - repeat the steps from 2 to 4 - (Wrong - guess another number) (0.5 mark). 5. Ask the user to enter a number from 0 to 4 , then find the location of the number. (0.5 mark). 6. Print the array elements by the end of the game. ( 0.5 mark). 7. Take a screenshot of the output. (0.5 mark)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!