cmsc 104, section 301, fall 20021 lecture 06, 9/18/02 algorithms, part 3 of 3 topics disk quota...

13
CMSC 104, Section 301, Fall 2002 1 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read Pine Tutorial - http://www. washington . edu /pine/tutorial.4/index.html

Upload: beverly-morrison

Post on 01-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 1 Lecture 06, 9/18/02

Algorithms, Part 3 of 3

Topics

• Disk Quota Exceeded.• Email Using Pine.• More Algorithms

Reading• Read Pine Tutorial - http://www.washington.edu

/pine/tutorial.4/index.html

Page 2: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 2 Lecture 06, 9/18/02

Exceed Disk Quota

• Check our class Website frequently.• CMSC 104 Section 0301 Homepage.

http://www.cs.umbc.edu/courses/undergraduate/104/fall02/chen/

• Exceed Disk Quota Problem: Type "oitcleaner" to cleanup cache files from

previous Web browser usage. Then type quota –v

to view current disk space usage.

Page 3: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 3 Lecture 06, 9/18/02

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 [email protected], CC to [email protected], 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

Page 4: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 4 Lecture 06, 9/18/02

Emai Using Pine

• Type “pine” at the Linux prompt.• The Main Menu list Pine’s main options

(see Figure on the next slide). The bottom screen displays a menu of

command options.

Page 5: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 5 Lecture 06, 9/18/02

Emai Using Pine

Page 6: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 6 Lecture 06, 9/18/02

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 “[email protected]” 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 “[email protected]” 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.

Page 7: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 7 Lecture 06, 9/18/02

Emai Using Pine

Menu with options of commands and help at the bottom.

Page 8: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 8 Lecture 06, 9/18/02

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.

Page 9: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 9 Lecture 06, 9/18/02

Emai Using Pine

Menu with options of commands and help at the bottom.

Page 10: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 10 Lecture 06, 9/18/02

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.

Page 11: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 11 Lecture 06, 9/18/02

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.

Page 12: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 12 Lecture 06, 9/18/02

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.

Page 13: CMSC 104, Section 301, Fall 20021 Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Email Using Pine. More Algorithms Reading Read

CMSC 104, Section 301, Fall 2002 13 Lecture 06, 9/18/02

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, [email protected], [email protected]. See pine tutorial for help. http://www.washington.edu/pine/tutorial.4/index.html. Send your email before Monday, September 23, 2:00 PM.

• Exam 1 on Monday, Sept. 30.

Next:• More problem solving and algorithms.