Question: The variable x is an argument to the function add. The variable x is an integer. 13, Create an instance of the following Person class,

 The variable x is an argument to the function add. The

The variable x is an argument to the function add. The variable x is an integer. 13, Create an instance of the following Person class, set its name attribute to any value you like and use its instance variable to complete the greeting method. 1- class Person 2 attr accessor :name 3 def greeting 4 5 6 end 7 end 8 9 some_person joel 10 some-person . name#joe2 11 some person.ioe3 # @name puts "hi, my name is #{joe?" Run Reset NameError: undefined local variable or method joel' for main:Object line 9: in main' 14. Using an array, double each of the following values and print each result: values (1.1, 10, 4.55, 30004, 0.2) 1 values# [1.1, 10, 4.55, 30004, 0.2] Run

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!