Write-a-console-based-C-program-that-requests-the-user-to-input-a-single-positive-integer

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: 6

Output: 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: 10

Output: Number: 10 – Buzz

3. 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: 30

Output: Number: 30 – FizzBuzz

4. 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: 8

Output: Number: 8 – Sorry

Expand the application to repeat the process until the user enters “end”.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.