Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions