Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Do you know how you will monitor progress?

Answered: 1 week ago

Question

Recommend the key methods to improve service productivity.

Answered: 1 week ago