Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please provide solution on paper (matlab student.dat) Write a script studhts that will first attempt to open the file 'studhts.dat' created in Q-3. If the
please provide solution on paper (matlab student.dat)
Write a script studhts that will first attempt to open the file 'studhts.dat' created in Q-3. If the file open is not successful, an error message should be printed. If it is successful, the script will read the data into strings, one line at a time. Print for each person the name in the form last, first' followed by the height. Also, calculate and print the number of students having heights less than 160. Finally, print whether or not the file close was successful. For example, the result of running the script would look like this: [6] Shukla, Anubhav 143.5 Jindal, Ram 156.9 Singh, Saurav 175 Number of students having heights less than 16 File closed successfullyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started