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

  What is home wireless network and security

What is home wireless network and security Methodology- Review topics covered in lecture hours, from textbook, reference books plus online research, to behaviour a comprehensive study about wireless network security implementation at home.

  What will be the list assumptions for the scope of project

What will be the list assumptions for the scope of project? Give detailed and measurable non functional requirements.

  Code to declare the four pointer variables

In C++: A pointer variable may consist of a pointer to a valid object, a pointer to a deleted object, NULL, or the random value. Write down the code which generates and sets four pointer variables a, b, c, and d to display each of these possibilit..

  How to draw a hierarchy chart

How to draw a hierarchy chart

  Sense making in health care organizations

Evaluate the most suitable way that the “sense making” may be applied to the health care organizations. Give the specific examples in order to support your response.

  Program on different statements

Program on different statements

  Recognize how to locate fsmo roles

Recognize how to locate FSMO roles?

  Valuing the health care

Find the best way in order to leverage value from the health IM / IT investments in today’s health care environment. Give some specific examples in order to support your response.

  Design a class street that includes a number

Design a class Street that includes a number

  Algorithm to read an arbitrary number

Develop an algorithm to read an arbitrary number of the data records, each consisting of a name, age, and code. A Code of 1 will indicate female, a code of 2 will indicate male.

  Program of five to ten lines in assembly language

Program of five to ten lines in assembly language

  D flip-flops

Using three D flip-flops,a multiplexer,decoders and gates, construct a 3-bit Gray code counter that has two inputs: reset, which sets the counter to 000, and inc, which makes the counter go to the next value in the sequence.

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