CS 29
40 pts., Feb. 13
Each question is worth 4 points.
Both of them had military use among their reasons for creation; the Interstates for moving material and the Internet for communication.
For remotely logging in to a remote computer across the Internet.
Gopher is text-based, whereas the WWW is multimedia.
A set of rules which, if followed, allow two networked computers to communicate.
Clients make requests and servers service those requests.
#!/usr/contrib/bin/perl
print "Enter the account balance: ";
$balance = <STDIN>;
print "Enter the transaction amount: ";
$transaction = <STDIN>;
print "Enter d for deposit or w for withdrawal: ";
$action = <STDIN>;
chop($action);
if ( $action eq "d" )
{
$balance = $balance + $transaction;
}
else
{
$balance = $balance - $transaction;
}
print "\nThe new balance is $balance.\n";
exit 0;
Here's what it prints:
Enter the account balance: Enter the transaction amount: Enter d for deposit or w for withdrawal: The new balance is 15.
Input from the keyboard.
The program which procesess your commands and serves as a ``go between'' between you and the rest of the system.
Eight characters or longer; includes uppercase, lowercase, numerals, and punctuation characters; is not a word in any dictionary; is not personal information.

You just ran the pwd command and /users/kelliher was printed in response. Write a ``1'' in the circle corresponding to that response. Next, you type and run the following commands:
cd .. cd .. cd contribWrite a ``2'' in the circle corresponding to your new position within the file system tree.