Create a NOTEPAD or PDF file that restates the problem in your own words, specif
ID: 3871328 • Letter: C
Question
Create a NOTEPAD or PDF file that restates the problem in your own words, specifies what input is needed from whomever is using the process, what output is expected, the step by step process (algorithm) to get the output from the input, and test data (input for which you know the expected output for each of the 3 problems given below. You should not write any actual python code. Make sure the problem statement is in your own words and is descriptive enough so someone not reading the problem description given to you will understand what is being done.
These are processes that could be used for programmer-built functions.
Problem 1: Without using the concept of lists (arrays), develop a process that will determine the highest 3 numbers in a series of numbers that are entered one at a time
Explanation / Answer
Please give the thumbs up, if it is helpful for you!!. Let me know if you have any doubts.
Input: Series of numbers from users one by one.
Output: finding the highest 3 numbers from the given numbers without using lists.
Algorithm:
Step1: take 3 inputs one by one and assigned into three variables a,b,c.
Step2: take next input and check whether it is greater than any of the value(i.e. a,b,c)
Step3: if the value is larger then any value(i.e. a,b,c) then replace the input number with the lowest among a,b,c variable. This step will keep on modifying the varible a,b,c with the highest values entered.
Step4: perform the Step3 until user hit the enter button.
Step5: Display the variables a,b,c which are holding the highest 3 numbers
in the series.