The obvious error is that if we do your work for you, you learn nothing.
Are you even *trying* to solve these? How are you studying Ruby to be posed
these problems? If you''ve got classes then I''d suggest paying
more attention
in them; if you''re studying on your own, have you read all the
materiel? I''m
sure the answers have all been covered.
If you''re finding it difficult, then maybe the course is not for you,
because if you were working on a real project, the problems are not so
contrived, and the answers aren''t so obvious.
For this specific problem; consider (or Google) the difference between
assignment and comparison operators in Ruby.
On Jun 5, 2010 10:24 AM, "Srinivas Golyalla"
<golyalla-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Explain the error in the following sample of Ruby code. Reference the
line which the error is found on:
1- my_grade = "A+"
2-
3- if my_grade = "A+"
4- puts "PASSED!!!"
5- end
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.