Question: someone please help with this assignment, Do it in MATLAB, need code and output as well. The number 1 which says write_scores, i have attached

read scores Write a script called read_scores.m. The script must do the following 1. read the files written by my version of write_scores, given in the zip file multiple_files.zip 2 read whatever numbers are in each file. 3. print the numbers to the screen using the required format (seen below) A sample session is given below: >> write_scores Enter the Buccaneer's score: 1000 Enter the Viking's score 2000 >> clear >> read scores The Buccaneer's score is 1000 The Viking's score is 2000 >> write_scores.mx + 1 %Script write_scores 2 3 bucs=fopen('buccaneers.txt', 'W'); 4 vikings=fopen('vikings.txt', 'w'); 7 . bucs_score=input('Enter the Buccaneer's score : '); vikings_score=input('Enter the Viking''s score : '); 1 fprintf(bucs,'%i ', bucs_score); fprintf(vikings,'%i ',vikings_score); 8 9 10 11 12 13 14 fclose(bucs); fclose(vikings)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
