Specifically, Fictitious does not know when pigs will fly. The best Fictitious has been able to do is to make a guess as to how many days away pigs will able to fly, and then modifying that initial guess based on observations that he makes. Fictitious would like your team to help automate this process. You are to write a program that will read in his initial guess. Then your program will allow Fictitious to perform a series of operations on the initial guess, based on his input.
All computations are to be on integers and result in integers.
Your program should input an initial guess. It should then input a command string to see which operation should be performed or if the program should terminate. Your program should continue prompting for command strings and making calculations until the user indicates they wish to quit by entering the command string end . Your program should display the current guess for the number of days until pigs fly after each operation is performed and at the termination of the program. If the current guess for the number of days until pigs fly becomes less than zero, your program should display that pigs have been able to fly for that number of days.