Algorithms, Part 3 of 3 - PowerPoint PPT Presentation

About This Presentation
Title:

Algorithms, Part 3 of 3

Description:

Read Pine Tutorial - http://www.washington.edu/pine/tutorial.4/index.html ... Type 'Lichen_at_mitre.org' and your email address in the CC: field and hit Enter Key. ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 14
Provided by: lichua
Category:

less

Transcript and Presenter's Notes

Title: Algorithms, Part 3 of 3


1
Algorithms, Part 3 of 3
  • Topics
  • Disk Quota Exceeded.
  • Email Using Pine.
  • More Algorithms
  • Reading
  • Read Pine Tutorial - http//www.washington.edu/pin
    e/tutorial.4/index.html

2
Exceed Disk Quota
  • Check our class Website frequently.
  • CMSC 104 Section 0301 Homepage.
  • http//www.cs.umbc.edu/courses/undergraduate/104/f
    all02/chen/
  • Exceed Disk Quota Problem
  • Type "oitcleaner" to cleanup cache files from
    previous Web browser usage. Then type quota
    vto view current disk space usage.

3
Emai Using Pine
  • We will walk through a set of commands used to
    say Hi to your TA, and sign with your full name
    in the Message Text field, Using Pine, CMSC 104
    Section 301 in the Subject field, and send it to
    kevina1_at_umbc.edu, CC to lichen_at_mitre.org, and
    yourself.
  • CC means Carbon copy, used to copy a message
    to an interested party.
  • See pine tutorial for details and help.
  • Pine Tutorial Website - http//www.washington.edu/
    pine/tutorial.4/index.html

4
Emai Using Pine
  • Type pine at the Linux prompt.
  • The Main Menu list Pines main options (see
    Figure on the next slide).
  • The bottom screen displays a menu of command
    options.

5
Emai Using Pine
6
Emai Using Pine
  • Type c to compose an email.
  • Note that the bottom screen displays a different
    menu of command options from before.
  • means Control key.
  • Use arrow keys to move around the fields or
    command options. Different commands are available
    when the cursor is in different fields.
  • Type Kevina1_at_umbc.edu in the To field and hit
    Enter Key.
  • Use arrow keys to go up and down of the fields
    and left or right to position your cursor. Use
    Backspace key to delete a character.
  • Type Lichen_at_mitre.org and your email address in
    the CC field and hit Enter Key.
  • Type Using Pine, CMSC 104 Section 301 in the
    Subject field.
  • Type Hi Kevin. and sign your name in the
    Message Text field.

7
Emai Using Pine
Menu with options of commands and help at the
bottom.
8
Emai Using Pine
  • Use Ctrl X to send email and type y to
    confirm. Done!
  • To view emails
  • Type L to view Folder Lists.
  • Position cursor to Inbox and hit Enter key.
  • The email you just mailed should be displayed.
  • N 1 Date Your Name Using Pine ..
  • Position cursor to the email and hit Enter key.
  • Now you can read the email that you just sent.
  • To quit pine
  • Type q to quit pine and type y to confirm.

9
Emai Using Pine
Menu with options of commands and help at the
bottom.
10
Writing Algorithms from Scratch
  • Given a problem statement, we are going to write
    the corresponding generic algorithm for the
    solution in terms of input and output.
  • We will use the following procedure
  • Get input from the user.
  • Perform tasks or calculations in order to get the
    correct solution.
  • Output results to the user.

11
The Box
  • Problem Write an interactive program to compute
    and display the volume and surface area of a
    3-dimensional rectangular box. The program must
    also display the box dimensions. Error checking
    should be done to be sure that all box dimensions
    are greater than zero.
  • Input width, length, and height of a box.

12
Drawing a Rectangle
  • Problem Write an interactive program that will
    draw a solid rectangle of asterisks () in terms
    of width and length. The program must also
    display the dimensions of the rectangle. Error
    checking must be done to be sure that the
    dimensions are greater than zero.

13
Assignment and Next
  • Write an email say Hi to your TA and sign with
    your full name in the Message Text field, Using
    Pine, CMSC 104 Section 301 in the Subject field
    and send it to yourself, lichen_at_mitre.org,
    kevina1_at_umbc.edu. See pine tutorial for help.
    http//www.washington.edu/pine/tutorial.4/index.ht
    ml. Send your email before Monday, September 23,
    200 PM.
  • Exam 1 on Monday, Sept. 30.
  • Next
  • More problem solving and algorithms.
Write a Comment
User Comments (0)
About PowerShow.com