Question
2. a program applying our discussion on methods and your knowledge on user- * input algorithm, following the instructions below: * * a. Accept two
2. a program applying our discussion on methods and your knowledge on user- * input algorithm, following the instructions below: *
* a. Accept two numbers from the user, store it in two different variables named * num1 and num2;
* b. Accept a number in word (e.g. five) and store it in a variable named NUMBA;
* c. Convert the value of NUMBA into its equivalent number (e.g. five into 5; NOTE: Limit your input to numbers 1-10), * and store it in a variable named NumericalEqui;
* d. Call a method named sumNum which accepts three numbers;
* d.1. Get the sum of the first two numbers and store the result to a * variable named ResultOne;
* d.2. Get the sum of the first number and the third number, and store the * result to a variable named ResultTwo; *
d.3. Get the sum of the last two numbers and store the result to a variable * named ResultThree;
* d.4. Get the sum of ResultOne, ResultTwo and ResultThree, and return the * the result;
* e. Display the following result based on the inputs: *
* You entered [1st number], [2nd number] and [number in word] * The equivalent number of [num in word] is [converted number] * The sum of first two numbers, the first number and the equivalent numerical value of the word [number in word], and the the second number and the equivalent numerical value of the word [number in word] is [sum of all] * Thank you!
Step 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