Question: Assignment 5 - Numerical Representation Synopsis: Given 2 input numbers ( each on a line ) , output results based on the following rules: If

Assignment 5- Numerical Representation
Synopsis:
Given 2 input numbers (each on a line), output results based on the following rules:
If the input numbers' RANGE (i.e.5...8) falls between 1 and 9, then output, in lowercase, it's Word representation (e.g. one, two, three, four, five, six, seven, eight, nine)
If the Range exceeds 9, and the number is even, then output "even".
If the Range exceeds 9, and the number is odd, then output "odd".
Finally, the assumption is that the 1 st input 2 nd input. So you don't have to account for a case in which the 1st input is greater than the 2nd input (e.g.12 and 9). However, if you want the extra challenge, you can write your solution to address this type of scenario/"Edge Case". Otherwise, it's not required
 Assignment 5- Numerical Representation Synopsis: Given 2 input numbers (each on

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!