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
tia_tia [17]
4 years ago
6

Write a for loop that prints in ascending order all the positive multiples of 5 that are less than 175, separated by spaces?

Computers and Technology
2 answers:
djverab [1.8K]4 years ago
7 0

Answer:

li = []

for i in range(5,175):

   if i % 5 == 0:

       li.append(i)

     

   

print(li)

Explanation:

The above code was written in python 3 programming language.

Firstly, an empty list is created to hold the values that will be derived from the for loop.

<em>for i in range(5,175): </em>

The range module here generates a list from 5 to 174, The for loop iterates through each number and checks if they are in agreement with the IF statement. i.e. If they are divisible by five and leave no remainder and then appends(adds) the values to the empty list and the loop runs again till it gets to 174, and then it stops.

I have attached a picture for you to see the result and how the code runs.

kiruha [24]4 years ago
4 0

Answer:

The answer to the following question by the C++ programming language.

#include <iostream>    //header file

using namespace std;   // namespaces

int main()    // main function

{

for (int i=1; i<175; i++){  // set for loop

if ((i % 5) == 0){    // set if condition

cout << i << " ";

}

}

}

Output:

5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125 13 0 135 140 145 150 155 160 165 170

Explanation:

Here, we define header file and namespaces.

Then, we define the main() function.

Then, we set the for loop, which starts from 1 and stop at 174.

Then, we set the if condition, which divides each integer value from 1 to 174 from 5.

Then we set "cout<< ;" which prints all those integer values which is divided by 5 with space.  

You might be interested in
Because information listed on a website can change from day to day, _______ must be included in the end citation on the Works Ci
hichkok12 [17]
The URL has to be at the end
8 0
3 years ago
Assume that cell F5 to F10 In a spreadsheet contains numeric value of salary earned by some workers and cell F12 contains the va
snow_tiger [21]

Answer:

=F5*$F$12+F5

Explanation:

If we want to increment the salaries in the cell F5, we must multiply the cell F5 by cell F12, and then we must sum that result.

If we want to drag the formula from the cell F5 to F10, we must use the dollar symbol $ to apply the same percent in our formula.

For example:

F12 = 5% = 0.05

F5 = 10,000

=F5*$F$12+F5

=10,000×0.05+10,000 = 10,500

5 0
3 years ago
You are experiencing a problem with a network server. You want to bring the system down and try reseating the cards within it be
Ymorist [56]

Answer:

"init 0" command completely shuts down the system in an order manner

Explanation:

init is the first process to start when a computer boots up and keep running until the system ends. It is the root of all other processes.

İnit command is used in different<em> runlevels, </em>which<em> </em>extend from 0 through 6. "init 0" is used to halt the system, basically init 0

  • shuts down the system before safely turning power off.
  • stops system services and daemons.
  • terminates all running processes.
  • Unmounts all file systems.
7 0
3 years ago
The COSO internal control framework identifies five components of an entity's internal control. Which, if any, of those five com
Llana [10]

Answer:

The COSO internal control framework identifies five components of an entity's internal control.

Which, if any, of those five components of Avon's internal control were flawed?

Of those five components of Avon´s internal control the following were flawed:

1) Information and communication

2) Monitoring

3) Control environment

Explanation:

1) Avon’s global internal audit staff thought about offering CPA provisions´s training to the employees, but it never happended due to budgetary limitations, nor it was informed or communicated to them. It was uncovered that the payments were being made to Chinese government officials in 2005,  however working for a U.S. Company, those bribes were not allowed.}

2) Monitoring: In December 2006, Avon’s global internal audit staff followed up doubtful  activity regarding this matter, but there was no monitoring or evaluations that the deficiencies within the internal control were changed to legal practices.

3)  This is a major internal control flaw as Avon discovered that there were illegal bribes being paid to Chinese government officials, thought about informing their employees that is was unacceptable but then chose not to, and finally was surprised when the bribes continued for another year.  This demonstred a lack of commitment to integrity and ethical values.  

7 0
4 years ago
Plz help
Vikki [24]

Answer:

1)Select the cells you want to shade.

2)On the Home tab of ribbon select Conditional Formatting > New Rule

3)Select 'Use a formula to determine which cells to format' > enter your formula in the 'Edit the Rule Description' field.

4)Click the Format button and from the Format Cells dialog box select the Fill tab > choose your weapon (colour, pattern, fill effect etc.):

Explanation:

6 0
3 years ago
Other questions:
  • The number of output for a decoder if the input is 4
    14·1 answer
  • 6.12 Nested Increments Write a program for spiritual lumberjacks who want to show their appreciation for each tree they 'kill' b
    12·1 answer
  • A network admin configures a static route on the edge router of a network to assign a gateway of last resort (the router that co
    9·1 answer
  • Which technology do environmental scientists use to photograph and report poaching activities
    8·2 answers
  • What is likely to happen to the economy when there’s too much money or credit circulating?
    13·1 answer
  • Select the correct answer. Which of these is a game-centric handheld gaming console? A. IPad B. iPhone C. PSVita D. Xbox ​
    9·2 answers
  • Ayudaaaaa, Instale el software equivocado a mi tv westinghause con placa tp.Ms338.Pb801 y ahora queda en negro, ¿Cómo lo puedo s
    15·1 answer
  • What does this map key show
    12·1 answer
  • What underlying concept is edge computing based on?
    13·2 answers
  • True or False
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!