Programming
Raising grades

Question Description

I’m stuck on a Programming question and need an explanation.

Raising grades
Points received for exercise 1
Assignment

Your task is to write a PHP script that reads grades from the file grades.txt, increments the grades by one and writes the incremented grades to the file results.txtand finally prints the grades from results.txt. If the grade is five, it won't be incremented. The grades in grades.txt are each in its own row and the amount of digits in a grade may vary. The grades are between 0-5. The grades written in results.txt should each also be in their own rows.


Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

kukistars (136)
Carnegie Mellon University

Anonymous
The tutor was pretty knowledgeable, efficient and polite. Great service!

Anonymous
Heard about Studypool for a while and finally tried it. Glad I did caus this was really helpful.

Anonymous
Just what I needed… fantastic!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4