Question: Java 1. (0.7 points) Create a MathApp class that allows to compute some math applications. Declare and instantiate 3 integers a, b and c. Declare

Java

1. (0.7 points) Create a MathApp class that allows to compute some math applications. Declare and instantiate 3 integers a, b and c. Declare 2 double variables result1 and result2 that returns a solution of the quadratic equation. The result1 is equal to and result2 is equal to Output the calculated results (result1 and results2) as following: The results of your equation are 5 and 6. 2. (0.45 points) Declare an integer average that is equal to the average of results1 and results2, and output the average to the console. 3. (0.45 points) Ask users to enter a name, read the entered values as name using a Scanner objects. 4. (0.6 points) Create a Random object to generate a random number. Use the Random class method to generate a random integer that doesnt exceed the length of name. 5. (0.6 points) Return the character at the relevant position to the random number generated in part4, for example if 2 was generated return the second character as shown in the sample run below when the entered name is Alan. The character in position 2 in my name is: l

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!