1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alexgriva [62]
3 years ago
10

Convert each of the following for loops into an equivalent while loop. (You might need to rename some variables for the code to

compile, since all four parts a-d are in the same scope.)
// a.

System.out.println("a.");
int max = 5;
for (int n = 1; n <= max; n++) {

System.out.println(n);

}

System.out.println();

// b.

System.out.println("b.");

int total = 25;

for (int number = 1; number <= (total / 2); number++) {

total = total - number;

System.out.println(total + " " + number);

}

System.out.println();

// c.

System.out.println("c.");

for (int i = 1; i <= 2; i++) {

for (int j = 1; j <= 3; j++) {

for (int k = 1; k <= 4; k++) {

System.out.print("*");

}

System.out.print("!");

}

System.out.println();

}

System.out.println();

// d.

System.out.println("d.");

int number = 4;

for (int count = 1; count <= number; count++) {

System.out.println(number);

number = number / 2;

}
Computers and Technology
1 answer:
MAVERICK [17]3 years ago
5 0

Answer:

~CaptnCoderYankee

Don't forget to award brainlyest if I got it right!

Download txt
You might be interested in
When using a software budget, you should feel very confident if you choose a solution that looks like it will come in exactly on
ludmilkaskok [199]

Answer:

probably false

Explanation:

because u dont want a budget to b exact u want it completely covered

3 0
3 years ago
In each iteration, selection sort (small) places which element in the correct location?
Jet001 [13]
The answer is <span>smallest not yet placed.  </span><span>In each iteration, selection sort  places smallest not yet placed element in the correct location.  </span>
7 0
3 years ago
Convert to octal. Convert to hexadecimal. Then convert both of your answers todecimal, and verify that they are the same.(a) 111
melomori [17]

The given decimal values are converted to octal and hexadecimal.

Explanation:

a. The converted octal value of 111010110001.0112 decimal number is  1473055755061.00557000643334272616

The converted hexadecimal value of 111010110001.0112 decimal number is  19D8B7DA31.02DE00D1B71758E21965

b. The converted octal value of 10110011101.112 decimal number is  113246503335.07126010142233513615

The converted hexadecimal value of  10110011101.112 decimal number is  

25A9A86DD.1CAC083126E978D4FDF4

a. while converting back from octal to decimal the value is 111010110001.01119999999999999989

b. while converting back from octal to decimal the value is

10110011101.11199999999999999973

Hence both the values changes while we convert from octal to decimal.

3 0
3 years ago
The Work Queue "Customer Onboarding" has a number of Pending Items which may be tagged as
BlackZzzverrR [31]

Answer:

The Correct Answer is C. Configure "Domestic + [Product Code] <> LN*" in the Tag Filter parameter

Explanation:

First, I'll split the answer into bits

Domestic -> This shows that the product belongs to a Domestic Customer

[Product Code] -> The tag [] shows that the Product Code is a generated variable that is unique to different products

<> This means Not Equal to

LN* -> Loan Product

So, [Product Code] <> LN* means Product Code is not Equal to Loan Product

Bring the whole tag together,

It means

Product Codes that belongs to domestic customer which is not Equal to Loan products

3 0
3 years ago
Which of the following is an example of software? Choose the answer.
OlgaM077 [116]

Answer: I believe it’s A operating system

Explanation: The mouse is something you can touch wich is hardware not software, a disk drive is also hardware not software, and so is a monitor.Software is something inside the computer so it’s a operating system.

3 0
3 years ago
Read 2 more answers
Other questions:
  • If the task is to write firewall specifications for the preparation of a(n) ____, the planner would note that the deliverable is
    14·1 answer
  • Which of the following is true? A)Checks and Debit Cards both withdraw money directly from a bank account. B)Checks are the most
    13·2 answers
  • Pls help is very urgent and I will mark u as brainliest plsssss​
    11·2 answers
  • The ____ is composed of tabs, each containing groups of related commands.
    15·1 answer
  • Even though the Pizza Hut corporation understood the need to make use of the Web, the franchise owners were skeptical. From an I
    11·1 answer
  • Differences between laptop andhandheld conputer​
    12·1 answer
  • Which of the following is not a selection tool in Adobe photoshop
    15·2 answers
  • Assume the availability of a function named oneMore. This function receives an integer and returns one more than its parameter.
    14·1 answer
  • Which software programs should students avoid using to create and submit course work? (Choose all that apply.
    15·1 answer
  • a _____ is a telecommunications network that connects users and their computers in a geographical area that spans a campus or a
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!