To Lecture Notes

IT 231 -- 10/9/12

 

Review Questions

  1. Write a Ruby script that inputs the course score and outputs the course grade.
    A == 90..100, B == 80..89, C == 70..79, D == 60..69, F == 0..59.
     
  2. Add this method to the Dice class (Example 14) and test it:

  3. Create a Rails project named TestProject. Then do the following:
     
    1. Generate a controller named ShowInfo with one action home.
    2. Add another action named page1.
    3. Define titles in the controller for the views.
    4. Modify the application.css stylesheet so that it
      • sets the background color to silver
      • the text color to maroon
      • the font family to Arial
      • the hyperlinks (link_to) to green
      • the size of the h1 tag to 50% larger than the body text
    5. Modify the layout page to display an h1 header containing the title of the project and display an image on all views.

 

Project 4

 

Modifying Images with Image Editing Software

 

Review for Midterm