CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Using Pine. More Algorithms Reading Read Pine Tutorial -
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Exceed Disk Quota Check our class Website frequently. CMSC 104 Section 0301 Homepage. 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.
CMSC 104, Section 301, Fall 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 CC to 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 -
CMSC 104, Section 301, Fall 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.
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Emai Using Pine
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Emai Using Pine Type “c” to compose an . 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 in the To: field and hit Enter 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 and your address in the CC: field and hit Enter Type “Using Pine, CMSC 104 Section 301” in the Subject field. Type “Hi Kevin.” and sign your name in the Message Text field.
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Emai Using Pine Menu with options of commands and help at the bottom.
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Emai Using Pine Use “Ctrl X” to send and type “y” to confirm. Done! To view s – –Type L to view Folder Lists. –Position cursor to Inbox and hit Enter key. –The you just mailed should be displayed. N 1 Date Your Name … Using Pine ….. –Position cursor to the and hit Enter key. –Now you can read the that you just sent. To quit pine – –Type “q” to quit pine and type “y” to confirm.
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Emai Using Pine Menu with options of commands and help at the bottom.
CMSC 104, Section 301, Fall 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.
CMSC 104, Section 301, Fall 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.
CMSC 104, Section 301, Fall 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.
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Assignment and Next Write an 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, See pine tutorial for help. Send your before Monday, September 23, 2:00 Exam 1 on Monday, Sept. 30. Next: More problem solving and algorithms.