Sample Code for Project 3. Question 1: t = Time.now print t, "\n" print t.hour, " ", t.dst?, "\n" u = Time.new(1776, 7, 4, 14, 35, 0) print t > u, "\n" Question 2: Add this code to the bottom of the VendingMachine class. vm = VendingMachine.new deposit_quarter deposit_quarter deposit_quarter select_candy print_status Copy and paste the last five line five more times to buy four more candy bars, and then see what happens if you request a candy bar when the machine is out of candy bars. Question 4: Create a Rails project named Proj3Smith Create a Rails model like this: rails g model Student first_name:string major:string year:integer gpa:float Then run the following script by executing the following command from the rails console: load "test-student.rb" s1 = Student.new s1.first_name = "Chloe" s1.major = "Biology" s1.year = 3 s1.gpa = 3.79 s1.save s2 = Student.new s2.first_name = "Maxwell" s2.major = "English" s2.year = 2 s2.gpa = 3.62 s2.save print s2.count, "\n" To delete the student with id = 2: Student.delete(2) To delete all of the students: Student.delete_all