Question: Use the following code to read the two _ dimensional table from file ( PeakTable _ 1 . txtand then from PeakTable _ 2 .
Use the following code to read the twodimensional table from filePeakTabletxtand then from PeakTabletxt and display it as a matrix to the screen. PeakTabletxt has rows and columns PeakTabletxt has rows and columns
You need to implement this question using C and provide a screenshot of the output.
import time
def readingMatrix :
f openpeakTabletxtr
list
listlinesplit for line in f
return list
def displayMatrixtheList :
for row in range lentheList :
for col in range lentheList :
print:formattheListrowcol end
print
print reading matrix
list readingMatrix
print # rows lenlist #cols lenlist
displayMatrixlist
DisplayAllPeaksPositions
Then you must include this:
Use the below to display the time your algorithm takes in milliseconds.
time time.time
time time.time
printelapsed time: time time
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
