Implement the nested loops

Assignment Help JAVA Programming
Reference no: EM13695853

Program Specification: So far, the user has entered 4 integers that are greater than 1 and positive (relatively small numbers, about 2-7 digits each). The user has also already entered a mystery number they want the following series to calculate based upon their current numbers (also relatively logical in size).

You need to prepare nested while / for loops that use the formula, w^a * x^b * y^c * z^d, where wxyz are the four user entered ints, and abcd are any of the contents of the following array:

double[] exponents = new double[]{-5.0,-4.0,-3.0,-2.0,-1.0,-0.33333,-0.25,
0.0,0.25,0.33333,1.0,2.0,3.0,4.0,5.0};

The goal is to use the formula to check all combinations/ possibilities via the nested loops in order to produce a solution number that is as close to the user's mystery number as possible.

You just need to implement the nested loops. I'm not sure how to solve the question. Can anyone help me?

Reference no: EM13695853

Questions Cloud

Program which evaluates a weighted average : Write a program which reads student names, social security numbers, and test scores from an input file named infile.
Tasks for an array of integers : Write array methods that carry out the subsequent tasks for an array of integers by completing the ArrayMethods class below. Test each method.
Gui that takes text input from the user for name : You have a GUI that takes text input from the user for name, favorite color, and favorite food. On the GUI, the user will click "Enter the Information.
You need to prepare a matlab code : You need to prepare a MATLAB code for the following - A randomly generated, [5x5] matrix (A), filled with random [2x2] sub matrices (aa).... for a total of a [10x10] matrix. Also, a multiplication factor
Implement the nested loops : The user has also already entered a mystery number they want the following series to calculate based upon their current numbers (also relatively logical in size).
What angular frequency (in rad/s) would it oscillate : A 90.6-kg climber is scaling the vertical wall of a mountain. His safety rope is made of a material that, when stretched, behaves like a spring with a spring constant of 1.33 x 103 N/m. He accidentally slips and falls freely for 0.997 m before the..
Global transportation and logistics management : Using the topic you have chosen please write a 2000 word APA formatted paper with 5-7 citations of evidence backing your paper. Topic should be related to Global Transportation and Logistics Management.
Hill bases the rate on direct labor hours : How much is the overhead application rate if Hill bases the rate on direct labor hours?
Why does matlab keep telling that you need input arguments : how do you solve this problem and why does MATLAB keep telling that you need more input arguments - Create a function that returns true if the input is a numeric array and false otherwise

Reviews

Write a Review

JAVA Programming Questions & Answers

  An elementary calculation yields the result

An elementary calculation yields the result that theoretically, the probability of turning up 7 when two dice are thrown is 1/6, or .166666. But what if more dice are thrown? If 3 dice are thrown, what is the probability that some 2 of three sum to 7..

  Evaluate an infix expression entered by the user

Spaces between tokens are allowed but not required. The program will repeatedly prompt the user for the value of x, displaying the value of the expression each time. When the user enters the letter q instead of a number, the program terminates.

  Write java program to print price of table-furniture company

Write down the Java program for furniture company. Ask user to select P for Pine, O for Oak or M for Mahogany. Illustrate the price of table produced with chosen wood.

  What are the various types of dns servers and their purpose

question 1 what is the role of dns how is it structured and why it is necessary?question 2 what are the different kinds

  Write an application that displays the factorial

Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive integer lower than it.

  Write a java program to perform matrix multiplication

In this project you need to write a java program called to perform matrix multiplication and

  Write function in javascript to compute person-s gross pay

Write the function using JavaScript syntax to compute a person's gross pay for a week. The function should receive the number of hours worked and the rate of pay per hour.

  Create four classes

Create four classes: Account.java, Checking.java, Savings.java, and AccountArray.java.

  Create and code a program that uses three parallel numeric

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Write a class encapsulating a pc-based game

Write a class encapsulating a PC-based game, which inherits from Game. A PC-bases game has the following additional attributes: the minimum megabytes of RAM needed to play the fame, the number of megabytes needed on the hard drive to install the fame..

  Define get and set functions and two constructors

Create a class called Building. It will have one data member of type string (used for a postal address). Define get and set functions and two constructors.

  Rna hairpins and mirror box drawings

When the program starts up, it should draw a vertical line from the top of the screen to the bot- tom that cleanly divides the window in half. This makes it easier for the user to see the mirror effect.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd