Question: code for this please Create a package named Q2. Create a java class named MathBugs which includes the header with your information. Use the Scanner

code for this please code for this please Create a package named Q2. Create a java

Create a package named Q2. Create a java class named MathBugs which includes the header with your information. Use the Scanner class to take a user input. The program should prompt the user to enter a two-digit number between 11 and 99 inclusive without any zero. No data-validation is required. Store this number in a variable called num. You can assume that the user will enter a 2-digit number without any zeros Use arithmetic operators (no mark will be awarded if arithmetic operators are not use) to determine the first and second digit of the number the user entered. Assign them to variables called tensDigit and UnitsDigit. For example, if the user entered 25, then the tensDigit equal to 2 and Units Digit will be 5. Now find the root-mcan-squared (RMS) value of these two digits. The RMS of two numbers x and y is given by the formula: [x + y RMS = 2 Print your final output on the screen using the printf() command and make sure to include up to 2 decimal places only. For example, if user enters 25, the RMS will be 3.81 NOTE: Use appropriate type of variable (int, double, float etc.). In this question you must NOT use Strings and treat everything as numbers/ numerical data. You will be marked on this

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!