Reading an text file, doing an average and then inputing the average in another text file.

profilePedroFr13

Hello., I posted another question but since I have to do another thing into the program I'm writing a new updated question.

So I need to write a program :

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 text file.

 

Obs: I have to due this in 9 hours, so I will pick a teacher who can do the program in 8 hours or less.

    • 11 years ago
    • 50
    Answer(1)

    Purchase the answer to view it

    blurred-text
    • attachment
      answer.docx