I have to wrote a program solving these in an easiest way, not really know how without the mistakes, so thanks for any help.
The 'file' contains whats under
" John Medeic,MD
10|7|5|3|8|2|1|0|9|3|4|5|5|6|7|2|3 "
Task. 1.
Load and correctly interpret the data contained in the file.
As a result proper variables with the data should be made available in the main program.
Task. 2.
Find the worst and the best opinion for the doctor. Those will be needed in the next task. As a result proper variables with the data should be made available in the main program.
Task. 3.
Calculate the average opinion of the doctor excluding the best and the worst opinions.
As a result proper variables with the data should be made available in the main program.
Task. 4.
Show the user the outcomes in the following format (<something> means that a proper value read/calculated by the program should be substituted):
<title> <surname> <name>
best: <best>
worst: <worst>
average: <average>
Task. 5.
Save the outcomes in the same format as in the previous task to a text file summary.txt.
Thanks in advance!
The 'file' contains whats under
" John Medeic,MD
10|7|5|3|8|2|1|0|9|3|4|5|5|6|7|2|3 "
Task. 1.
Load and correctly interpret the data contained in the file.
As a result proper variables with the data should be made available in the main program.
Task. 2.
Find the worst and the best opinion for the doctor. Those will be needed in the next task. As a result proper variables with the data should be made available in the main program.
Task. 3.
Calculate the average opinion of the doctor excluding the best and the worst opinions.
As a result proper variables with the data should be made available in the main program.
Task. 4.
Show the user the outcomes in the following format (<something> means that a proper value read/calculated by the program should be substituted):
<title> <surname> <name>
best: <best>
worst: <worst>
average: <average>
Task. 5.
Save the outcomes in the same format as in the previous task to a text file summary.txt.
Thanks in advance!