Create a program using class that randomly adds, subtract, and multiply numbers base on the user's input. In your code, reflect the following additional instructions: 1. Initial number should be "10" 2. In your class, create objects ( using functions) specific for [1] subtraction, [2] addition [3] multiplication, [4] printing, and [5] user inputs. 3. Options (e.g. subtraction, addition, multiplication, exit) should be presented in the terminal window. Sample output: Initial Value: 10 Options: a. Addition b. Subtraction c. Multiplication User Input: Addition. Input number to add to initial value: _10_ Updated value: 20

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

C++ program

Create a program using class that randomly adds, subtract, and multiply numbers base on the user's input. In your
code, reflect the following additional instructions:
1. Initial number should be "10"
2. In your class, create objects ( using functions) specific for [1] subtraction, [2] addition [3] multiplication, [4] printing,
and [5] user inputs.
3. Options (e.g. subtraction, addition, multiplication, exit) should be presented in the terminal window.
Sample output:
Initial Value: 10
Options:
a. Addition
b. Subtraction
c. Multiplication
User Input: Addition
Input number to add to initial value: _10_
Updated value: 20
Transcribed Image Text:Create a program using class that randomly adds, subtract, and multiply numbers base on the user's input. In your code, reflect the following additional instructions: 1. Initial number should be "10" 2. In your class, create objects ( using functions) specific for [1] subtraction, [2] addition [3] multiplication, [4] printing, and [5] user inputs. 3. Options (e.g. subtraction, addition, multiplication, exit) should be presented in the terminal window. Sample output: Initial Value: 10 Options: a. Addition b. Subtraction c. Multiplication User Input: Addition Input number to add to initial value: _10_ Updated value: 20
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,