Question
In C++ I need help with a bulls and cows program. There are some rules I have to follow. 1. The program must have a
In C++ I need help with a bulls and cows program. There are some rules I have to follow.
1. The program must have a hardcoded secret number that consist of five integers with no repeat digits. The user is to play as many times as they wish but after winning the, program should tell you how many tries it took.
2. The program must have at least TWO! eceptions The first is that no repeated digits are allowed not by the user input and not by the secret number EX: User input (12134) is NOT allowed because 1 is repeated. The second exception is that we must incorporate an invalid input exception meaning the user must enter at least five integers and those intergers can't be greater than 9 or less than zero.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started