Question: Please Write in Mips! Generate a text file that contains the following data. (First Name, Last Name, Age, Gender, Phone,) Example file Tommy, TuTone, 60,
Please Write in Mips!

Generate a text file that contains the following data. (First Name, Last Name, Age, Gender, Phone,) Example file Tommy, TuTone, 60, Male, 867-5309, Write a procedure, convCommas, that converts commas to newlines. Pass the memory address of the string to convert in $a0. Make the changes to the string in place. Keep a count of how many commas you replaced and return that value in $v0. (20 points) Write a MIPS program that performs the following tasks Request a text file name from the user. (5 points) Trim the file name (use trim new line procedure) (10 points) Open the file with the entered file name by the user. (5 points) .Read the contents of the file into a buffer. (20 points) .Call the procedure convCommas with the text that was read in from the file. (10 points) Show the text in the file on the console. (10 points) Show the number of commas you converted to new lines (10 points) Close the file. (5 points) Exit the program by showing an exit message. (5 points) Example Execution Please enter input filename: sample.txt Tommy TuTone 60 Male 867-5309 Number of conversions: 5 Goodbye! Generate a text file that contains the following data. (First Name, Last Name, Age, Gender, Phone,) Example file Tommy, TuTone, 60, Male, 867-5309, Write a procedure, convCommas, that converts commas to newlines. Pass the memory address of the string to convert in $a0. Make the changes to the string in place. Keep a count of how many commas you replaced and return that value in $v0. (20 points) Write a MIPS program that performs the following tasks Request a text file name from the user. (5 points) Trim the file name (use trim new line procedure) (10 points) Open the file with the entered file name by the user. (5 points) .Read the contents of the file into a buffer. (20 points) .Call the procedure convCommas with the text that was read in from the file. (10 points) Show the text in the file on the console. (10 points) Show the number of commas you converted to new lines (10 points) Close the file. (5 points) Exit the program by showing an exit message. (5 points) Example Execution Please enter input filename: sample.txt Tommy TuTone 60 Male 867-5309 Number of conversions: 5 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
