Computer Science, asked by maazshaikh34, 1 year ago

Draw a flowchart to find the average of five numbers

Answers

Answered by karamvirsingh7p7bwae
2
Answer


Flowcharts and algorithms are part of R&D team actually in any company. A programmer however goes through the flowchart and then starts writing his code. Finding the average of three numbers is math, but what you really have to do in programming is writing it in a efficient way means intializing less variables for the cause which in terms reduce the memory consumed by the program and also the number of operations you are using and how many times you are using different kinds of operators.

For example : To get average of three numbers : flowchart steps would be like

1.Initialize three variables of integer or float or double float according to need.(but remember each data type gets different memory allocation size as per the language you are using).

2. Simply perform addition of three numbers and then divide it by 3 and store the result in a new variable.

Similar questions