PRG 410 Week 3 Individual Assignment Individual: Fizz Buzz Program, Part 2 | University Of Phoenix
- University of Phoenix / PRG 410
- 23 Feb 2019
- Price: $20
- Other / Other
PRG 410 Week 3 Individual Assignment Individual: Fizz Buzz Program, Part 2 | University Of Phoenix
PRG 410 Week 3 Individual Assignment Individual: FizzBuzz Program, Part 2
Instructions: Modify the Fizz Buzz program developed in Week Two to have the functionality noted below. Build a 10 by 10 array of values (using an appropriate STL array structure). The values in each cell will start at 1 for the first cell and end at 100 for the final cell, increasing by 1 for each element in a row. The value of the cell in each row will be 10 more than the value of the cell in the row directly above it. For example, (1,1) would have the value of 1, (1,2) would have the value of 2, (1,5) would have the value of 5, (2,1) would have the value of 11, etc. The final cell, (10, 10) would have the value of 100. Use this array to look look up values for the Fizz Buzz calculation from Week 2. Create a function to do the Fizz Buzz check, returning the state of the match. This should be of the format fizz BuzzType Enum Fizz Buzz (int row, int column). The return value would be the state of the cell's number (Fizz, Buzz, FizzBuzz, or NoMatch). The enum should have the possible values as allowable entries and should be a global value usable by the entire program and any functions. Create an array of a struct to that will hold the row, column, and result value from the FizzBuzz check for each user entered value. Create another function to output the Fizz Buzz value. This should have the format of void Output Fizz Buzz Value (fizz Buzz Value Enum fb Val). Use a switch statement in this function to determine which text to output using count.
Loop through user input until the user gets a Fizz Buzz result from their choice or the value -1,-1 is entered. Present the results for each choice, noting the row, column, number (in the matching cell) and the state of that number (Fizz, Buzz, Fizz Buzz, No Match) for each choice. Print the user choices and resulting values, along with the number of guesses that were made at the end of the program, but before it quits. Pause to allow the user to see this information before the program ends. Use either spaces or commas to separate user input and inform the user of which is being used by the program. Include a proper header file. Use proper coding conventions and proper comments throughout your program. Compress all your Microsoft® Visual Studio® source code files in the console application folder into a ZIP file. The submitted folder must properly launch by clicking the project file at the top level and link to all the needed files. Visual Studio® must be used for this assignment. Submit your assignment using the Assignment Files tab.