Last login: Mon Feb 15 10:22:55 on ttys000 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. (base) MAC:Mon Feb 15:10:27:~> B (base) MAC:Mon Feb 15:10:27:4240> cd ch3 (base) MAC:Mon Feb 15:10:27:ch3> ls 0215B.txt buf foo.py humble.in medium_functions PS1.py easy_functions fun.py humble.py yokel.py (base) MAC:Mon Feb 15:10:27:ch3> vi fun.py (base) MAC:Mon Feb 15:10:27:ch3> sftp utility0 Connected to utility0. sftp> cd public_html/currentClasses/4240/Feb sftp> cd 15Feb21/B sftp> put fun.py Uploading fun.py to /home/morrison/public_html/currentClasses/4240/Feb/15Feb21/B/fun.py fun.py 100% 766 52.3KB/s 00:00 sftp> put You must specify at least one path after a put command. sftp> sftp> quit client_loop: send disconnect: Broken pipe (base) MAC:Mon Feb 15:11:44:ch3> (base) MAC:Mon Feb 15:12:43:ch3> E (base) MAC:Mon Feb 15:12:43:4280> ls PropperMultiWindowApp.class binarySearch roster.txt PropperMultiWindowApp.java email.txt students algorithms interfaces (base) MAC:Mon Feb 15:12:43:4280> cd interfaces/ (base) MAC:Mon Feb 15:12:43:interfaces> ls Circle.class Rectangle.java deadly.gv if_else.gv runtime.gv Circle.java Shape.class if.gv if_else.png runtime.png Rectangle.class Shape.java if.png interface.gv throwable.gv (base) MAC:Mon Feb 15:12:43:interfaces> sftp utility0 Connected to utility0. sftp> cd public_html/currentClasses/4280/Feb/ sftp> cd 12Feb21 sftp> put *.java Uploading Circle.java to /home/morrison/public_html/currentClasses/4280/Feb/12Feb21/Circle.java Circle.java 100% 359 53.9KB/s 00:00 Uploading Rectangle.java to /home/morrison/public_html/currentClasses/4280/Feb/12Feb21/Rectangle.java Rectangle.java 100% 444 94.6KB/s 00:00 Uploading Shape.java to /home/morrison/public_html/currentClasses/4280/Feb/12Feb21/Shape.java Shape.java 100% 114 22.4KB/s 00:00 sftp> quit (base) MAC:Mon Feb 15:12:45:interfaces> ls Circle.class Rectangle.java deadly.gv if_else.gv runtime.gv Circle.java Shape.class if.gv if_else.png runtime.png Rectangle.class Shape.java if.png interface.gv throwable.gv (base) MAC:Mon Feb 15:12:45:interfaces> vi Shape.java (base) MAC:Mon Feb 15:12:45:interfaces> vi Shape.java (base) MAC:Mon Feb 15:12:58:interfaces> vi Rectangle.java (base) MAC:Mon Feb 15:13:00:interfaces> vi Polygon.java (base) MAC:Mon Feb 15:13:01:interfaces> vi Rectangle.java (base) MAC:Mon Feb 15:13:02:interfaces> javac *.java (base) MAC:Mon Feb 15:13:02:interfaces> jshell | Welcome to JShell -- Version 15.0.1 | For an introduction type: /help intro jshell> /open Shape.java jshell> /open Polygon.java jshell> /open Rectangle.java jshell> /open Circle.java jshell> Polygon p = new Rectangle(6,8); p ==> Rectangle@5197848c jshell> p.numSides() $6 ==> 4 jshell> p = new Circle(5); | Error: | incompatible types: Circle cannot be converted to Polygon | p = new Circle(5); | ^-----------^ jshell> Object o = new Circle(5); o ==> Circle@5010be6 jshell> o.toString() $8 ==> "Circle@5010be6" jshell> o.diameter() | Error: | cannot find symbol | symbol: method diameter() | o.diameter() | ^--------^ jshell> o.getClass() $9 ==> class Circle jshell> o o ==> Circle@5010be6 jshell> /vars | Polygon p = Rectangle@5197848c | int $6 = 4 | Object o = Circle@5010be6 | String $8 = "Circle@5010be6" | Class $9 = class Circle jshell> p p ==> Rectangle@5197848c jshell> (base) MAC:Mon Feb 15:13:17:interfaces> vi Rectangle.java (base) MAC:Mon Feb 15:13:19:interfaces> javac Rectangle.java (base) MAC:Mon Feb 15:13:19:interfaces> jshell | Welcome to JShell -- Version 15.0.1 | For an introduction type: /help intro jshell> /open Recangle.java | File 'Recangle.java' for '/open' is not found. jshell> /open Rectangle.java jshell> Object o = new Rectangle(3,4); | Error: | cannot find symbol | symbol: class Rectangle | Object o = new Rectangle(3,4); | ^-------^ jshell> Object o = new Rectangle(3,4); | Error: | cannot find symbol | symbol: class Rectangle | Object o = new Rectangle(3,4); | ^-------^ jshell> /open Rectangle.java jshell> /open Polygon.java jshell> /open Shape.java jshell> Object o = new Rectangle(3,4); o ==> Rectangle(3.0, 4.0) jshell> o.toString() $6 ==> "Rectangle(3.0, 4.0)" jshell> /exit | Goodbye (base) MAC:Mon Feb 15:13:21:interfaces> vi Rectangle.java (base) MAC:Mon Feb 15:13:22:interfaces> javac Rectangle.java (base) MAC:Mon Feb 15:13:22:interfaces> !vi vi Rectangle.java (base) MAC:Mon Feb 15:13:23:interfaces> javac Rectangle.java Rectangle.java:26: error: method does not override or implement a method from a supertype @Override ^ 1 error (base) MAC:Mon Feb 15:13:23:interfaces> !vi vi Rectangle.java (base) MAC:Mon Feb 15:13:24:interfaces> vi Square.java (base) MAC:Mon Feb 15:13:28:interfaces> !vi vi Square.java (base) MAC:Mon Feb 15:13:28:interfaces> vi RealFunction.java (base) MAC:Mon Feb 15:13:34:interfaces> vi TableMaker.java (base) MAC:Mon Feb 15:13:34:interfaces> javac RealFunction.java (base) MAC:Mon Feb 15:13:35:interfaces> javac TableMaker.java (base) MAC:Mon Feb 15:13:35:interfaces> vi TableMaker.java (base) MAC:Mon Feb 15:13:41:interfaces> javac TableMaker.java TableMaker.java:16: error: cannot find symbol for(Double x: xValue) ^ symbol: variable xValue location: class TableMaker 1 error (base) MAC:Mon Feb 15:13:41:interfaces> !vi vi TableMaker.java (base) MAC:Mon Feb 15:13:41:interfaces> !j javac TableMaker.java TableMaker.java:21: error: missing return statement } ^ 1 error (base) MAC:Mon Feb 15:13:41:interfaces> !vi vi TableMaker.java (base) MAC:Mon Feb 15:13:41:interfaces> !j javac TableMaker.java (base) MAC:Mon Feb 15:13:41:interfaces> !vi vi TableMaker.java (base) MAC:Mon Feb 15:13:43:interfaces> javac TableMaker.java (base) MAC:Mon Feb 15:13:44:interfaces> java TableMaker
xf(x)
1.01.0
1.52.25
2.04.0
2.56.25
(base) MAC:Mon Feb 15:13:44:interfaces> !vi vi TableMaker.java (base) MAC:Mon Feb 15:13:44:interfaces> !javac javac TableMaker.java (base) MAC:Mon Feb 15:13:44:interfaces> vi TableMaker.java (base) MAC:Mon Feb 15:13:44:interfaces> java TableMaker
xf(x)
1.01.0
1.52.25
2.04.0
2.56.25
(base) MAC:Mon Feb 15:13:44:interfaces> !vi vi TableMaker.java (base) MAC:Mon Feb 15:13:57:interfaces> ls Circle.class Rectangle.class TableMaker.java interface.gv Circle.java Rectangle.java deadly.gv runtime.gv Polygon.class Shape.class if.gv runtime.png Polygon.java Shape.java if.png throwable.gv RealFunction.class Square.java if_else.gv RealFunction.java TableMaker.class if_else.png (base) MAC:Mon Feb 15:13:57:interfaces> B (base) MAC:Mon Feb 15:13:57:4240> cd ch3 (base) MAC:Mon Feb 15:13:57:ch3> ls 0215B.txt buf foo.py humble.in medium_functions PS1.py easy_functions fun.py humble.py yokel.py (base) MAC:Mon Feb 15:13:57:ch3> vi funF.py (base) MAC:Mon Feb 15:14:12:ch3> python Python 3.8.5 (default, Sep 4 2020, 02:22:02) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ord("a") 97 >>> ord("b") 98 >>> ord("c") 99 >>> ord("cde") Traceback (most recent call last): File "", line 1, in TypeError: ord() expected a character, but string of length 3 found >>> chr(97) 'a' >>> chr(945) 'α' >>> (base) MAC:Mon Feb 15:14:15:ch3> vi funF.py (base) MAC:Mon Feb 15:14:17:ch3> python funF.py 1000 (base) MAC:Mon Feb 15:14:17:ch3> !vi vi funF.py (base) MAC:Mon Feb 15:14:17:ch3> !p python funF.py 1000 729 (base) MAC:Mon Feb 15:14:17:ch3> !vi vi funF.py (base) MAC:Mon Feb 15:14:21:ch3> !p python funF.py 1000 729 ['__annotations__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'noah'] (base) MAC:Mon Feb 15:14:21:ch3> !vi vi funF.py (base) MAC:Mon Feb 15:14:21:ch3> !p python funF.py 1000 729 ['__annotations__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'noah'] ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'ZeroDivisionError', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip'] (base) MAC:Mon Feb 15:14:21:ch3> !vi vi funF.py (base) MAC:Mon Feb 15:14:22:ch3> vi prince.py (base) MAC:Mon Feb 15:14:23:ch3> python prince.py cows None (base) MAC:Mon Feb 15:14:23:ch3> python Python 3.8.5 (default, Sep 4 2020, 02:22:02) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information. >>> type(None) >>> bool(None) False >>> (base) MAC:Mon Feb 15:14:24:ch3> vi funF.py (base) MAC:Mon Feb 15:14:27:ch3> !vi vi funF.py (base) MAC:Mon Feb 15:14:30:ch3> vi yahoo.py (base) MAC:Mon Feb 15:14:31:ch3> python yahoo.py 1000 (base) MAC:Mon Feb 15:14:31:ch3> !vi vi yahoo.py (base) MAC:Mon Feb 15:14:32:ch3> python yahoo.py 1000 Traceback (most recent call last): File "yahoo.py", line 5, in print(y) NameError: name 'y' is not defined (base) MAC:Mon Feb 15:14:32:ch3> !vi vi yahoo.py (base) MAC:Mon Feb 15:16:51:ch3> vi att.txt (base) MAC:Mon Feb 15:16:52:ch3> awk -i '{print $2, $1} att.txt > -bash: unexpected EOF while looking for matching `'' -bash: syntax error: unexpected end of file (base) MAC:Mon Feb 15:16:53:ch3> awk '{print $2, $1} att.txt>btt.txt > (base) MAC:Mon Feb 15:16:53:ch3> awk '{print $2, $1}' att.txt>btt.txt (base) MAC:Mon Feb 15:16:53:ch3> vi btt.txt (base) MAC:Mon Feb 15:16:53:ch3> sort btt.txt > att.txt (base) MAC:Mon Feb 15:16:53:ch3> vi att.txt (base) MAC:Tue Feb 16:08:20:ch3> ls 0215B.txt btt.txt foo.py humble.in prince.py PS1.py buf fun.py humble.py yahoo.py att.txt easy_functions funF.py medium_functions yokel.py (base) MAC:Tue Feb 16:08:20:ch3> rm att.txt btt.tt remove att.txt? y rm: btt.tt: No such file or directory (base) MAC:Tue Feb 16:08:20:ch3> rm btt.txt remove btt.txt? y (base) MAC:Tue Feb 16:08:21:ch3> E (base) MAC:Tue Feb 16:08:21:4280> cd students/ (base) MAC:Tue Feb 16:08:21:students> mv ~/Downloads/CamScanner\ 02-09-2021\ 11.36.pdf campbell21j/academicHonesty.pdf (base) MAC:Tue Feb 16:08:21:students> mv ~/Downloads/Academic\ Honesty.pdf mcginnis21c/academicHonesty.pdf (base) MAC:Tue Feb 16:08:22:students> mv ~/Downloads/academicHonesty1.pdf xu21j/academicHonesty.pdf (base) MAC:Tue Feb 16:08:23:students> cd (base) MAC:Tue Feb 16:08:34:~> cd book/S1 (base) MAC:Tue Feb 16:08:34:S1> open s3.pdf (base) MAC:Tue Feb 16:08:34:S1> ssc Last login: Mon Feb 15 12:45:46 2021 from 172.31.248.120 SERVER:Tue Feb 16:08:35:~> B SERVER:Tue Feb 16:08:36:4240> cd Feb/16Feb21/ SERVER:Tue Feb 16:08:36:16Feb21> vi index.php SERVER:Tue Feb 16:09:47:16Feb21> vi conditional.py SERVER:Tue Feb 16:09:54:16Feb21> python conditional.py File "conditional.py", line 13 print(f"Your result is {pass_NJ_license(x)}") ^ SyntaxError: invalid syntax SERVER:Tue Feb 16:09:54:16Feb21> !vi vi conditional.py SERVER:Tue Feb 16:09:54:16Feb21> !vi vi conditional.py SERVER:Tue Feb 16:10:30:16Feb21> client_loop: send disconnect: Broken pipe (base) MAC:Tue Feb 16:12:42:S1>