Ask a user to enter a single four digit birth date number representing the month and date he/she was born. ( Example if someone has a birthday of December 13 they would enter 1213) Split the 4 digit...




Ask a user to enter a single four digit birth date number representing the month and date he/she was born. ( Example if someone has a birthday of December 13 they would enter 1213) Split the 4 digit birth date into two 2 digit numbers. One contains the first two digits and the second the last 2 digits of the birth date. (Example 12 and 13) Divide the first 2 by the last 2 to get a quotient. (Example 12/13) If the quotient is greater or equal to one- multiply it by a random integer in the range of 10 through 20 and display the result. Otherwise add to the quotient a random integer in the range 30 through 40 and display the result. Hint- to split the 4 digits remember your ISBN problem or day of week problem. Also- this should all be done as integer math.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here