Confused with "6. formatting with string methods"

so i have this…

print "What’s your first name? "
first_name = gets.chomp
first_name.capitalize!

print "What’s your last name? "
last_name = gets.chomp
last_name.capitalize!

print "What city are you from? "
city = gets.chomp
city.capitalize!

print "What state or province are you from? "
state = gets.chomp
state.upcase!

puts “Your name is #{first_name} #{last_name} and you’re from #{city}, #{state}!”

this is supposed to be the solution, but im utterly confused because when i run, only the first string prints. i am also confused as to where i would put my info into the method. like for example my name is eric.

where in
(print "What’s your first name? "
first_name = gets.chomp
first_name.capitalize!)
do i put my name to get “Your name is #{first_name} #{last_name} and you’re from #{city}, #{state}!” to properly puts. im so confused because i followed all directions with nothing happening on the run screen.

the moment i try this with and without quotations

print "What’s your first name? "
first_name = “eric” gets.chomp
first_name.capitalize!

it doesnt work.

i try with and without quotations around my name
print "What’s your first name? "
first_name = gets.chomp
first_name = “eric”.capitalize
first_name.capitalize!

doenst work,

WHY DOESNT CODE ACADEMY ADDRESS THIS?!?!?!?! please help. im so close to punching my monitor into another dimension.

gets.chomp is a function which prompts you for input while the program ins running. So the user who uses the application (you in this case), they can enter something into the prompt.