20 likes | 37 Views
PRG 410 Week 3 Individual Assignment Individual: FizzBuzz Program, Part 2//tutorfortune.com<br><br>Click on below link to buy<br>https://tutorfortune.com/products/prg-410-week-3-individual-assignment-individual-fizzbuzz-program-part-2<br><br>PRG 410 Week 3 Individual Assignment Individual: FizzBuzz Program, Part 2<br> <br>Instructions: Modify the FizzBuzz 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 FizzBuzz calculation from Week 2. Create a function to do the FizzBuzz check, returning the state of the match. This should be of the format fizzBuzzTypeEnum FizzBuzz (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 FizzBuzz value. This should have the format of void OutputFizzBuzzValue (fizzBuzzValueEnum fbVal). Use a switch statement in this function to determine which text to output using count.<br>Loop through user input until the user gets a FizzBuzz 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, FizzBuzz, NoMatch) 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 Microsoftu00ae Visual Studiou00ae 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 Studiou00ae must be used for this assignment. Submit your assignment using the Assignment Files tab.<br>Click on below link to buy<br>https://tutorfortune.com/products/prg-410-week-3-individual-assignment-individual-fizzbuzz-program-part-2<br><br>
E N D
PRG 410 Week 3 Individual Assignment Individual: FizzBuzz Program, Part 2//tutorfortune.com Click on below link to buy https://tutorfortune.com/products/prg-410-week-3-individual-assignment-individual- fizzbuzz-program-part-2 P R G 4 1 0 We e k 3 I n d i v i d u a l A s s i g n me n t I n d i v i d u a l : F i z z B u z z P r o g r a m, P a r t 2 I n s t r u c t i o n s : Mo d i f y t h e F i z z B u z z p r o g r a m d e v e l o p e d i n We e k T w o t o h a v e t h e f u n c t i o n a l i t y n o t e d b e l o w . B u i l d a 1 0 b y 1 0 a r r a y o f v a l u e s ( u s i n g a n a p p r o p r i a t e S T L a r r a y s t r u c t u r e ) . T h e v a l u e s i n e a c h c e l l w i l l s t a r t a t 1 f o r t h e fi r s t c e l l a n d e n d a t 1 0 0 f o r t h e fi n a l c e l l , i n c r e a s i n g b y 1 f o r e a c h e l e me n t i n a r o w . T h e v a l u e o f t h e c e l l i n e a c h r o w w i l l b e 1 0 mo r e t h a n t h e v a l u e o f t h e c e l l i n t h e r o w d i r e c t l y a b o v e i t . F o r e x a mp l e , ( 1 , 1 ) w o u l d h a v e t h e v a l u e o f 1 , ( 1 , 2 ) w o u l d h a v e t h e v a l u e o f 2 , ( 1 , 5 ) w o u l d h a v e t h e v a l u e o f 5 , ( 2 , 1 ) w o u l d h a v e t h e v a l u e o f 1 1 , e t c . T h e fi n a l c e l l , ( 1 0 , 1 0 ) w o u l d h a v e t h e v a l u e o f 1 0 0 . U s e t h i s a r r a y t o l o o k l o o k u p v a l u e s f o r t h e F i z z B u z z c a l c u l a t i o n f r o m We e k 2 . C r e a t e a f u n c t i o n t o d o t h e F i z z B u z z c h e c k , r e t u r n i n g t h e s t a t e o f t h e ma t c h . T h i s s h o u l d b e o f t h e f o r ma t fi z z B u z z T y p e E n u m F i z z B u z z ( i n t r o w , i n t c o l u mn ) . T h e r e t u r n v a l u e w o u l d b e t h e s t a t e o f t h e c e l l ' s n u mb e r ( F i z z , B u z z , F i z z B u z z , o r N o Ma t c h ) . T h e e n u m s h o u l d h a v e t h e p o s s i b l e v a l u e s a s a l l o w a b l e e n t r i e s a n d s h o u l d b e a g l o b a l v a l u e u s a b l e b y t h e e n t i r e p r o g r a m a n d a n y f u n c t i o n s . C r e a t e a n a r r a y o f a s t r u c t t o t h a t w i l l h o l d t h e r o w , c o l u mn , a n d r e s u l t v a l u e f r o m t h e F i z z B u z z c h e c k f o r e a c h u s e r e n t e r e d v a l u e . C r e a t e a n o t h e r f u n c t i o n t o o u t p u t t h e F i z z B u z z v a l u e . T h i s s h o u l d h a v e t h e f o r ma t o f v o i d O u t p u t F i z z B u z z V a l u e ( fi z z B u z z V a l u e E n u m f b V a l ) . U s e a s w i t c h s t a t e me n t i n t h i s f u n c t i o n t o d e t e r mi n e w h i c h t e x t t o o u t p u t u s i n g c o u n t . L o o p t h r o u g h u s e r i n p u t u n t i l t h e u s e r g e t s a F i z z B u z z r e s u l t f r o m t h e i r c h o i c e o r t h e v a l u e - 1 , - 1 i s e n t e r e d . P r e s e n t t h e r e s u l t s f o r e a c h c h o i c e , n o t i n g t h e r o w , c o l u mn , n u mb e r ( i n t h e ma t c h i n g c e l l ) a n d t h e s t a t e o f t h a t n u mb e r ( F i z z , B u z z , F i z z B u z z , N o Ma t c h ) f o r e a c h c h o i c e . P r i n t t h e u s e r c h o i c e s a n d r e s u l t i n g v a l u e s , a l o n g w i t h t h e n u mb e r o f g u e s s e s t h a t w e r e ma d e a t t h e e n d o f t h e p r o g r a m, b u t b e f o r e i t q u i t s . P a u s e t o a l l o w t h e u s e r t o s e e t h i s i n f o r ma t i o n b e f o r e t h e p r o g r a m e n d s . U s e e i t h e r s p a c e s o r c o mma s t o s e p a r a t e u s e r i n p u t a n d i n f o r m t h e u s e r o f w h i c h i s b e i n g u s e d b y t h e p r o g r a m. I n c l u d e a p r o p e r h e a d e r fi l e . U s e p r o p e r c o d i n g c o n v e n t i o n s a n d p r o p e r c o mme n t s t h r o u g h o u t y o u r p r o g r a m. C o mp r e s s a l l y o u r Mi c r o s o f t ® V i s u a l S t u d i o ® s o u r c e c o d e fi l e s i n t h e c o n s o l e a p p l i c a t i o n f o l d e r i n t o a Z I P fi l e . T h e s u b mi t t e d f o l d e r mu s t p r o p e r l y l a u n c h b y c l i c k i n g t h e p r o j e c t fi l e a t t h e t o p l e v e l a n d l i n k t o a l l t h e n e e d e d fi l e s . V i s u a l S t u d i o ® mu s t b e u s e d f o r t h i s a s s i g n me n t . S u b mi t y o u r a s s i g n me n t u s i n g t h e A s s i g n me n t F i l e s t a b . Click on below link to buy https://tutorfortune.com/products/prg-410-week-3-individual-assignment-individual- fizzbuzz-program-part-2