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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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