Question: Java write a class called numbermanipulator ask for two numbers between 1 and 20 and make sure they fall in this range the write a

Java write a class called numbermanipulator

ask for two numbers between 1 and 20 and make sure they fall in this range

the write a function in numbermanipulator have it take the two numbers input takes the two number and returns there sum then divide it by 5 and then divide it by the square root of there sum then output the result

below the result

have 4 answers similar to multiple choice

A) They were subtracted

b) they were multiplied

c)they were divided

d) they were added then divide by 5 and then divide it by the square root of there sum

ask them for which is correct and give them 2 tries reoutput the options using the function after each wrong answer

if they pick wrong more then twice have it display

your wrong

if they get it right have it pick one of the following randomly

Perfect answer(should only output on the first guess)

thats correct

you did it

use an array list for the last part

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!