Initialize the loop control variable before the program

Assignment Help Computer Engineering
Reference no: EM1325686

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: EM1325686

Questions Cloud

Edm or knowledge management : Purpose a summary about how the company is using EDM or knowledge management.
Leaders of functionalism in american psychology : Who are some of the leaders of functionalism in American psychology?
Interpretation of healthcare : While people overwhelmingly report being dissatisfied with the health care system, they also report being satisfied with their personal physician at about the same level. How do you interpret this?
Professional ethics and etiquette : Describe one of the ethical challenges facing organizations today. How does this challenge relate to the ethics gap?
Initialize the loop control variable before the program : In boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I want to change the value of the loop control variable in the body of loop.
Subsiquent transactions took place in current fiscal year : You are provided with the subsiquent transactions that took place during a current fiscal year.
Is department should or should not take lead in edm : IT research - Produce a paper discussing why you believe that the IS department should or should not take the lead in developing EDM.
Communication style and type of leadership of leader : Identify a current or past leader in your workplace. Relate his or her communication style to the type of leadership practiced by him or her.
Media and issues in cross-cultural psychology : What influence has the media had on cross-cultural studies? Provide an example in your response.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the situation in terms of pci compliance standard

On your exit, a store employee asks to give your receipt and checks all the contents of the store bag. Document each of the above described events that are described and explain them in terms of PCI compliance standard.

  Study and analyze the principles of inheritance

Study and analyze the principles of inheritance

  Write program to calculate pay of different types of employe

Write program to calculate pay of different types of employe

  Write a program that accepts data continuously

Write a program that accepts data continuously

  How many address lines are needed to access memory

How many address lines are needed to access memory.

  Largest solution to the quadratic equation

In case, the value of "b squared" 4ac is negative, then code prints out the message "no real solutions" and returns. On the other hand, the function prints out the largest solution to quadratic equation.

  How to find the number of characters in a string

How to find the number of characters in a string

  Designing the bits for four octets of ip addres

A firm allocated the network part 128.171. It chooses an 8-bit subnet part. a) Design the bits for four octets of IP address of first host over the first subnet.

  Creating the method

Assume we wish to form a method for class BinaryTree which decides whether two trees have same structure. The header of the method could be as follows: public boolean isIsomorphic(BinaryTreeInterface otherTree).

  Generate an er model

Generate an ER model

  Laws and regulation in telecommunications field

What gives the federal government the right to regulate the Telecommunications arena, and what is the purpose of laws and regulations. Do you think we need laws and regulation in the telecommunications field at all? Why or why not?

  What is dft of a pure cosine wave cos

What is DFT of a pure cosine wave cos(t) sampled at n equally spaced points on the interval [0, 2π)?

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