Biology, asked by arunvarma7069, 1 year ago

Why are conditional test procedures an integral part of statistics? Provide a real world example using pseudocode.

Answers

Answered by Cheemaking
0
As an effective method, an algorithm can be expressed within a finite amount of space and time and in a well-defined formal languagefor calculating a function.Starting from an initial state and initial input (perhaps empty),the instructions describe a computation that, when executed, proceeds through a finitenumber of well-defined successive states, eventually producing "output"and terminating at a final ending state. The transition from one state to the next is not necessarily deterministic; some algorithms, known as randomized algorithms, incorporate random input.


i hope help you
Answered by thewordlycreature
0

An algorithm is a procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed. An algorithm is merely the sequence of steps taken to solve a problem. The steps are normally "sequence," "selection, " "iteration," and a case-type statement.



In C, "sequence statements" are imperatives. The "selection" is the "if then else" statement, and the iteration is satisfied by a number of statements, such as the "while," " do," and the "for," while the case-type statement is satisfied by the "switch" statement.



Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based" detail (algorithmic) design tool.


The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented. These include while, do, for, if, switch. Examples below will illustrate this notion.




Examples:


1.. If student's grade is greater than or equal to 60


Print "passed"

else

Print "failed"

2. Set total to zero


Set grade counter to one


While grade counter is less than or equal to ten


Input the next grade

Add the grade into the total

Set the class average to the total divided by ten


Print the class average.

Similar questions