Consider the following code segment, which is intended to store the sum of all multiples of 10 between 10 and 100, inclusive (10 20 ... 100), in the variable total.
int x = 100;int total = 0;while( /* missing code */ ){total = total + x;x = x - 10;}Which of the following can be used as a replacement for /* missing code */ so that the code segment works as intended?A. x < 100.B. x <= 100.C. x > 10.D. x >= 10.E. x != 10.

Answers

Answer 1

The code segment illustrates the use of while loops

Loops are program statements that are used for repetitive and iterative operations

The missing statement in the code is x>= 0

The code is meant to add numbers from 10 to 100 (inclusive) with an increment of 10.

At the beginning of the program, variable x is initialized to 100, and it is reduced by 10 in the iteration until it gets to 10

So, the condition must be set to stop when the value of x is 10 i.e. x >= 0

i.e. the iteration must be repeated while x is greater than or equal to 10

Hence, the missing statement is (d) x >= 0

Read more about loops at:  

brainly.com/question/16397886


Related Questions

Tamara is writing a program to organize students in a class and needs to use operators to organize student grades, then compare the results of that to each other. What kinds of operators does Tamara need to use for each step?
Tamara needs to use
operators to organize the students' grades, then
operators to compare the results.

Answers

Answer:   you said "Tamara needs to use

operators to organize the students' grades, then

operators to compare the results."

i think your right

Explanation:

sounds right.

Angular unit test how to use jest with karma.

Answers

Answer:Explanation:An environment to run angular tests is being created using all the imports at the beginning of the file. TestBed is a powerful unit testing tool provided by angular, and it is initialized in this file. Finally, karma loads all the test files of the application matching their names against a regular expression.

Fill in the blank: A data analyst is creating the title slide in a presentation. The data they are sharing is likely to change over time, so they include the _____ on the title slide. This adds important context.

Answers

The title of a presentation often gives a meaning and closure to what the presentation is all about. The data they are sharing is likely to change over time, so they include the date of the presentation on the title slide.

A title slide in PowerPoint often has a lot of different meaning. The date on a title slide is usually placed in the Header and Footer box, you have to click on the Slide tab, select the Date and time check box.

The Layout option to title a slide is simply the following steps below

The first you click Home and select Layout. Select Title Slide for a standalone title page or select Title and Content for a slide that contains a title and a full slide text box. There are a lot of other layout options include titles, too. Pick the one that's best suited for your presentation.

Learn more from

https://brainly.com/question/11068366

What devices do not need device drivers to be manually installed, and start to function as soon as they are connected to a computer?.

Answers

Plug-and-play devices are electronic devices that do not require any device driver to be manually installed on the host device (computer) and as such they start functioning immediately they are connected to the host device (computer).

Plug-and-play (PnP) can be defined as a technology that is designed and developed to allow an operating system (OS) of a computer to automatically detect and configure a peripheral (input and output device) as soon as they are connected to the computer.

On a related note, a plug-and-play device is an electronic device that do not require any device driver to be manually installed on the host device (computer) and as such it start to function immediately it is connected to the host device (computer).

In Computers and Technology, some examples of a plug-and-play device include the following:

External hard-driveComputer monitorKeyboardWeb-camMouse

Find more information: https://brainly.com/question/17402566

how to make your phone flash when you get a notification

Answers

Answer:

If your talking about it turning on then go to notifications in the settings and turn on badges. If your talking about the flashlight on ur phone not possible.

Explanation:

What type of programing code do game developers use.

Answers

Explanation:

object oriented programming languages like C#, C++, Java are used by developers to develop a game.

what is an operating system that controls some aspects of the computer?

(not very well phrased, ik, it's coming from a crossword for one of my classes assigned as a snow day thing. looking for a seven letter word)

Answers

central processing unit (CPU), computer memory, file storage, input/output (I/O) devices, and network connections.

Answer: Windows

Explanation:

examples of operating systems include

windows

mac

linux

windows has seven letters

The Internet provides access to Internet information through documents including text, graphics, audio, and video files that use a special formatting language called HTML.

Answers

Answer:world wide wev

Explanation:

AI is not embraced everywhere in every industry because _______.

Answers

Answer:

See below:

Explanation:

AI is not embraced in every industry because of the type of industry and what it requires. In some situations, a human is needed since an AI cannot determine what to do and can sometimes even cause death.

AI isn't embraced everywhere because for some things we need a person, lets say for example, we need an AI to respond to 911 calls, that simply won't work due to the many situations and training the bot too will be a nightmare. For example, if a caller says a word that normal humans can understand, or a "code word" that every human knows but they haven't bothered to tell the bot, that will be the end of the line for them.

There are mutliple reasons to not use AI depending on the situation whether its life and death or just plain impractical.

What is the process of proving that users are who they say they are, and confirming that they are authorized to access accounts

Answers

Answer:

User authentication

Explanation:

Four types of firewalls are: Packet filtering, stateful inspection, circuit level proxy and _________ .

Answers

Answer:

oxigen

Explanation:

the disk you inserted was not readable by this computer

Answers

Answer:

It may not be compatible with your type of your computer.

Explanation:

Plz give brainliest :)

You receive a worksheet in which the rows are numbered 1, 2, 3, 5,6. This means that row 4 is _____.

Answers

People often hide cells of worksheet due to different reasons. This means that row 4 is hidden.

A worksheet is commonly know as a sheet of paper/computer sheet with which work is done or performed.

 

An individual can hide any worksheet so that it can be removed from their view. The data in hidden worksheets is not visible to the person, but it can still be referenced from other worksheets and workbooks. One can unhide hidden worksheets if need be.

Learn more from

https://brainly.com/question/17106092

In high-tech fields, industry standards rarely change.
True
False

Answers

Answer: false

Explanation:

________________ is access to the internet through your tv connection.

Answers

Answer:

Cable Modem

Explanation:

The area of the spreadsheet highlighted in red is the _____.

cell C1

formula bar

row C

column C

Answers

A spreadsheet is a software application which is used to display numerical data in a tabular form. It has further functions which includes organizing, displaying, calculating data, etc where the data can be viewed at a glance and retrieved from memory.

There are different types of spreadsheet which includes:

G00gle SheetMicrosoft ExcelLibreOfficeSmartsheet, etc.

Data can be arranged in rows and columns.

Please note that your question is incomplete so I gave you a general overview to help you get a better understanding of the concept.

Read more here:

https://brainly.com/question/22101774

Answer:

column C

Explanation:

i got it right

A file ____ shows the location of a file or folder

Answers

Answer:

Path

Explanation:

correct answer: Path

(Hope this helps can I pls have brainlist (crown)☺️)

A process that takes plaintext of any length and transforms it into a short code is called Group of answer choices encryption hashing symmetric encryption asymmetric encryption

Answers

Answer:

hashing

Explanation:

A hash can be used in compression which reduces the length of a plaintext sequence

Kyra is protesting corruption in the mayoral office. She is afraid that the mayor has access to her emails where she discusses his wrongdoings. Which of the following laws protects her electronic communication from being accessed by the government or law enforcement agencies?

Answers

Answer:i don’t know sorry

Explanation:

Set the Append Only property to _____ to allow users to add data to a Long Text field but not to change or remove existing data.

Answers

A computer data storage is made of many features. Set the Append Only property to YES to allow users to add data to a Long Text field but not to change or remove existing data.

Append-only is known to be a characteristic or component of computer data storage. It is where new data can be appended to the storage, but where existing data is said to be immutable.

A field's data type is very essential property as it shows what kind of data the field can store.

Learn more from

https://brainly.com/question/24795103

You have installed Windows Server 2016 on a new server and want to centralize user logons and security policies. What type of software should you install and configure on this server

Answers

Answer:

Directory Service

Explanation:

The type of software that you should need to install and configure on this server is known as the directory services such as Microsoft office.

What is Software?

Software may be defined as a set of instructions, data, or programs which are considerably utilized in order to operate computers and execute specific tasks with respect to the instructions. The function of the software is absolutely the opposite of the hardware.

According to the context of this question, each and every directory service have some special class of software that enables the window to install and configure Microsoft's proprietary. These proprietaries mutually support the window and execute the function with respect to the user's instructions.

Therefore, the directory service is a type of software that you should need to install and configure on this server.

To learn more about Software, refer to the link:

https://brainly.com/question/28224061

#SPJ2

Other Questions
When Rotter began teaching at Ohio State, _____ was the director of the clinical psychology program. How do the babys respiration and circulation change when the baby is born? Find the zeros of the function.h(x) = x2 + 19x + 84 Tamara is writing a program to organize students in a class and needs to use operators to organize student grades, then compare the results of that to each other. What kinds of operators does Tamara need to use for each step?Tamara needs to use operators to organize the students' grades, then operators to compare the results. when the lac repressor protein binds to lactose, why does it fall off its binding site at the operator? Describe how the Earths surface changed over time? identify two major geological and two major biological events of the cenozoic era emma makes 21 laps during a 5 minute song how many laps per minute did emma make how do I show my work? Mia is 7.04304 x 10 minutes old. Convert her age to more appropriate units using years, months, anddays. Assume a year has 365 days and a month has 30 days.aMia is 13yearsmonths anddays old in terms of the wavelength of the sound wave, about how far below the open end of the resonance tube is the first resonant position? what are the three examples that show relation between pressure and areain daily life. pls pls pls help i need to know the correct answer and why its correct, thanks in advanceWhat is the relationship between power, work, and time?AAs the amount of time increases,power and work both increase.BAs the amount of time increases,power and work both decrease.As the amount of time increases,power increases and work is not affected. D. As the amount of time increases power decreases and work is not affected. A function is represented by the values in the table.THIS FUNCTION REPRESENTED IN THE TABLE (CHOOSE IS or IS NOT) LINEAR PIC BELOW [tex]\Large\mathtt\color{red}{H}\color{orange}{E}\color{yellow}{L}\color{lime}{P}\color{green}{M}\color{cyan}{E}\color{aquamarine}{!}[/tex][tex]\Large\mathtt\color{cyan}{}[/tex]5400 300000[tex]\Large\mathtt\color{cyan}{}[/tex][tex]\Large\blue{\boxed{\tt{\colorbox{cyan}{WITH}}}}[/tex][tex]\Large\blue{\boxed{\tt{\colorbox{cyan}{SOLUTION}}}}[/tex][tex]\tt\colorbox{blue}{\boxed{\colorbox{red}{ \color{pink}{ \rm{ NONSENSE = REPORT }}}}}[/tex] A beaker containing a green liquid is left uncovered in a laboratory for one week., After the liquid evaporates, the beaker contains a dry green solid. Was the original liquid in the beaker an element, a compound, or a mixture? A towns population of children increased from 376 to 421 during the past year.Which equation shows how to find the percent increase? where does sperm production occur within the testis? For the best results when shooting a moving subject within a scene, a digital camera should be set to _____ mode. a 25 -ft ladder rests against the side of a house. the distance between the top of the lader and the ground is 17 ft more than the distance between the base od the ladder and the bottom of the house. find both distances. 4|x-8|+1>_5 ASAP please