Solved by verified expert:Write a console-based C++ program that requests the user to input a single positive integer as input and waits until the student presses the Enter key:The program will then write the following output according to the following rules:1. If the number is divisible by 3. The program will give the output “Number: # – Fizz”Please enter a number, then press Enter key: 6Output: Number: 6 – Fizz 2. If the number is divisible by 5. The program will give the output “Number: # – Buzz”Please enter a number, then press Enter key: 10Output: Number: 10 – Buzz3. If the number is both divisible by 3 and 5. The program will give the output “Number: # – FizzBuzz”Please enter a number, then press the Enter Key: 30Output: Number: 30 – FizzBuzz4. If the number is NOT divisible by either 3 or 5, the program will give the output ” Number: # – Sorry”Please enter a number, then press Enter key: 8Output: Number: 8 – SorryExpand the application to repeat the process until the user enters “end”.
wk2solo.zip
Unformatted Attachment Preview
…
Purchase answer to see full
attachment