Question
Prompt the user to input their lucky number. Upon getting the users input, validate that the input is a valid number using Int32.TryParse (more info
Prompt the user to input their lucky number. Upon getting the users input, validate that the input is a valid number using Int32.TryParse (more info can be found at https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/how-to-convert-a-string-to-a-number (Links to an external site.)). If the input is not a valid number, output a message to the user stating that you are sorry but you are unable to run the FizzBuzz process due to the input not being a valid number. If the input is valid, you are clear to start the FizzBuzz process. If the input is divisible by 3, then output {number} Fizz. If the input is divisible by 5, then output {number} Buzz. If the input is divisible by 3 AND 5, output {number} FizzBuzz. If it is not divisible by either 3 or 5, simply just output the number.
I need help with this code please.,.. It's C#
FizzBuzz - Name at the top O pts Full Marks O pts No Marks O pts FizzBuzz - Get input for lucky number from user 10 pts Full Marks O pts No 10 pts Marks FizzBuzz - Validate that the user entered a number using TryParse. Conditional for input - Invalid number should result in a statement saying unable to process, valid number should start FizzBuzz 10 pts Full O pts No 10 pts Marks Marks FizzBuzz - If ... Else If ... Else If ... Else for FizzBuzz process 15 pts O pts Full Marks No Marks 15 pts FizzBuzz - Output for invalid input 2.5 pts Full Marks O pts No Marks 2.5 pts FizzBuzz - Output for FizzBuzz Process (Should be Lucky Number and if it is fizzbuzz/fizz/buzz otherwise just the #) O pts 2.5 pts Full Marks No 2.5 pts MarksStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started