Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE help me with ODD #'s!! 5 & 7! PLEASE show work and C# ONLY! THANKS! 5. a. Write a program named Ch If the

PLEASE help me with ODD #'s!! 5 & 7! PLEASE show work and C# ONLY! THANKS!

image text in transcribed

5. a. Write a program named Ch If the value entered is greater than 12 or less than 1, display a eckMonth that prompts a user to enter a birth HIU onerwise, display the valid month with a message such as 3 is a valid mon b. Write a program named C month with a message such as 3 is a valid month. and day. Display an error message if the month is invalid (no heckMonth2 that prompts a user to enter a birth month t 1 through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between 1 and 29 for February). If Account numbers sometimes contain a check digit that is the the month and day are valid, display them with a message. 6. result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain the number is a valid one. Write an application named CheckDigit ti to enter a four-digit account number and The number whether at asks a user determines whether it is a valid number. is valid if the fourth digit is the remainder when the number represented the first three digits of the four-digit number is divided by 7. For example, 7770 valid, because 0 is the remainder when 777 is divided by 7. The next problems rely on the generation of a random number. You o create a random number that is at least min but less than max using the following statements: an Random ranNumberGenerator new RandomO int randomNumber; randomNumber = ranNumberGene rator. Next (min, max); Write a program named GuessingGame that generates a random number between 1 and 10. (In other words, in the example above, min is 1 and max is 11.) Ask a user to guess the random number, then display the random number and a message indicating whether the user's guess was too high, too low, or correct. 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions