1 / 1

PRG 410 Week 2 Individual Assignment Individual: FizzBuzz Program, Part 1//tutorfortune.com

PRG 410 Week 2 Individual Assignment Individual: FizzBuzz Program, Part 1//tutorfortune.com<br><br>Click on below link to buy<br>https://tutorfortune.com/products/prg-410-week-2-individual-assignment-individual-fizzbuzz-program-part-1<br><br>PRG 410 Week 2 Individual Assignment Individual: FizzBuzz Program, Part 1<br> <br>Instructions: Write a console-based C program that requests the user to input a single positive integer as input and outputs a result based on the input value: Please enter number, then press Enter key: 8 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 3. If the number is not divisible by either 3 or 5, the program will give the output "Number: # - NoMatch" Please enter a number, then press the Enter Key: 4 Output: Number: 4 - NoMatch Expand this to accept a comma or space separated list of numbers and print the output of each number according to the rules above. (Prompt the user whether to use a space or comma when the program starts.) Example: Please enter an array of number(s): 3,10,30,4 Output: Number: 3 - Fizz, Number: 10 - Buzz, Number: 30 - FizzBuzz, Number: 4 - NoMatch Note. Use new to allocate storage (new int) for each input number) and put the input numbers into an array or list (from the ones available in the Standard Template Library). Also Note: Make sure the program handles an arbitrary number of input numbers not just the ones listed here. The numbers will not necessarily be in any specific order or be limited to 4 items, that will depend on what the user enters. Using an STL storage class will allow an arbitrary number of numbers and you do not need to worry about running out of memory. Include a proper header file. Use proper coding conventions and proper comments throughout your program. Submit a single final program having all the full functionality from the expanded section above. 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 zipped assignment using the Assignment Files tab<br>Click on below link to buy<br>https://tutorfortune.com/products/prg-410-week-2-individual-assignment-individual-fizzbuzz-program-part-1<br><br>

future
Download Presentation

PRG 410 Week 2 Individual Assignment Individual: FizzBuzz Program, Part 1//tutorfortune.com

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PRG 410 Week 2 Individual Assignment Individual: FizzBuzz Program, Part 1//tutorfortune.com Click on below link to buy https://tutorfortune.com/products/prg-410-week-2-individual-assignment-individual- fizzbuzz-program-part-1 P R G 4 1 0 We e k 2 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 1   I n s t r u c t i o n s : Wr i t e a c o n s o l e - b a s e d C + + p r o g r a m t h a t r e q u e s t s t h e u s e r t o i n p u t a s i n g l e p o s i t i v e i n t e g e r a s i n p u t a n d o u t p u t s a r e s u l t b a s e d o n t h e i n p u t v a l u e : P l e a s e e n t e r n u mb e r , t h e n p r e s s E n t e r k e y : 8 T h e p r o g r a m w i l l t h e n w r i t e t h e f o l l o w i n g o u t p u t a c c o r d i n g t o t h e f o l l o w i n g r u l e s : 1 . I f t h e n u mb e r i s d i v i s i b l e b y 3 . T h e p r o g r a m w i l l g i v e t h e o u t p u t " N u mb e r : # - F i z z " P l e a s e e n t e r a n u mb e r , t h e n p r e s s E n t e r k e y : 6 O u t p u t : N u mb e r : 6 - F i z z 2 . I f t h e n u mb e r i s d i v i s i b l e b y 5 . T h e p r o g r a m w i l l g i v e t h e o u t p u t " N u mb e r : # - B u z z " P l e a s e e n t e r a n u mb e r , t h e n p r e s s E n t e r k e y : 1 0 O u t p u t : N u mb e r : 1 0 - B u z z 3 . I f t h e n u mb e r i s b o t h d i v i s i b l e b y 3 a n d 5 . T h e p r o g r a m w i l l g i v e t h e o u t p u t " N u mb e r : # - F i z z B u z z " P l e a s e e n t e r a n u mb e r , t h e n p r e s s t h e E n t e r K e y : 3 0 O u t p u t : N u mb e r : 3 0 - F i z z B u z z 3 . I f t h e n u mb e r i s n o t d i v i s i b l e b y e i t h e r 3 o r 5 , t h e p r o g r a m w i l l g i v e t h e o u t p u t " N u mb e r : # - N o Ma t c h " P l e a s e e n t e r a n u mb e r , t h e n p r e s s t h e E n t e r K e y : 4 O u t p u t : N u mb e r : 4 - N o Ma t c h E x p a n d t h i s t o a c c e p t a c o mma o r s p a c e s e p a r a t e d l i s t o f n u mb e r s a n d p r i n t t h e o u t p u t o f e a c h n u mb e r a c c o r d i n g t o t h e r u l e s a b o v e .   ( P r o mp t t h e u s e r w h e t h e r t o u s e a s p a c e o r c o mma w h e n t h e p r o g r a m s t a r t s . ) E x a mp l e : P l e a s e e n t e r a n a r r a y o f n u mb e r ( s ) : 3 , 1 0 , 3 0 , 4 O u t p u t : N u mb e r : 3 - F i z z , N u mb e r : 1 0 - B u z z , N u mb e r : 3 0 - F i z z B u z z , N u mb e r : 4 - N o Ma t c h N o t e . U s e n e w t o a l l o c a t e s t o r a g e ( n e w i n t ) f o r e a c h i n p u t n u mb e r ) a n d p u t t h e i n p u t n u mb e r s i n t o a n a r r a y o r l i s t ( f r o m t h e o n e s a v a i l a b l e i n t h e S t a n d a r d T e mp l a t e L i b r a r y ) . A l s o N o t e :   Ma k e s u r e t h e p r o g r a m h a n d l e s a n a r b i t r a r y n u mb e r o f i n p u t n u mb e r s n o t j u s t t h e o n e s l i s t e d h e r e .   T h e n u mb e r s w i l l n o t n e c e s s a r i l y b e i n a n y s p e c i fi c o r d e r o r b e l i mi t e d t o 4 i t e ms , t h a t w i l l d e p e n d o n w h a t t h e u s e r e n t e r s .   U s i n g a n S T L s t o r a g e c l a s s w i l l a l l o w a n a r b i t r a r y n u mb e r o f n u mb e r s a n d y o u d o n o t n e e d t o w o r r y a b o u t r u n n i n g o u t o f me mo r y . 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. S u b mi t a s i n g l e fi n a l p r o g r a m h a v i n g a l l t h e f u l l f u n c t i o n a l i t y f r o m t h e e x p a n d e d s e c t i o n a b o v e . 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 z i p p e d 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-2-individual-assignment-individual- fizzbuzz-program-part-1

More Related