Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books