Write a counter-controlled loop to initialize values

Assignment Help Basic Computer Science
Reference no: EM13952930

Need help trying to figure out counter controlled while loop. I need to write a counter-controlled while loop that uses the loop control variable to take on the values 0 and 10. How do I initialize the loop control variable before the program enters the loop?

In the boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I need to change the value of the loop control variable in the body of the loop.

String head1 = "Number: ";
String head2 = "Multiplied by 10: ";
String head3 = "Multiplied by 100: ";
int numberCounter; // Numbers 0 through 10.
int byTen; // Stores the number multiplied by 10.
int byHundred; // Stores the number multiplied by 100.
final int NUM_LOOPS = 10; // Constant used to control loop.

// This is the work done in the housekeeping() method
System.out.println("0 through 10 multiplied by 10 and by 100" + "n");

// This is the work done in the detailLoop() method
// Initialize loop control variable.
// Write your counter controlled while loop here
// Multiply by 10
// Multiply by 100

Reference no: EM13952930

Questions Cloud

What is a national water footprint : Water use is often measured in units of volumes consumed per time, what is another way to measure water use that is mentioned in the paper? Name an example of an indicator for this alternative measure.
Find probability area bounded by standard deviation units : Assume that we have normally distributed data. From the standard normal table, find the probability area bounded by ±1 standard deviation units about a population mean and by ±1 standard errors about the mean for any distribution of sample means o..
Current profit margins-current cost of benefits : Note that not all of the specifics about the possible acquisition have been given, such as the cost of the acquisition, the number of hotels and employees, the current profit margins, the current cost of benefits as a percentage of total labor cos..
Importance of physician-patient communication : The Importance of Physician-Patient Communication-Explain how miscommunication in physician-patient interaction might impact recovery of a patient
Write a counter-controlled loop to initialize values : In the boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I need to change the value of the loop control variable in the body of the loop.
What is the probability that a sample mean would fall below : Assume the data are normally distributed and normalize the sample mean. What is the probability that a sample mean would fall below 24 days based on this normalized statistic t where the actual standard deviation is unknown and the sample estimate..
Using a loop to perform operations multiple times : What I need help with is to get the dice to roll 100 times instead of just one. So the read file results will show the results of 100 rolls of the dice
When are the values for t and z almost identical : Assume that a distribution of data is normally distributed. For a sample size n = 7, by using a sample mean, which distribution would you employ (t or Z) to make an inference about a population?
How would prison sentencing or the death penalty be affected : If people accepted that all evil is ignorance, what implications would that have on the justice system? How would prison sentencing or the death penalty be affected

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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