Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ruby assignment help please! I am not sure if this is correct, but here are the 5 variables I came up with. 5 variables: time

Ruby assignment help please!

I am not sure if this is correct, but here are the 5 variables I came up with.

5 variables: time (ex. breakfast, lunch, or dinner), place (ex. home, school, restaurant), type (ex. pasta, pizza, salad, calories (ex. 700, 600, 550 calories), healthy (true, or false)

I'm not sure what to do for questions 3,4,5. Anything will help. Thanks!

image text in transcribed

# # Meals are important and there are a lot of details to keep track of for a meal. # 1. Create a Meal Class. # 2. Have at least 5 variables, with at least one string, integer and boolean type in your Meal class. # 3. Create a method for the class in addition to the initialize method # 4. Create and dsiplay three instances of meals. # 5. call your method on all three instances

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago