Question: Help with my beginner's Ruby code. 1 gradebook Hash.new 3 5.times do 4 puts Enter the students name: 5 name [x] -gets.chomp.to-s Instructions from your

 Help with my beginner's Ruby code. 1 gradebook Hash.new 3 5.times

Help with my beginner's Ruby code.

1 gradebook Hash.new 3 5.times do 4 puts "Enter the students name:" 5 name [x] -gets.chomp.to-s Instructions from your teacher Finish writing the gradebook program. It should accept a name and grade 5 times. 7 puts "Enter the students grade:" Then it should spit out the names and grades in this format Eric: 100 Whoever: 20 8 grade [x]- gets.chomp.toi 9 10. #enter the grade in the gradebook under the students name 12 13 end 14 15- #print out each name and grade in the gradebook 16 #Eric: 100 17 ruby 2.3.1p112 (2016-04-26 revision 54768) (x86_64- linux]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!