Reading an text file, doing an average and then inputing the average in another text file.
First the program must read a text file (The user must be able to write the name of the text file) , the text file contains the following: a title, an companyname, an teacher name, the duration of the project, key words, and the expenses the company is going to spend.
Text file example:
Title: Projeto
Company: UMA
Teacher: Joaquim
Duration: 5 months
Keywords: #best_project_ever
Expenses:
Equipment:$300
Food: $50
Consumable expenses: $100
Consulting expenses: $40
Travel: $150
Extras: $500
Then after reading the text file, ( the file must show into the console, so the evaluator can see it)
I have to do the following:
3 evaluators will evaluate 4 parameters ( just name them parameter1, parameter2 ...) the program must ask the evaluators to input those parameters but as letters (N=1,M=2,S=3,B=4,E=5) then I have to do the average for each evaluator and then the average for all of the 3 evaluators. Now I have to convert the 3 evaluators average in percentage( 1 to 2 =25%,2 to 3 =50%, 3 to 4=75% and 4 to 5=100%)
Finally I have to write these percentages in a new file, following the things that were written in the initial te