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

  Program on strings s1 and s2

Program on strings s1 and s2.

  Time and space complexity

Express the following five loosely explained problems carefully in the form as used in the "Computers and Intractability".

  What is the data rate

What is the data rate

  Constraint programming

It is about the constraint programming. We have party organizations for being social. Each participant has their own preference list for parties, every party organizers has their own preference list for providing the parties.

  Writing into file utilizing fileinputstream

Write down an application utilizing the FileInputStream which opens a file which consists of the name of user's favourite book and then show it to the user.

  Knowledge management systems

Explain why the knowledge management systems could be so significant to the modern organization where organization could initiate such systems and for this initiative.

  Demonstrate that the expected search time for hashing

Demonstrate that the expected search time for hashing

  Discuss how the topology can be used

Discuss how the topology can be used

  What is csma/cd

What do you feel is the future for Token Ring? What are its advantages or disadvantages.

  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?

  Creating flowchart and pseudocode utilizing control breaks

Generate a Flowchart and Pseudocode utilizing the Control Breaks for Xhemrock is a brake pad manufacturing company. This company utilizing the raw materials like carbon powder, ash, iron, and resin.

  Write a recursive implementation of euclids algorithm

Write a recursive implementation of Euclids algorithm

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