Write a program that creates a file called gradestxt with


Question: Write a program that creates a file called "grades.txt" with 1000 lines. Each line in the "grades.txt" file will consist of a student's first name, last name, graduating year(2013,2014,2015), and grade. the student's first name and last name for the ith line are FirstNamei and LastName. The graduating year is randomly generated as freshman, sophomore, or junior.

The grade is randomly generated from an A+ to A- for 2013, B+ to B- for 2014, or C+ to C- for 2015.

The sample output of the "grades.txt" file should look like this:

FirstName1 LastName1 2013 A-

FirstName2 LastName2 2015 C+

....

FirstName1000 LastName1000 2014 B

Please show me all the working and provide the answer.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that creates a file called gradestxt with
Reference No:- TGS0947077

Expected delivery within 24 Hours