Answer:
Swap codes in line 7 and 8
Explanation:
The code segment below
Line 1: count ← 0
Line 2: sum ← 0
Line 3: FOR EACH value IN numbers
Line 4: {
Line 5: count ← count + 1
Line 6: sum ← sum + value
Line 7: average ← sum / count
Line 8: }
Line 9: DISPLAY (average)
The above code will make the program translator calculate the average value at each iteration.
This will take a longer time to execute and also means more instructions for the program translator.
Swapping line 7 and 8 will reduce the number of instructions to execute. This will have an instant effect on the time taken to execute the program.
Swapping line 7 and 8 means that, the program translator will only calculate the average after it must have finished calculating the sum of the values in the iteration statement.
In Computer programming, there are four (4) common data types and these include:
- Integer type (int):
- Floating point type (float)
- Boolean (bool)
- String (str)
<h3>The kinds of data type.</h3>
In Computer programming, there are four (4) common data types and these include:
- <u>Integer type (int):</u> it is used for storing whole numbers such as 1, 2, 3, 4, ..... 2,147,483,647.
- <u>Floating point type (float):</u> it is used for defining real numbers that have a decimal point such as 0.009, 9.87, 5.6, etc.
- <u>Boolean (bool):</u> it allow users to combine keywords with Boolean operators (quotes, AND, OR, near/n) as either true or false.
- <u>String (str):</u> it is used for data values that are made up of ordered sequences of characters.
Read more on a data types here: brainly.com/question/25619349
Basic blocks are identified because they are known to be a straight line that is known also as a code sequence that tends to have no branches in regards to its in and out branches and its exception is only to the entry and at the end.
Note that Basic Block is said to be a composition of statements that is known to be one that often always executes one after other, and this is often done in a sequence.
<h3>How do you create a flow graph from the basic blocks?</h3>
Flow graph is gotten by:
- Lets Block B1 be the initial node and also Block B2 will tend to follows B1, so from B2 to B1 there is seen a kind of an edge.
Note that the first task is for a person to partition a sequence of three-address code and this is done into basic blocks.
Hence, Basic blocks are identified because they are known to be a straight line that is known also as a code sequence that tends to have no branches in regards to its in and out branches and its exception is only to the entry and at the end.
Learn more about basic blocks from
brainly.com/question/132319
#SPJ1
Answer: D) Content creator
Explanation:
- Content creator are responsible for creating the original content of the website. They contribute writing the blog posts about various topics and promote the content with the help of digital and social media.
- Content creator are basically responsible for writing blog post on the industry based topics, graphic design and video editing.
Content editor uses data and evaluation from the users for analysis. It basically includes design and development to enhanced the material on the website.
Static and dynamic information are related to computer terminologies.
Therefore, (D) option is correct.
A Savings Vehicle is an effective way to hold your savings. It could be a savings account. But some requires a high minimum balance such as Certificate of Deposit (CD). It is generally issued by commercial banks. It is a time deposit too and restricts you from withdrawing funds.