Question: Please code this problem using C++ program. Also, no using arrays or advance strings. Problem A: Number game (20 points) Write a C++ program that
Please code this problem using C++ program. Also, no using arrays or advance strings.


Problem A: Number game (20 points) Write a C++ program that will play the following game. Ask the user how many "rounds" you want to play and start at 10 points. Every turn you can add either 1 point (by choosing a) or 2 points (by choosing 'b'). After adding this you should do one of two things: If the end result is a Fibonacci number, add to the current points the sum of the next 'n' Fibonacci numbers starting at the Fibonacci number equal to the point value, where 'n' is the current round. If on the 3d round you had 8 points, since 8 is a Fibonacci number you would compute the new score as: 8+ (8+13+21) 42 If the end result is not a Fibonacci number, divide it by two and round down any fractions. At the start of each round tell them how many points they currently have and ask what they want to do. If it is the final round, tell them their final score and end the program. Example 1 (user input is underlined): How many rounds? 3 Current points: 10 Choose: (a) add 1 point, (b) add 2 points.. Current points: 5 Choose: (a) add 1 point, (b) add 2 points Current points: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
