Question: 1 0 . 1 P | Fix it - Sort Records Challenge ( D ) Submissions Description data.txt fix _ it . rb 1 0
P Fix it Sort Records
Challenge
D Submissions
Description
data.txt
fixitrb
P Fix it Sort Records
In this task you will build on the debugging skills developed in your other Pass and Tutorial tasks.
TIP: There are errors in the code two are typing syntax errors, one is a logic error.
Your program should produce the following output:
useresahara $ ruby fix fic,rb
first line:
Line read: Fred
Line read: Jill
Line read: Johnny
Line read: Sam
Line read: Sam
Class MyRecord
attraccessor :name, :age
def initializename age
aname name
@age age
end
end
def compare direction
if direction
else
end
end
def sort direction
ount arr. length
Spaces:
Console
Terminal
Run
Mark
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
