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
you're 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
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