Which loop structure always uses a semicolon after the test condition?
A. for
B. do-while
C. while

Answers

Answer 1

Answer:

I would have to go with A

Explanation:

It could be B, but I'm going with A because of the fact that right after the condition, there is a semicolon, whereas for the do-while loop, the semicolon comes after the )

Syntax:

// For loop

for (int i = 0; i < 10; i++)

{

// Body

}

// Do-while

int i = 0;

do

{

i++;

// Other code

} while(i < 9); // We do i < 9, because by the time we get to the condition, i = 10, because the increment happens before the condition is checked

Answer 2

Answer:

do-while

Explanation:

syntax:

do {

//the statements;

} while(the condition is true);

In the other two types of loops, you can put a semicolon after the condition, but it signifies the end of the statement (e.g.  for loop, it will mean end of for statement and it's body will have no meaning)


Related Questions

what's an example of radical technological change

Answers

Some radical technology changes are:

3D printing - from the Thing-O-Matic less than 10 years ago to now - people are 3D printing houses (with a concrete admixture), cakes and food items, steel objects with additive welding nozzles… SpaceX even 3D prints some of their rocket engine parts!

Please hit the thanks button :)

Answer:

An example of radical technological change is a metromile which is a US car insurance company.

I hope it helps you.

what is the maximum length of a text field can be?

Answers

Answer:

4000 characters

Explanation:

I think the max is 4000 characters

Explanation:

no se perdon pero creo es 4000 caracteres

Why is it important not to leave your personal information on a public computer?
A. Other people need a clean computer to use.
B. Someone can steal the information and hurt you.
C. It makes it hard for the next person to log in.
D. It's rude and someone else has to clean up after you

Answers

Answer:

B. Someone can steal the information and hurt you.

Explanation:

People can hack into your accounts using your informations and spread hurtful things that can make people hurt. The people will think that you posted this (even if you didn't) and blame you.

Write a program that first reads a list of 5 integers from input. Then, read another value from the input, and output all integers less than or equal to that last value.

Ex: If the input is:

50 60 140 200 75 100
the output is:

50 60 75
For coding simplicity, follow every output value by a space, including the last one. Then, output a newline.

Such functionality is common on sites like Amazon, where a user can filter results. coral language, please

Answers

Answer:

take user input element of list and print element of list whose value  are less than equal to last value of list

Image 1: Input

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

      print("The integers that are less than or equal to", upper_threshold, "are:")

      for value in user_values:

             if value < upper_threshold:

                    print(value)

def get_user_values():

      n = int(input("Enter the number of integers in your list: ");

      1st = []

      print("Enter the", n, "integers:");

      for i in range(n):

             1st.append(int(input)

      return ist

if _name__ == '_main_':

userValues = get_user_values();

upperThreshold = int(userValues[-11), output ints less than or equal to threshold(userValues, upperThreshold)

Image 1: Output

Enter the number of integers in your list: 3 Enter the 3 integers:

10

50

20

The integers that are less than or equal to 20 are:

10

Using the knowledge in python it is possible to write a code that uses the given values ​​to write its divisors.

Writing code in python:

integer i

integer threshold

integer array(5) data

for i = 0; i < data.size; i = i + 1

  data[50, 60, 140, 200, 75, 100] = Get next input

threshold = Get next input

for i = 0; i < data.size; i = i + 1

  if data[50, 60, 140, 200, 75, 100]

 

See more about python at brainly.com/question/18502436

#SPJ1

Watch any film of the silent era. Choose a short film from any genre that is less than 30 minutes long. Write a review of your experience of watching this film. Make comparisons with a modern film of the same genre that you have recently watched.

Answers

 A review of your experience of watching this film. Make comparisons with a modern film of the same genre that you have recently watched The Consistency of the Silent Era Technique in The Artist.

What have been a number of the principal silent movie genres?

Many early silent movies have been both dramas, epics, romances, or comedies (frequently slapstick). One-reelers (10-12 minutes) quickly gave manner to four-reel feature-period movies.

From the factor of visible method seems there are a few which can be ordinary of the silent film technology this is appearing players, kind of shot, modifying transitions, intertitles and sound strategies together with using track at some stage in the movie.

Read more about the comparisons :

https://brainly.com/question/25261401

#SPJ1

a transmitter is operating at 150 MHz with a power of 3 W into a one-quarter wavelength vertical antenna. The receiver, which is 32.2 km away, has an antenna with a gain of 8 dB. What is the received power?

Answers

The received power will be 1.243 nW

We're given:

frequency [tex]f[/tex] = 150MHz

distance of the receiver [tex]d[/tex] = 32.2 km=32200m

Power of transmitter [tex]P_{t}[/tex] = 3W

Antenna gain = 8dB

To find :

Power received [tex]P_{r}[/tex]

[tex]P_{r}= \frac{P_{t} *G_{t}*G_{r}* \lambda^2 }{16*\pi^2*d^2}[/tex]

where [tex]G_{t[/tex] is transmit gain and [tex]G_{r[/tex] is receive gain as refrenced to isotropic source

⇒wavelength [tex]\lambda = \frac{c}{f}[/tex] where c is the speed of the light

⇒  [tex]\lambda = \frac{3*10^8}{150*10^6} =2m[/tex]

[tex]G_{t}= 1*1.64[/tex] ( value of [tex]dipole[/tex] = 1.64)

Now,

Antenna gain[tex]=8dB[/tex] ( in decibals)

⇒[tex]10log(x)=8[/tex]

⇒[tex]x=10^0^.^8=6.3095[/tex]

⇒ considering isotropic receiver

⇒[tex]G_{r}=6.3095*1.64=10.3477[/tex] ([tex]dipole[/tex] =1.64)

Now , using the formula

[tex]P_{r}= \frac{3 *1.64*10.3477 *2^2 }{16*\pi^2*32200^2}=1.2437*10^-^9[/tex]

Hence The received power will be 1.243 nW

Leaen more about communication devices here:

https://brainly.com/question/14530107

#SPJ10

Give me an answer. How to hack somebody click 'disabled​​​​​​​' to my office wifi? I can't use it no longer.​​​​

Answers

How to hack somone is illegal but for study purposes there is yt tutorials that I recommend You watch because hacking is not simple and it requires a pc or laptop There is multiple ways to hack somone as well A commAn way for hacking is to self fake links

I have been stuck on this lab this is my program.

Given four values representing counts of quarters, dimes, nickels and pennies, output the total amount as dollars and cents.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print(f'Amount: ${dollars:.2f}')

My program:
quarters = int(input("Quarters: "))

dimes = int(input("Dimes: "))

nickels= int(input("Nickels: "))

pennies= int(input("Pennies: "))

dollars = (quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01)

print("Amount: ${:.2f}".format(dollars))


not sure why my answer is for wrong.

my output is: (with input)
1

2

3

4

Quarters: Dimes: Nickels: Pennies: Amount: $1.41

expected out put is : Amount: $1.41

What about my code adds the extra part to my answer?

Answers

They are using the knowledge of computational language in python to write the values ​​of the coins and the total we find that

Writing code in python      

quarters = int(input())

dimes = int(input())

nickels = int(input())

pennies = int(input())

cents = (quarters*25 + dimes*10 + nickels*5 + pennies)

#convert cents to dollars

# 1 dollar = 100 cents

# n cents = n/100 dollars

dollars = cents / 100.00

#Print the amount in dollars upto two decimal places

print("Amount: $"+"{:.2f}".format(dollars))

See more about python at brainly.com/question/18502436

#SPJ1

This program will output a right triangle based on user specified height triangleHeight and symbol triangleChar. It is strongly suggested to use the for loop for this solution.

(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangleChar character.


(2) Modify the program to use a nested loop to output a right triangle of height triangleHeight. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangleHeight. Output a space after each user-specified character, including after the line's last user-specified character.


Example output for triangleChar = % and triangleHeight = 5:


Enter a character:

%

Enter triangle height:

5


%

% %

% % %

% % % %

% % % % %


#include

< stdio.h >


int main(void) {

char triangleChar;

int triangleHeight;


printf("Enter a character:\n");

scanf("%c", &triangleChar);


printf("Enter triangle height:\n");

scanf("%d", &triangleHeight);

printf("\n");


printf("* \n");

printf("* * \n");

printf("* * * \n");


return 0;

}

Answers

The program illustrates the use of loops;

Loops are program statements that are used to perform repetition

The complete program

The modified program in C, is as follows:

#include<stdio.h>

int main(void) {

   char triangleChar; int triangleHeight;

   printf("Enter a character: ");    scanf("%c", &triangleChar);

   printf("Enter triangle height: ");    scanf("%d", &triangleHeight);

   for (int i = 0; i<triangleHeight; i++){

       printf("\n");

       for(int j = 0;j<=i;j++){

           printf("%c",triangleChar);

       }

   }

   return 0;

}

Read more about loops at:https://brainly.com/question/24833629

#SPJ1

How many times is the second for loop going to loop in this block of code? Write your answer in numeric form in the box provided.
for steps in range(5):
turtle.forward(100)
turtle.right(90)
for moresteps in rage(4):
turtle.forward(50)
turtle.right(90)​

Answers

Explanation:

The second for loop does 1 of 4 iterations for every 1 of 5 iterations of the parent loop. meaning it is 4 x 5 which is 20.

Directory services store information in a heirarchical structure. Which statements about Organizational Units (OUs) of a directory service hierarchy are true? Check all that apply.

Answers

Answer:

accounting, authorization, centralized authentication

Can someone please tell me how to do this step by step?

ASAP

Answers

The steps that are required to customize elements of a Word document and its formatting to be consistent with other magazine articles are listed below.

How to customize elements and format a document?

In Microsoft Word 2019, the steps that are required to customize elements of a Word document and its formatting to be consistent with other magazine articles include the following:

You should apply a style set.You should change the color of an underline.You should use the Thesaurus.You should change the character spacing, change the font color and update a style.You should apply a character style.You should change the font case.You should insert a Quick Part.You should insert a table of contents.You should change the table of content (TOC) level.You should apply a style.You should update the table of contents.

In conclusion, the end user should update the table of contents as the last step, so as to reflect the change to his or her Word document.

Read more on Microsoft Word here: https://brainly.com/question/25813601

#SPJ1

Complete Question:

As the owner of On Board, a small business that provides orientation services to international students, you are writing an article about starting a business that will be published in an online magazine for recent college graduates. You need to customize elements of the document and its formatting to be consistent with other magazine articles. What are the steps?

How can MS Word aid healthcare professionals with virtual communication?

Answers

MS Word aid healthcare professionals with virtual communication by the Handled properly, phrase processing promises massive benefits: stepped forward collections, improved coins flow, decreased paperwork, and improved donations to healthcare foundations.

What do nurses use Microsoft Word for?

Personnel control data (demographic and expert information of nursing staff), Resource control/evaluation monitoring for reviews on budgeting DRGs, time beyond regulation usage, affected person care hours, deliver gadget projections, and staffing hours, and.

The Microsoft Office System, coupled with accessories supplied via way of means of partners, promises a portal answer that may offer clinicians and researchers immediate get admission to to the data they need, which includes the present-day scientific magazine articles, drug reference data and affected person handouts.

Read more about the word:

https://brainly.com/question/190029

#SPJ1

Review 03 diagnostic and troubleshooting skills including data gathering methods and techniques.

Answers

The kinds and ways to improve your diagnostic and troubleshooting skills are:

Be Relax and never panic when you encounter it.Know everything about your computer. Look for solutions and clues and state them down. Find out the repeatability.

What is diagnostic and troubleshooting?

Diagnosing is known to be the act of finding out the root cause of any issue through an act of elimination but troubleshooting is known to be the act of fixing of the problem after diagnosis is said to have been carried out.

Therefore, The kinds and ways to improve your diagnostic and troubleshooting skills are:

Be Relax and never panic when you encounter it.Know everything about your computer. Look for solutions and clues and state them down. Find out the repeatability.

Learn more about troubleshooting skills from

https://brainly.com/question/14983884

#SPJ1

Enter a formula in cell E4 to calculate how long each item has been on sale. This is calculated by subtracting the launch date in cell D4 from the Data Updated date in cell C20. To show the time in years, divide that result by 365. Use an absolute reference to the date in cell C20. Copy the formula from cell E4 to cells E5:E14.

Answers

The formula is given below:

(C20-E4)/365

where 365 is the no of the days.

In a spreadsheet application, an absolute cell reference is a cell reference that doesn't change even if the spreadsheet's size or shape changes, or if the reference is copied or relocated to a different cell or page. When making references to constant values in a spreadsheet, absolute cell references are crucial.

Learn more about cells here https://brainly.com/question/25879801

#SPJ10

Demonstrate an understanding of the use of preventive procedures

Answers

Thre are 3 types of prevention Primary prevention, secondary invention, and tertiary invention.

What do you mean by prevention?

The process of stopping anything from happening by being prepared and getting rid of it quickly. prophylaxis. the control of illness. save.

Three different kinds of preventative initiatives:

Primary prevention entails taking action before negative health impacts arise.Screening to find diseases as soon as possible is secondary prevention.Managing disease after diagnosis in order to slow down or stop it is known as tertiary prevention.

Learn more about Preventive procedures:

https://brainly.com/question/7183215

#SPJ1

write an algorithm to find the area of a circle of radius r

Answers

Answer:

e=mc^2

Explanation:

Algorithm to find odd integers between 1 and49 ​

Answers

Answer:

1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49.

Choose the expression that belongs in the blank in order to ask the user the question shown.

>>> answer = input(_____)
What is your name? Juan

Answers

Answer:

"Juan"

Explanation:

If this is script, than that should be the correct argument.

What would you consider before buying a printer​

Answers

Answer:

Printing Quality, Price, If it van vonnect to my laptop or nay devices.

Answer:

to make sure it comes with ink

Explanation:

if not buy some when u purchase it

After Daniel performed poorly on a test, his teacher advised him to do some self-reflection to figure out how he could get a better score on the next test.

Which actions should Daniel take? Check all that apply.

analyze the content that he knows well
think about whether he should study differently
forget about the test behind him and concentrate on the next one
ask the teacher for some extra help outside of class
go out with his friends to put the poor grade behind him
study the questions he missed and think about why he missed them

Answers

Daniel gives more and more time to self-reflection and improves the mistakes he was doing in the last exam.

What is self-refelection?

Reflecting on oneself is similar to gazing in a mirror and reporting what you see. It is a method of evaluating your work habits, study style, and self. To think about something is the definition of reflection, given simply.

When Daniel didn't do well on an exam, his teacher suggested that he think about his performance to see how he may perform better on the upcoming test.

Examine the material he is familiar with. Consider whether he needs to change his study strategy. Request extra assistance from the instructor outside of class.

Examine the questions he didn't get right and consider why. Self-reflection is the process of assessing one's performance to identify any problem areas that require improvement.

Hence, daniel gives more and more time to self-reflection and improves the mistakes he was doing in the last exam.

To learn more about self-reflection refer;

https://brainly.com/question/14754364

#SPJ1

Answer:

Explanation:

a analyze the content that he knows well

b think about whether he should study differently

d ask the teacher for some extra help outside of class

f study the questions he missed and think about why he missed them

What are fields in a table? What are rows in a table? This is talking about Microsoft Word. What are fields and rows and what are they used for?

NEED ASAP

Answers

A  fields in a table is known to be a table that contains records (found in rows) and fields (that are found in columns). Fields have a lot of types of data, e.g. text, numbers, and others.

What are the rows in a table?

A table is known to be a kind of two-dimensional means that is known to have columns and rows.

Note that the columns are said to be fields and the rows are are said to be records.  A record fields  is said to be made up of a lot of data, like information about a specific employee or  product and others

Learn more about fields from

https://brainly.com/question/14789161

#SPJ1

Beth is a software developer who is focused on identifying early-stage interface problems. Beth addresses the dimension of usability known as __________.

Answers

The dimension of usability that is being addressed by Beth is known as efficiency.

The dimension of usability.

In Usability Engineering, there are five (5) qualities of a usable product suggested by Jakob Nielsen and these include the following:

LearnabilityMemorabilityEfficiencyErrors (low rate, easy to recover)Satisfaction

In this scenario, we can infer and logically deduce that the dimension of usability that is being addressed by Beth is known as efficiency because she's focused on identifying early-stage interface problems in software.

Read more on software here: brainly.com/question/26324021

#SPJ1

Discuss the relationship amongst the following basic file elements: • Field. • Record. • File. • Database. • Directory.​

Answers

Answer:

describe two events from the life of the prophet that illustrate the way he treated non muslims3+15-75+375.

Explanation:

53+15-75+3756,1803+15-75+375describe two events from the life of the prophet that illustrate the way he treated non muslims

True or false, cases must use curly braces like other test condition statements
A. true
B. false

Answers

Answer:

False

Explanation:

You can use curly braces to scope everything that's inside of the case body, but they are not necessary.

There are cases where you will need explicit bodies for cases:

If you have two different cases that both contain a variable called 'x', you will need to scope one or both of the cases.

What is scoping?

Scoping in a language defines where variables can be accessed, or referenced.

int i = 0;

// First scope

{

int x = i + 10;

}

// Second scope

{

int j = x + 2;

}

Console.WriteLine(j);

There are a few errors in this code.

In the second scope, we try to use the variable 'x' which was defined in the first scope, but we can't find that variable because it is defined in a scope that cannot be reached by the second scope. The same goes with the Console.WriteLine(j); line, we try to access a variable that is not defined in the current scope, and is instead defined in a nested scope.

In most languages, scoping is essentially a stack, where the lower nested scopes can access variables defined in the previous scope, but not the other way around.

So now you know a little bit about scopes; when to use them in case bodies, and that you do not have to use a body for a case if it's not necessary.

When does if(x!=y) execute?
A. when x doesn't equal y
B. when x does equal y
C. when x is greater than y

Answers

Answer:

A

Explanation:

Briefly explain purpose of input device​

Answers

Answer:

Mouse, Keyboard, Headphones, Mouse dongle.

Explanation:

Input Device Definition: A piece of equipment/hardware which helps us enter data into a computer is called an input device. For example keyboard, mouse, etc.

Answer:

Input devices are those devices connected to the computer which are used to enter the data. Input can be in the form of text, graphics and sound. There are different types of input devices for different types of inputs.

Explanation:Today, input devices are important because they are what allows you to interact with and add new information to a computer. For example, if a computer had no input devices, it could run by itself but there would be no way to change its settings, fix errors, or other various user interactions. Also, if you wanted to add new information to the computer (e.g., text, command, document, picture, etc.), you wouldn't be able to do so without an input device.


What are the functions of information technology?

Answers

There are six basic functions of IT.

1. Capture: Compiling detailed records of activities.

2. Processing: Converting, analyzing, computing and synthesizing all forms of data and information.

3. Generation: Organizing information into a useful form.

4. Storage: Retaining information for further use.

5. Retrieval: Locating and copying stored data or information for further processing or for transmission to another user.

6. Transmission: Distributing information over a communication network.

1.Microsoft Word is a/an ........​

Answers

Answer:

company I believe

Explanation:

I believe

Answer:

It is a word processing software

Explanation:

Hope this helps

What are key objectives of DevOps at Accenture?

Answers

The key objectives of DevOps at Accenture is simply to deliver services faster, with higher quality and with security built in.

What are DevOps?

DevOps can be defined as a set of tools, processes, practices, and a cultural philosophy that are combined so as to help in automating and integrating the processes that exist between software development and information technology (IT) teams.

This ultimately implies that, the key objectives of DevOps is focused on the ability of Accenture to deliver software applications and services at high velocity, with higher quality and with security built in.

Read more on DevOps here: https://brainly.com/question/24306632

#SPJ1

Other Questions
Gulliver's travel questions pls answer:part 31. How does Gulliver get to Laputa?2. How does Laputa differ from a normal country?3. How do the people differ from those in most countries?4. How does Gulliver leave the Floating Island?5. How did the Academy of Lagado originate?6. Why does Gulliver visit Glubbdubdrib?7. What kind of place is it?8. Who are the Governors servants in Glubbdubdrib?9. Who are the Struldbruggs?10. What misconception does Gulliver have about them? Which statements describe aspects of the relationship between sleepdeprivation and drug abuse? Select the two correct answers.A. Sleep deprivation can increase a teen's chance of drug abuse.B. Sleep deprivation and drug abuse are not related.C. Drug abuse usually reduces sleep problems.D. Drug abuse can lead to insomnia and further drug abuse.? 10PTS+BRAINLIEST: does oxidation break down some rocks, or only some? What is the value of the element in row 1, column 1 of matrix x? [4 y 0 1] x= [y 4] I have to write an essay for Animal Farm.Does anyone know any good quotes (inside the book) that show Napoleons jealousy. Describe three ways to determine the measure of segment YZ.Triangle X Y Z is shown. Angle X Y Z is a right angle and angle Z X Y is 30 degrees. The length of hypotenuse X Z is 50 meters. ____ lanes give drivers the time and space to reduce their speed to what is posted and/or prepare for the sharpness of the curve Find the base of an isosceles triangle whose area is 60 cm and the length of one of its equal sides is 13 cm. In "Do Not Go Gentle into That Good Night, the speaker emphasizes that older men should fight fiercely against death. The setting is the time when the father of the speaker was approaching his death.The conflict of the poem surrounds the end of life and the resistance to death. In the poem, Thomas began with the second-person point of view.In "The Charge of the Light Brigade", is a poem about a failed military action that involved British light calvary. The setting was during the Crimean war. The theme is about bravery, duty, and sacrifice.lolllllllllllllllllll Which of the following religious practices was most widely used in both ancient river civilizations and ancient Native American civilizations? Monotheism Elaborate ceremonies Theocratic rulers Pyramid building what type of energy does a pv cell create ? What is one reason Jesus was arrested?He challenged the authority of the priests.He attempted to create a Jewish government.He gave his apostles the power to forgive sins.He established a number of Christian churches. The area to the right of z=-0.78 under normal curve is Which of the following is true of specialty stores? Group of answer choices They carry a deep assortment of merchandise within a single category of interest. They offer consumers very limited service and carry a vast assortment of well-known, nationally branded goods such as toys, housewares, and clothing. They carry a wide range of products and specialty goods, including apparel, cosmetics, housewares, electronics, and sometimes furniture. They price products lower than specialty discount stores. An aircraft on a reconnaissance mission takes off from its home base and flies 550 miles at a bearing of s 46 e to a location in the sea. it then flies 483 miles from the sea at a bearing of s 55 w to another location. finally, the aircraft flies straight back from the second location to its base. what is the total distance it flies, rounded to the nearest mile? 2 vertical lines. top, point a (airport), point c below are marked on left line. point b marked on middle of right line. abc makes triangle. ab as c equals 5.5. bc as a equals 4.83. interior angle a 46 degrees. exterior angle b 55 degrees. a. 550 miles b. 1,033 miles c. 1,583 miles d. 1,692 miles e. 2,210 miles find the value of c so that (x+1) is a factor of the polynomial p(x). p(x)=5x^4+7x^3-2x^2-3x+c when the client has increased difficulty breathing when lying flat, the nurse records that the client is demonstrating: e:f=3:7f:g=2:3Work out e:g in simplest form Discuss the ways in which Aristotle's features of persuasive rhetoric (ethos, logos,and pathos) were exemplified in the Obama speech. In your discussion, be sure toexplain Aristotle's features and to give specific examples of each from the speech. can someone do this i sent a ss with it aswell