Question C#; I need help with easy tasks

dollyhaze

New member
Joined
Jan 27, 2021
Messages
1
Programming Experience
Beginner
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!
 
It's not for us to just do your homework for you or teach you how. You will have been taught what you need to know in your class so go back and review what you have learned.
not really know how without the mistakes
That's not a problem. Making mistakes is part of the learning process. Do what you can and then, when you do make mistakes, post here and explain then to us so that we can help you with that mistake specifically. Explain what you're trying to achieve, how you're trying to achieve it and what happens when you try.

For a start, posting your entire assignment here shows that you haven't bothered to break it down into smaller and smaller parts and then address each part individually. That's problem-solving 101: divide and conquer. For instance, reading data from a file has nothing to do with the rest of the assignment so it can be addressed in isolation. You can try to read the file and, if it doesn't work, ask us questions about reading a file specifically. That's how it works.
 

Latest posts

Back
Top Bottom