Skip to content

learn-co-students/yale-web-development-bootcamp-2020-technical-submission-yale-application-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technical Submission: Final Lesson

Instructions

Congratulations on making it to the end of this course! It's time put your newfound knowledge to the test by completing a coding exercise. You'll complete this lesson using the Learn IDE - click the "Open in IDE" button and write your code in the app.rb file.

  1. Create a local variable called name and set it equal to a string of your name.
  2. Create a local variable called age and set it equal to an integer of your age.
  3. Create a local variable called favorite_food and set it equal to a string of your favorite food.
  4. Create a local variable called height_in_inches and set it equal to an integer of your height in inches. (HINT: If you're 7 feet tall, this should be 84)
  5. Create a variable caleld height_message using the ternary operator. If your height in inches is greater than average, the message should say "You are taller than average." Otherwise, it should say "You are not taller than average."

When you're done, you can test your code by running ruby app.rb from the provided Terminal. You should see an output message from the computer. Then complete the official grading tests by typing learn test. Once you get all tests passing, you can then submit the lab by running learn submit from the Terminal. Good luck!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages