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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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