Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Newmultiply.Java // NewMultiply.java - This program prints the numbers 0 through 10 along // with these values multiplied by 2 and by 10. // Input:

image text in transcribed

image text in transcribed

image text in transcribed

Newmultiply.Java

// NewMultiply.java - This program prints the numbers 0 through 10 along // with these values multiplied by 2 and by 10. // Input: None. // Output: Prints the numbers 0 through 10 along with their values multiplied by 2 and by 10.

public class NewMultiply { public static void main(String args[]) { String head1 = "Number: "; String head2 = "Multiplied by 2: "; String head3 = "Multiplied by 10: "; int numberCounter; // Numbers 0 through 10. int byTen; // Stores the number multiplied by 10. int byTwo; // Stores the number multiplied by 2. 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 2 and by 10" + " ");

// This is the work done in the detailLoop() method // Write for loop // This is the work done in the endOfJob() method System.exit(0); } // End of main() method.

} // End of NewMultiply class.

NOTE.

Please my teacher needs to see---- Screen Shot of the executed program showing that it worked ( a JPG or such file), and a SOURCE CODE (in a WORD doc or such) and a JAVA file, my source code, PROOF that my program compiles AND PROOF that it PRODUCES the proper OUTPUT. Please have the followingDISPLAYED WITHIN the SOURCE CODE file, near the top (so that he will see it when he print out the file).

My name Hamraj Selemani

class # 705

Lab # 5

PLEASE I NEED SCREEN SHOTS CONTAINING SOURCE CODE, MY NAME(Hamraj selemani), MY CLASS(705) & JAVA FILE.

Loop Lab Using a counter controlled while pro with the In this 51: program should print th the necessary o throu data file contains in lab, you use a completed, the The data files this when d for 10 along their and output statements. Notepad or the text editor of variable declarations values 1. Open the code file med Multiply java using na source LAi your choice. loop that uses the loop variable to take 2 Write a counter-controlled while the loop control variable before the the values 0 through 10 Reme program enters the loop. variable by 2 and by 1 3 In the body of the loop multiply the value of the loop control the body of the op Remember to change the value of the loop control variable in file in a directory of your choice, and then make that directo your working directory. 5. Compile the source code file, Multiply. java. 6 Execute the program. Record the output of this program. sing a Sentinel Value tn

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students explore these related Databases questions