PRG 410 Week 2 Individual: FizzBuzz Program, Part 1

PRG 410 Week 2 Individual: FizzBuzz Program, Part 1

Entire Course Link

https://uopcourses.com/

https://plus.google.com/u/0/108200033792883877670/posts/dWT4sDYbQKM
 

 PRG 410 Week 2 Individual: FizzBuzz Program, Part 1
 

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

The program will then write the following output according to the following rules:

 

 

 

If the number is both divisible by 3 and 5. The program will give the output “Number: # – FizzBuzz” (replace # with the value entered by the user)
 

 

If the number is divisible by 3. The program will give the output “Number: # – Fizz” (replace # with the value entered by the user)
 

 

If the number is divisible by 5. The program will give the output “Number: # – Buzz” (replace # with the value entered by the user)
 

 

Note. If the number is NOT divisible by either 3, 5, or 3 or 5, the program will prompt the user to try again by entering another number to test.

Pause the program so the user can see the results of the test.

Add additional code at the end of the program to accept a comma separated list of numbers and print the output of each number according to the rules above.

Example: Please enter an array of number(s): 3,10,30

Number: 3 – Fizz

Number: 10 – Buzz

Number: 30 – FizzBuzz

Zip  your project by locating the location of the files and zipping the project folder.

Submit your assignment using the Assignment Files tab.
Powered by