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
Bezzdna [24]
3 years ago
8

Write an algorithm to sum all numbers between 0 and 1000 that are divisible by ,7​

Computers and Technology
1 answer:
ipn [44]3 years ago
6 0

Answer:

The algorithm is as follows:

1. START

2. SUM = 0

3. FOR NUM = 0 TO 1000

3.1 IF NUM % 7 == 0

3.1.1 SUM = SUM + NUM

3.2 END IF

4. END FOR

5. PRINT SUM

6. END

Explanation:

This begins the algorithm

1. START

This initializes sum to 0

2. SUM = 0

This iterates from 0 to 1000

3. FOR NUM = 0 TO 1000

This checks if the current number is divisible by 7

3.1 IF NUM % 7 == 0

If yes, the number is added

3.1.1 SUM = SUM + NUM

End the if condition

3.2 END IF

End loop

4. END FOR

This prints the calculated sum

5. PRINT SUM

The algorithm ends here

6. END

You might be interested in
Question 3 10 points Save Answer Many companies in the computer industry introduce new products and services frequently in an at
Setler [38]

Answer: False

Explanation:

Cost leadership infers that the company has the lowest costs in the industry and this allows them to charge people less for their products which would increase sales and therefore profitability.

Introducing new products in the computer industry does not project this image because when new products are introduced, they are typically more expensive in a bid to incorporate the cost of new technology which means that they cannot be cost leaders.

8 0
3 years ago
What 2 major agricultural inventions did jethro tull create?
kenny6666 [7]
Jethro Tull created the seed drill, and improved plough.
Hope it helps
5 0
3 years ago
Read 2 more answers
Question #2
Softa [21]

Hofstede's cultural dimensions describe how the world's cultures differ in six main ways and how different cultures should strive to become the same.

<h3>What are the scale of lifestyle and its influences?</h3>

According to Hofstede, the 5 principal dimensions are identity, power, gender, uncertainty, and time. You can reflect on consideration on cultural fee dimensions on a scale or a continuum, in which one element of the fee lies on one aspect of the dimensions and the opposite intense lies at the opposite give up of the dimensions.

  1. To run VBA withinside the “Microsoft Visual Basic for Applications” window, you can surely press the “F5” key button or click on on the “Run” icon withinside the toolbar.
  2. The Visual Basic button opens the Visual Basic Editor, in which you create and edit VBA code.
  3. Another button on the Developer tab in Word and Excel is the Record Macro button, which routinely generates VBA code that may reproduce the actions that you perform withinside the application.

Read more about the Hofstede's cultural dimensions :

brainly.com/question/7158663

#SPJ1

6 0
2 years ago
Read 2 more answers
What is the decimal representation of the following signed binary numbers?
zheka24 [161]

Answer:

(10000000)₂ = -128 in decimal

(11001100)₂ = -52 in decimal

(10110111)₂ = -73 in decimal

Explanation:

<u>NOTE:</u> If Most Significant Bit is 0, it is positive number and if MSB is 1, it is negative number. If number is positive we can simply convert it to decimal. But if number is negative, follow following formula:

  • (complement of the number) +1

<u>EXAMPLE 1</u>

  (10000000)₂

  (01 1 1 1 1 1 1)₂   ↔  complement of the number

<u>+                    1</u>

  (10000000)₂ = 1 ×2^{7}= 128 (magnitude in decimal)

But we remember MSB was 1 so answer is -128.

<u>EXAMPLE 2</u>

  (1 1 0 0 1 1 00)₂

  (0 0 1 1 0 0 1 1)₂

<u>+                       1  </u>

  (0 0 1 1 0 1 0 0)₂ = 52 (magnitude in decimal)

But we remember MSB was 1 so answer is -52.

<u>EXAMPLE 3</u>

  (1 0 1 1 0 1 1 1)₂

  (0 1 00 1 000)₂

<u>+                      1  </u>

  (01 00 1 00 1‬)₂ = 73 (magnitude in decimal)

But we remember MSB was 1 so answer is -73.

5 0
3 years ago
How to make a sad face on keyboard using alt?
forsale [732]
Literally just do a colon and parenthesis :(

:( :-(
8 0
4 years ago
Read 2 more answers
Other questions:
  • Ted wants to follow the StartSafe philosophy when working around electricity. Which of the following steps would be consistent w
    15·2 answers
  • Please help me please
    6·1 answer
  • Match each vocabulary word to its definition.
    11·2 answers
  • 10. Question
    15·1 answer
  • When performing a basic search with Bing, you first type in your search expression and then click a button to begin the search;
    13·1 answer
  • In terms of object-oriented programming, after a class is defined,
    11·1 answer
  • A group of students writes their names and unique student ID numbers on sheets of paper. The sheets are then randomly placed in
    15·1 answer
  • What is computer assisted translation​
    9·1 answer
  • Having sound enhances your App, do you agree with this? Explain.
    9·1 answer
  • What keyword is used in Java to create a parent/child relationship between two classes?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!