Computer Science, asked by KIMANIIV, 3 months ago

write pseudocode to input positive number, -1 to finish, and find the total and the average.

Answers

Answered by swathi21025
0

Answer:

Pseudocode is useful for presenting or teaching code concepts, without getting tied up in the grammar of a particular language. I can express the concept of a merge sort in pseudocode without delving into types, memory allocation, syntax and so on, and a Java programmer, a Python programmer, a C++ programmer and a Ruby programmer can understand and implement that concept without any need to translate or understand a different programming language.

Experienced programmers use pseudocode when developing certain algorithms, simply because they might be doing something cross-system, like using C# to interface with a MySQL database. Writing the concept down in C# and SQL statements would be paramount to writing the code, but the concept will be the hard bit to define and refine. The code will take time to implement, but can only be done with the concept correctly defined. So it’s a useful stepping stone in certain cases to get from “how on Earth do I…?” to completed code.

Similar questions