Answer:
Explanation:
There are many ways to write an algorithm. Some are very informal, some are quite formal and mathematical in nature, and some are quite graphical. The instructions for connecting a DVD player to a television are an algorithm. A mathematical formula such as πR2 is a special case of an algorithm. The form is not particularly important as long as it provides a good way to describe and check the logic of the plan.
The development of an algorithm (a plan) is a key step in solving a problem. Once we have an algorithm, we can translate it into a computer program in some programming language. Our algorithm development process consists of five major steps.
Step 1: Obtain a description of the problem.
Step 2: Analyze the problem.
Step 3: Develop a high-level algorithm.
Step 4: Refine the algorithm by adding more detail.
Step 5: Review the algorithm.
Answer:
b.1
Explanation:
When we are using while loop to compute the product of several values we need to initialize the value holding the product to 1 because when we multiply something with 1 it will give the same number.
If we initialize it with 0 the product will come out to be 0 because anything multiplied by 0 is 0.
we cannot initialize it with NULL because it is not a pointer.
We need to initialize the number since it contains garbage values so it will give product with that value.
Answer:
Mass Media affects my life every day right now I am angry and almost embarrassed to say I live in America...