135k views
5 votes
Tanner and Maureen each want to write a computer program to draw a house. Which of the following is true? They will each have the same set of instructions. They should decide on only one algorithm. Their processes must be the same to reach their desired outcome. Their algorithms can be different and still reach their desired outcome.

User Zakiakhmad
by
7.1k points

1 Answer

5 votes

Final answer:

Their algorithms can be different and still reach their desired outcome. Algorithms function like recipes, allowing for different methodologies to achieve the same result, as in programming where multiple approaches can accomplish the same task.

Step-by-step explanation:

Tanner and Maureen each want to write a computer program to draw a house. It is true that their algorithms can be different and still reach their desired outcome. Algorithms are akin to recipes in that they guide the process to achieve a result, but just as with cooking, there can be different methodologies to create the same dish. Similarly, in programming, there can be multiple valid approaches to accomplish a specific task.

For example, one programmer might use a graphics library, while another might opt for a game engine to create their house drawing program. Each will have their own set of instructions and approach the problem-solving process differently, but both can achieve the same end goal of drawing a house.

User Fhilton
by
7.2k points