├── .gitignore ├── LICENSE ├── README-scaffold.md ├── README.md ├── css └── github-markdown.css └── misc ├── CESignatureForm.docx ├── CESignatureForm.pdf ├── MacOS.md ├── NikeSetup.md ├── OdinSetup.md ├── Windows10.md └── img └── in-zip-file.png /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | doc/ 3 | target/ 4 | *.class 5 | hs_err_pid* 6 | *~ 7 | \#*\# 8 | core.* 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Attribution-NonCommercial-NoDerivatives 4.0 International 2 | 3 | ======================================================================= 4 | 5 | Creative Commons Corporation ("Creative Commons") is not a law firm and 6 | does not provide legal services or legal advice. Distribution of 7 | Creative Commons public licenses does not create a lawyer-client or 8 | other relationship. Creative Commons makes its licenses and related 9 | information available on an "as-is" basis. Creative Commons gives no 10 | warranties regarding its licenses, any material licensed under their 11 | terms and conditions, or any related information. Creative Commons 12 | disclaims all liability for damages resulting from their use to the 13 | fullest extent possible. 14 | 15 | Using Creative Commons Public Licenses 16 | 17 | Creative Commons public licenses provide a standard set of terms and 18 | conditions that creators and other rights holders may use to share 19 | original works of authorship and other material subject to copyright 20 | and certain other rights specified in the public license below. The 21 | following considerations are for informational purposes only, are not 22 | exhaustive, and do not form part of our licenses. 23 | 24 | Considerations for licensors: Our public licenses are 25 | intended for use by those authorized to give the public 26 | permission to use material in ways otherwise restricted by 27 | copyright and certain other rights. Our licenses are 28 | irrevocable. Licensors should read and understand the terms 29 | and conditions of the license they choose before applying it. 30 | Licensors should also secure all rights necessary before 31 | applying our licenses so that the public can reuse the 32 | material as expected. Licensors should clearly mark any 33 | material not subject to the license. This includes other CC- 34 | licensed material, or material used under an exception or 35 | limitation to copyright. More considerations for licensors: 36 | wiki.creativecommons.org/Considerations_for_licensors 37 | 38 | Considerations for the public: By using one of our public 39 | licenses, a licensor grants the public permission to use the 40 | licensed material under specified terms and conditions. If 41 | the licensor's permission is not necessary for any reason--for 42 | example, because of any applicable exception or limitation to 43 | copyright--then that use is not regulated by the license. Our 44 | licenses grant only permissions under copyright and certain 45 | other rights that a licensor has authority to grant. Use of 46 | the licensed material may still be restricted for other 47 | reasons, including because others have copyright or other 48 | rights in the material. A licensor may make special requests, 49 | such as asking that all changes be marked or described. 50 | Although not required by our licenses, you are encouraged to 51 | respect those requests where reasonable. More_considerations 52 | for the public: 53 | wiki.creativecommons.org/Considerations_for_licensees 54 | 55 | ======================================================================= 56 | 57 | Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 58 | International Public License 59 | 60 | By exercising the Licensed Rights (defined below), You accept and agree 61 | to be bound by the terms and conditions of this Creative Commons 62 | Attribution-NonCommercial-NoDerivatives 4.0 International Public 63 | License ("Public License"). To the extent this Public License may be 64 | interpreted as a contract, You are granted the Licensed Rights in 65 | consideration of Your acceptance of these terms and conditions, and the 66 | Licensor grants You such rights in consideration of benefits the 67 | Licensor receives from making the Licensed Material available under 68 | these terms and conditions. 69 | 70 | 71 | Section 1 -- Definitions. 72 | 73 | a. Adapted Material means material subject to Copyright and Similar 74 | Rights that is derived from or based upon the Licensed Material 75 | and in which the Licensed Material is translated, altered, 76 | arranged, transformed, or otherwise modified in a manner requiring 77 | permission under the Copyright and Similar Rights held by the 78 | Licensor. For purposes of this Public License, where the Licensed 79 | Material is a musical work, performance, or sound recording, 80 | Adapted Material is always produced where the Licensed Material is 81 | synched in timed relation with a moving image. 82 | 83 | b. Copyright and Similar Rights means copyright and/or similar rights 84 | closely related to copyright including, without limitation, 85 | performance, broadcast, sound recording, and Sui Generis Database 86 | Rights, without regard to how the rights are labeled or 87 | categorized. For purposes of this Public License, the rights 88 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 89 | Rights. 90 | 91 | c. Effective Technological Measures means those measures that, in the 92 | absence of proper authority, may not be circumvented under laws 93 | fulfilling obligations under Article 11 of the WIPO Copyright 94 | Treaty adopted on December 20, 1996, and/or similar international 95 | agreements. 96 | 97 | d. Exceptions and Limitations means fair use, fair dealing, and/or 98 | any other exception or limitation to Copyright and Similar Rights 99 | that applies to Your use of the Licensed Material. 100 | 101 | e. Licensed Material means the artistic or literary work, database, 102 | or other material to which the Licensor applied this Public 103 | License. 104 | 105 | f. Licensed Rights means the rights granted to You subject to the 106 | terms and conditions of this Public License, which are limited to 107 | all Copyright and Similar Rights that apply to Your use of the 108 | Licensed Material and that the Licensor has authority to license. 109 | 110 | g. Licensor means the individual(s) or entity(ies) granting rights 111 | under this Public License. 112 | 113 | h. NonCommercial means not primarily intended for or directed towards 114 | commercial advantage or monetary compensation. For purposes of 115 | this Public License, the exchange of the Licensed Material for 116 | other material subject to Copyright and Similar Rights by digital 117 | file-sharing or similar means is NonCommercial provided there is 118 | no payment of monetary compensation in connection with the 119 | exchange. 120 | 121 | i. Share means to provide material to the public by any means or 122 | process that requires permission under the Licensed Rights, such 123 | as reproduction, public display, public performance, distribution, 124 | dissemination, communication, or importation, and to make material 125 | available to the public including in ways that members of the 126 | public may access the material from a place and at a time 127 | individually chosen by them. 128 | 129 | j. Sui Generis Database Rights means rights other than copyright 130 | resulting from Directive 96/9/EC of the European Parliament and of 131 | the Council of 11 March 1996 on the legal protection of databases, 132 | as amended and/or succeeded, as well as other essentially 133 | equivalent rights anywhere in the world. 134 | 135 | k. You means the individual or entity exercising the Licensed Rights 136 | under this Public License. Your has a corresponding meaning. 137 | 138 | 139 | Section 2 -- Scope. 140 | 141 | a. License grant. 142 | 143 | 1. Subject to the terms and conditions of this Public License, 144 | the Licensor hereby grants You a worldwide, royalty-free, 145 | non-sublicensable, non-exclusive, irrevocable license to 146 | exercise the Licensed Rights in the Licensed Material to: 147 | 148 | a. reproduce and Share the Licensed Material, in whole or 149 | in part, for NonCommercial purposes only; and 150 | 151 | b. produce and reproduce, but not Share, Adapted Material 152 | for NonCommercial purposes only. 153 | 154 | 2. Exceptions and Limitations. For the avoidance of doubt, where 155 | Exceptions and Limitations apply to Your use, this Public 156 | License does not apply, and You do not need to comply with 157 | its terms and conditions. 158 | 159 | 3. Term. The term of this Public License is specified in Section 160 | 6(a). 161 | 162 | 4. Media and formats; technical modifications allowed. The 163 | Licensor authorizes You to exercise the Licensed Rights in 164 | all media and formats whether now known or hereafter created, 165 | and to make technical modifications necessary to do so. The 166 | Licensor waives and/or agrees not to assert any right or 167 | authority to forbid You from making technical modifications 168 | necessary to exercise the Licensed Rights, including 169 | technical modifications necessary to circumvent Effective 170 | Technological Measures. For purposes of this Public License, 171 | simply making modifications authorized by this Section 2(a) 172 | (4) never produces Adapted Material. 173 | 174 | 5. Downstream recipients. 175 | 176 | a. Offer from the Licensor -- Licensed Material. Every 177 | recipient of the Licensed Material automatically 178 | receives an offer from the Licensor to exercise the 179 | Licensed Rights under the terms and conditions of this 180 | Public License. 181 | 182 | b. No downstream restrictions. You may not offer or impose 183 | any additional or different terms or conditions on, or 184 | apply any Effective Technological Measures to, the 185 | Licensed Material if doing so restricts exercise of the 186 | Licensed Rights by any recipient of the Licensed 187 | Material. 188 | 189 | 6. No endorsement. Nothing in this Public License constitutes or 190 | may be construed as permission to assert or imply that You 191 | are, or that Your use of the Licensed Material is, connected 192 | with, or sponsored, endorsed, or granted official status by, 193 | the Licensor or others designated to receive attribution as 194 | provided in Section 3(a)(1)(A)(i). 195 | 196 | b. Other rights. 197 | 198 | 1. Moral rights, such as the right of integrity, are not 199 | licensed under this Public License, nor are publicity, 200 | privacy, and/or other similar personality rights; however, to 201 | the extent possible, the Licensor waives and/or agrees not to 202 | assert any such rights held by the Licensor to the limited 203 | extent necessary to allow You to exercise the Licensed 204 | Rights, but not otherwise. 205 | 206 | 2. Patent and trademark rights are not licensed under this 207 | Public License. 208 | 209 | 3. To the extent possible, the Licensor waives any right to 210 | collect royalties from You for the exercise of the Licensed 211 | Rights, whether directly or through a collecting society 212 | under any voluntary or waivable statutory or compulsory 213 | licensing scheme. In all other cases the Licensor expressly 214 | reserves any right to collect such royalties, including when 215 | the Licensed Material is used other than for NonCommercial 216 | purposes. 217 | 218 | 219 | Section 3 -- License Conditions. 220 | 221 | Your exercise of the Licensed Rights is expressly made subject to the 222 | following conditions. 223 | 224 | a. Attribution. 225 | 226 | 1. If You Share the Licensed Material, You must: 227 | 228 | a. retain the following if it is supplied by the Licensor 229 | with the Licensed Material: 230 | 231 | i. identification of the creator(s) of the Licensed 232 | Material and any others designated to receive 233 | attribution, in any reasonable manner requested by 234 | the Licensor (including by pseudonym if 235 | designated); 236 | 237 | ii. a copyright notice; 238 | 239 | iii. a notice that refers to this Public License; 240 | 241 | iv. a notice that refers to the disclaimer of 242 | warranties; 243 | 244 | v. a URI or hyperlink to the Licensed Material to the 245 | extent reasonably practicable; 246 | 247 | b. indicate if You modified the Licensed Material and 248 | retain an indication of any previous modifications; and 249 | 250 | c. indicate the Licensed Material is licensed under this 251 | Public License, and include the text of, or the URI or 252 | hyperlink to, this Public License. 253 | 254 | For the avoidance of doubt, You do not have permission under 255 | this Public License to Share Adapted Material. 256 | 257 | 2. You may satisfy the conditions in Section 3(a)(1) in any 258 | reasonable manner based on the medium, means, and context in 259 | which You Share the Licensed Material. For example, it may be 260 | reasonable to satisfy the conditions by providing a URI or 261 | hyperlink to a resource that includes the required 262 | information. 263 | 264 | 3. If requested by the Licensor, You must remove any of the 265 | information required by Section 3(a)(1)(A) to the extent 266 | reasonably practicable. 267 | 268 | 269 | Section 4 -- Sui Generis Database Rights. 270 | 271 | Where the Licensed Rights include Sui Generis Database Rights that 272 | apply to Your use of the Licensed Material: 273 | 274 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 275 | to extract, reuse, reproduce, and Share all or a substantial 276 | portion of the contents of the database for NonCommercial purposes 277 | only and provided You do not Share Adapted Material; 278 | 279 | b. if You include all or a substantial portion of the database 280 | contents in a database in which You have Sui Generis Database 281 | Rights, then the database in which You have Sui Generis Database 282 | Rights (but not its individual contents) is Adapted Material; and 283 | 284 | c. You must comply with the conditions in Section 3(a) if You Share 285 | all or a substantial portion of the contents of the database. 286 | 287 | For the avoidance of doubt, this Section 4 supplements and does not 288 | replace Your obligations under this Public License where the Licensed 289 | Rights include other Copyright and Similar Rights. 290 | 291 | 292 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 293 | 294 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 295 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 296 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 297 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 298 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 299 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 300 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 301 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 302 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 303 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 304 | 305 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 306 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 307 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 308 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 309 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 310 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 311 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 312 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 313 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 314 | 315 | c. The disclaimer of warranties and limitation of liability provided 316 | above shall be interpreted in a manner that, to the extent 317 | possible, most closely approximates an absolute disclaimer and 318 | waiver of all liability. 319 | 320 | 321 | Section 6 -- Term and Termination. 322 | 323 | a. This Public License applies for the term of the Copyright and 324 | Similar Rights licensed here. However, if You fail to comply with 325 | this Public License, then Your rights under this Public License 326 | terminate automatically. 327 | 328 | b. Where Your right to use the Licensed Material has terminated under 329 | Section 6(a), it reinstates: 330 | 331 | 1. automatically as of the date the violation is cured, provided 332 | it is cured within 30 days of Your discovery of the 333 | violation; or 334 | 335 | 2. upon express reinstatement by the Licensor. 336 | 337 | For the avoidance of doubt, this Section 6(b) does not affect any 338 | right the Licensor may have to seek remedies for Your violations 339 | of this Public License. 340 | 341 | c. For the avoidance of doubt, the Licensor may also offer the 342 | Licensed Material under separate terms or conditions or stop 343 | distributing the Licensed Material at any time; however, doing so 344 | will not terminate this Public License. 345 | 346 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 347 | License. 348 | 349 | 350 | Section 7 -- Other Terms and Conditions. 351 | 352 | a. The Licensor shall not be bound by any additional or different 353 | terms or conditions communicated by You unless expressly agreed. 354 | 355 | b. Any arrangements, understandings, or agreements regarding the 356 | Licensed Material not stated herein are separate from and 357 | independent of the terms and conditions of this Public License. 358 | 359 | 360 | Section 8 -- Interpretation. 361 | 362 | a. For the avoidance of doubt, this Public License does not, and 363 | shall not be interpreted to, reduce, limit, restrict, or impose 364 | conditions on any use of the Licensed Material that could lawfully 365 | be made without permission under this Public License. 366 | 367 | b. To the extent possible, if any provision of this Public License is 368 | deemed unenforceable, it shall be automatically reformed to the 369 | minimum extent necessary to make it enforceable. If the provision 370 | cannot be reformed, it shall be severed from this Public License 371 | without affecting the enforceability of the remaining terms and 372 | conditions. 373 | 374 | c. No term or condition of this Public License will be waived and no 375 | failure to comply consented to unless expressly agreed to by the 376 | Licensor. 377 | 378 | d. Nothing in this Public License constitutes or may be interpreted 379 | as a limitation upon, or waiver of, any privileges and immunities 380 | that apply to the Licensor or You, including from the legal 381 | processes of any jurisdiction or authority. 382 | 383 | ======================================================================= 384 | 385 | Creative Commons is not a party to its public 386 | licenses. Notwithstanding, Creative Commons may elect to apply one of 387 | its public licenses to material it publishes and in those instances 388 | will be considered the “Licensor.” The text of the Creative Commons 389 | public licenses is dedicated to the public domain under the CC0 Public 390 | Domain Dedication. Except for the limited purpose of indicating that 391 | material is shared under a Creative Commons public license or as 392 | otherwise permitted by the Creative Commons policies published at 393 | creativecommons.org/policies, Creative Commons does not authorize the 394 | use of the trademark "Creative Commons" or any other trademark or logo 395 | of Creative Commons without its prior written consent including, 396 | without limitation, in connection with any unauthorized modifications 397 | to any of its public licenses or any other arrangements, 398 | understandings, or agreements concerning use of licensed material. For 399 | the avoidance of doubt, this paragraph does not form part of the 400 | public licenses. 401 | 402 | Creative Commons may be contacted at creativecommons.org. 403 | 404 | -------------------------------------------------------------------------------- /README-scaffold.md: -------------------------------------------------------------------------------- 1 | # ce02 Title Here 2 | 3 | This exercise is designed to... 4 | 5 | ## Prerequisite Knowledge 6 | 7 | * TBD 8 | 9 | ## Questions 10 | 11 | In your notes, clearly answer the following questions. These instructions assume that you have setup 12 | your local machine following the instructions linked to on eLC and the syllabus. 13 | 14 | 1. 15 | 16 | 2. 17 | 18 | 3. 19 | 20 | 4. 21 | 22 | 5. 23 | 24 | * **CHECKPOINT** 25 | 26 | 6. 27 | 28 | 7. 29 | 30 | 8. 31 | 32 | 9. 33 | 34 | 10. 35 | 36 | * **CHECKPOINT** 37 | 38 | 11. 39 | 40 | 12. 41 | 42 | 13. 43 | 44 | 14. 45 | 46 | 15. 47 | 48 | * **CHECKPOINT** 49 | 50 | 16. 51 | 52 | 17. 53 | 54 | 18. 55 | 56 | 19. 57 | 58 | 20. 59 | 60 | * **CHECKPOINT** 61 | 62 |
63 | 64 | [![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC%20BY--NC--ND%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-nd/4.0/) 65 | 66 | 67 | Copyright © Michael E. Cotterell, Brad Barnes, and the University of Georgia. 68 | This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License to students and the public. 69 | The content and opinions expressed on this Web page do not necessarily reflect the views of nor are they endorsed by the University of Georgia or the University System of Georgia. 70 | 71 | 72 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSCI 1302 Class Exercises 2 | 3 | ## Introduction 4 | 5 | Learning computer science takes much more than pure memorization. Learning how 6 | to think like a computer scientist is a time consuming process, with the key 7 | word being "process". It requires active, engaged participation and questioning 8 | both in and out of class. To aid in this journey, the instructors of this 9 | course will provide you with many opportunities to learn the material through 10 | guided readings, active class exercises, and comprehensive project assignments, 11 | however, in the end you will have to do all of the hard work of actually learning 12 | that material. This is not *self teaching*; instead, it is *guided active learning*. 13 | 14 | ## Exercise List 15 | 16 | 1. [`cs1302-ce00` Review Exercise](https://github.com/cs1302uga/cs1302-ce00) 17 | 1. [`cs1302-ce01` Unix Commands](https://github.com/cs1302uga/cs1302-ce01) 18 | 1. [`cs1302-ce02` Command Line Compilation and Packages](https://github.com/cs1302uga/cs1302-ce02) 19 | 1. [`cs1302-ce03` Multiuser System Fun Times](https://github.com/cs1302uga/cs1302-ce03) 20 | 1. [`cs1302-ce04` From Exceptional to Enhanced Cat](https://github.com/cs1302uga/cs1302-ce04) 21 | 1. [`cs1302-ce05` API Documentation with Javadoc](https://github.com/cs1302uga/cs1302-ce05) 22 | 1. [`cs1302-ce06` Interfaces (ADTs)](https://github.com/cs1302uga/cs1302-ce06) 23 | 1. [`cs1302-ce07` Evolving an Interface](https://github.com/cs1302uga/cs1302-ce07) 24 | 1. [`cs1302-ce08` A Great Inheritance](https://github.com/cs1302uga/cs1302-ce08) 25 | 1. [`cs1302-ce09` More Shapes](https://github.com/cs1302uga/cs1302-ce09) 26 | 1. [`cs1302-ce10` Hierarchy Refactoring](https://github.com/cs1302uga/cs1302-ce10) 27 | 1. [`cs1302-ce11` Lovable Linked Lists](https://github.com/cs1302uga/cs1302-ce11) 28 | 1. [`cs1302-ce12` Subsumption Trade-offs](https://github.com/cs1302uga/cs1302-ce12) 29 | 1. [`cs1302-ce13` Java Generics](https://github.com/cs1302uga/cs1302-ce13) 30 | 1. [`cs1302-ce14` Genericize is a Real Word](https://github.com/cs1302uga/cs1302-ce14) 31 | 1. [`cs1302-ce15` Genericize is Still a Real Word](https://github.com/cs1302uga/cs1302-ce15) 32 | 1. [`cs1302-ce16` Gnarly to the Max](https://github.com/cs1302uga/cs1302-ce16) 33 | 1. [`cs1302-ce17` Generic Method Implementation](https://github.com/cs1302uga/cs1302-ce17) 34 | 1. [`cs1302-ce18` Generic Method Implementation](https://github.com/cs1302uga/cs1302-ce18) 35 | 1. [`cs1302-ce19` ImageApp](https://github.com/cs1302uga/cs1302-ce19) 36 | 1. [`cs1302-ce20` Fancy ImageApp](https://github.com/cs1302uga/cs1302-ce20) 37 | 1. [`cs1302-ce21` Fun with Components and Containers](https://github.com/cs1302uga/cs1302-ce21) 38 | 1. [`cs1302-ce22` Loading...](https://github.com/cs1302uga/cs1302-ce22) 39 | 1. [`cs1302-ce23` Java Stream API](https://github.com/cs1302uga/cs1302-ce23) 40 | 1. [`cs1302-ce24` Recursive Problems](https://github.com/cs1302uga/cs1302-ce24) 41 | 1. [`cs1302-ce25` Applications of Recursion](https://github.com/cs1302uga/cs1302-ce25) 42 | 1. [`cs1302-ce26` Tic-Tac-Toe Solver](https://github.com/cs1302uga/cs1302-ce26) 43 | 1. [`cs1302-ce27` Paired Sorting Algorithm Analysis](https://github.com/cs1302uga/cs1302-ce27) 44 | 1. [`cs1302-ce28` More Paired Sorting Algorithm Analysis](https://github.com/cs1302uga/cs1302-ce28) 45 | 1. [`cs1302-ce29` Complexity Classes](https://github.com/cs1302uga/cs1302-ce29) 46 | 1. [`cs1302-ce30` Social Network Graph Analytics](https://github.com/cs1302uga/cs1302-ce30) 47 | 1. [`cs1302-ce31` More Social Network Graph Analytics](https://github.com/cs1302uga/cs1302-ce31) 48 | 1. [`cs1302-ce32` Stream / Recursion Practice](https://github.com/cs1302uga/cs1302-ce32) 49 | 50 | ## How to Prepare 51 | 52 | The best way to prepare for the class exercises is to actively engage with the reading 53 | quizzes, and the best way to prepare for the reading quizzes is to actively engage with 54 | the reading. This means that you should actually try the things that you're reading about 55 | (e.g., commands, code, etc.), take notes as needed, and ask questions when things are unclear. 56 | To get the most out of a reading, you should do this even if the reading is not directly 57 | presented as a tutorial. Merely reading the words to prepare is rarely sufficient and is 58 | widely considered the least effective way to prepare. 59 | 60 | ## Publication History 61 | 62 | | DOI | Tag | Date | Description | 63 | |-----|-----|------|-------------| 64 | | [10.5281/zenodo.2652509](https://doi.org/10.5281/zenodo.2652509) | NA | NA | All Versions | 65 | | [10.5281/zenodo.3579498](https://doi.org/10.5281/zenodo.3579498) | `v2019fa` | Dec 16, 2019 | Fall 2019 | 66 | | [10.5281/zenodo.2652510](https://doi.org/10.5281/zenodo.2652510) | `v2019sp` | Apr 26, 2019 | Spring 2019 | 67 | 68 | ## License 69 | 70 | [![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC%20BY--NC%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc/4.0/) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2652509.svg)](https://doi.org/10.5281/zenodo.2652509) 71 | 72 | 73 | Copyright © Michael E. Cotterell, Bradley J. Barnes, and the University of Georgia. 74 | This work is licensed under 75 | a Creative Commons Attribution-NonCommercial 4.0 International License. 76 | The content and opinions expressed on this Web page do not necessarily reflect the views of nor are they endorsed by the University of Georgia or the University System of Georgia. 77 | -------------------------------------------------------------------------------- /css/github-markdown.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: octicons-link; 3 | src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAAizAFoAAABiAGIAznjaY2BkYGAA4in8zwXi+W2+MjCzMIDApSwvXzC97Z4Ig8N/BxYGZgcgl52BCSQKAA3jCV8CAABfAAAAAAQAAEB42mNgZGBg4f3vACQZQABIMjKgAmYAKEgBXgAAeNpjYGY6wTiBgZWBg2kmUxoDA4MPhGZMYzBi1AHygVLYQUCaawqDA4PChxhmh/8ODDEsvAwHgMKMIDnGL0x7gJQCAwMAJd4MFwAAAHjaY2BgYGaA4DAGRgYQkAHyGMF8NgYrIM3JIAGVYYDT+AEjAwuDFpBmA9KMDEwMCh9i/v8H8sH0/4dQc1iAmAkALaUKLgAAAHjaTY9LDsIgEIbtgqHUPpDi3gPoBVyRTmTddOmqTXThEXqrob2gQ1FjwpDvfwCBdmdXC5AVKFu3e5MfNFJ29KTQT48Ob9/lqYwOGZxeUelN2U2R6+cArgtCJpauW7UQBqnFkUsjAY/kOU1cP+DAgvxwn1chZDwUbd6CFimGXwzwF6tPbFIcjEl+vvmM/byA48e6tWrKArm4ZJlCbdsrxksL1AwWn/yBSJKpYbq8AXaaTb8AAHja28jAwOC00ZrBeQNDQOWO//sdBBgYGRiYWYAEELEwMTE4uzo5Zzo5b2BxdnFOcALxNjA6b2ByTswC8jYwg0VlNuoCTWAMqNzMzsoK1rEhNqByEyerg5PMJlYuVueETKcd/89uBpnpvIEVomeHLoMsAAe1Id4AAAAAAAB42oWQT07CQBTGv0JBhagk7HQzKxca2sJCE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff'); 4 | } 5 | 6 | body { 7 | -ms-text-size-adjust: 100%; 8 | -webkit-text-size-adjust: 100%; 9 | line-height: 1.5; 10 | color: #24292e; 11 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 12 | font-size: 16px; 13 | line-height: 1.5; 14 | word-wrap: break-word; 15 | } 16 | 17 | body .pl-c { 18 | color: #6a737d; 19 | } 20 | 21 | body .pl-c1, 22 | body .pl-s .pl-v { 23 | color: #005cc5; 24 | } 25 | 26 | body .pl-e, 27 | body .pl-en { 28 | color: #6f42c1; 29 | } 30 | 31 | body .pl-smi, 32 | body .pl-s .pl-s1 { 33 | color: #24292e; 34 | } 35 | 36 | body .pl-ent { 37 | color: #22863a; 38 | } 39 | 40 | body .pl-k { 41 | color: #d73a49; 42 | } 43 | 44 | body .pl-s, 45 | body .pl-pds, 46 | body .pl-s .pl-pse .pl-s1, 47 | body .pl-sr, 48 | body .pl-sr .pl-cce, 49 | body .pl-sr .pl-sre, 50 | body .pl-sr .pl-sra { 51 | color: #032f62; 52 | } 53 | 54 | body .pl-v, 55 | body .pl-smw { 56 | color: #e36209; 57 | } 58 | 59 | body .pl-bu { 60 | color: #b31d28; 61 | } 62 | 63 | body .pl-ii { 64 | color: #fafbfc; 65 | background-color: #b31d28; 66 | } 67 | 68 | body .pl-c2 { 69 | color: #fafbfc; 70 | background-color: #d73a49; 71 | } 72 | 73 | body .pl-c2::before { 74 | content: "^M"; 75 | } 76 | 77 | body .pl-sr .pl-cce { 78 | font-weight: bold; 79 | color: #22863a; 80 | } 81 | 82 | body .pl-ml { 83 | color: #735c0f; 84 | } 85 | 86 | body .pl-mh, 87 | body .pl-mh .pl-en, 88 | body .pl-ms { 89 | font-weight: bold; 90 | color: #005cc5; 91 | } 92 | 93 | body .pl-mi { 94 | font-style: italic; 95 | color: #24292e; 96 | } 97 | 98 | body .pl-mb { 99 | font-weight: bold; 100 | color: #24292e; 101 | } 102 | 103 | body .pl-md { 104 | color: #b31d28; 105 | background-color: #ffeef0; 106 | } 107 | 108 | body .pl-mi1 { 109 | color: #22863a; 110 | background-color: #f0fff4; 111 | } 112 | 113 | body .pl-mc { 114 | color: #e36209; 115 | background-color: #ffebda; 116 | } 117 | 118 | body .pl-mi2 { 119 | color: #f6f8fa; 120 | background-color: #005cc5; 121 | } 122 | 123 | body .pl-mdr { 124 | font-weight: bold; 125 | color: #6f42c1; 126 | } 127 | 128 | body .pl-ba { 129 | color: #586069; 130 | } 131 | 132 | body .pl-sg { 133 | color: #959da5; 134 | } 135 | 136 | body .pl-corl { 137 | text-decoration: underline; 138 | color: #032f62; 139 | } 140 | 141 | body .octicon { 142 | display: inline-block; 143 | vertical-align: text-top; 144 | fill: currentColor; 145 | } 146 | 147 | body a { 148 | background-color: transparent; 149 | } 150 | 151 | body a:active, 152 | body a:hover { 153 | outline-width: 0; 154 | } 155 | 156 | body strong { 157 | font-weight: inherit; 158 | } 159 | 160 | body strong { 161 | font-weight: bolder; 162 | } 163 | 164 | body h1 { 165 | font-size: 2em; 166 | margin: 0.67em 0; 167 | } 168 | 169 | body img { 170 | border-style: none; 171 | } 172 | 173 | body code, 174 | body kbd, 175 | body pre { 176 | font-family: monospace, monospace; 177 | font-size: 1em; 178 | } 179 | 180 | body hr { 181 | box-sizing: content-box; 182 | height: 0; 183 | overflow: visible; 184 | } 185 | 186 | body input { 187 | font: inherit; 188 | margin: 0; 189 | } 190 | 191 | body input { 192 | overflow: visible; 193 | } 194 | 195 | body [type="checkbox"] { 196 | box-sizing: border-box; 197 | padding: 0; 198 | } 199 | 200 | body * { 201 | box-sizing: border-box; 202 | } 203 | 204 | body input { 205 | font-family: inherit; 206 | font-size: inherit; 207 | line-height: inherit; 208 | } 209 | 210 | body a { 211 | color: #0366d6; 212 | text-decoration: none; 213 | } 214 | 215 | body a:hover { 216 | text-decoration: underline; 217 | } 218 | 219 | body strong { 220 | font-weight: 600; 221 | } 222 | 223 | body hr { 224 | height: 0; 225 | margin: 15px 0; 226 | overflow: hidden; 227 | background: transparent; 228 | border: 0; 229 | border-bottom: 1px solid #dfe2e5; 230 | } 231 | 232 | body hr::before { 233 | display: table; 234 | content: ""; 235 | } 236 | 237 | body hr::after { 238 | display: table; 239 | clear: both; 240 | content: ""; 241 | } 242 | 243 | body table { 244 | border-spacing: 0; 245 | border-collapse: collapse; 246 | } 247 | 248 | body td, 249 | body th { 250 | padding: 0; 251 | } 252 | 253 | body h1, 254 | body h2, 255 | body h3, 256 | body h4, 257 | body h5, 258 | body h6 { 259 | margin-top: 0; 260 | margin-bottom: 0; 261 | } 262 | 263 | body h1 { 264 | font-size: 32px; 265 | font-weight: 600; 266 | } 267 | 268 | body h2 { 269 | font-size: 24px; 270 | font-weight: 600; 271 | } 272 | 273 | body h3 { 274 | font-size: 20px; 275 | font-weight: 600; 276 | } 277 | 278 | body h4 { 279 | font-size: 16px; 280 | font-weight: 600; 281 | } 282 | 283 | body h5 { 284 | font-size: 14px; 285 | font-weight: 600; 286 | } 287 | 288 | body h6 { 289 | font-size: 12px; 290 | font-weight: 600; 291 | } 292 | 293 | body p { 294 | margin-top: 0; 295 | margin-bottom: 10px; 296 | } 297 | 298 | body blockquote { 299 | margin: 0; 300 | } 301 | 302 | body ul, 303 | body ol { 304 | padding-left: 0; 305 | margin-top: 0; 306 | margin-bottom: 0; 307 | } 308 | 309 | body ol ol, 310 | body ul ol { 311 | list-style-type: lower-roman; 312 | } 313 | 314 | body ul ul ol, 315 | body ul ol ol, 316 | body ol ul ol, 317 | body ol ol ol { 318 | list-style-type: lower-alpha; 319 | } 320 | 321 | body dd { 322 | margin-left: 0; 323 | } 324 | 325 | body code { 326 | font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; 327 | font-size: 12px; 328 | } 329 | 330 | body pre { 331 | margin-top: 0; 332 | margin-bottom: 0; 333 | font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; 334 | font-size: 12px; 335 | } 336 | 337 | body .octicon { 338 | vertical-align: text-bottom; 339 | } 340 | 341 | body .pl-0 { 342 | padding-left: 0 !important; 343 | } 344 | 345 | body .pl-1 { 346 | padding-left: 4px !important; 347 | } 348 | 349 | body .pl-2 { 350 | padding-left: 8px !important; 351 | } 352 | 353 | body .pl-3 { 354 | padding-left: 16px !important; 355 | } 356 | 357 | body .pl-4 { 358 | padding-left: 24px !important; 359 | } 360 | 361 | body .pl-5 { 362 | padding-left: 32px !important; 363 | } 364 | 365 | body .pl-6 { 366 | padding-left: 40px !important; 367 | } 368 | 369 | body::before { 370 | display: table; 371 | content: ""; 372 | } 373 | 374 | body::after { 375 | display: table; 376 | clear: both; 377 | content: ""; 378 | } 379 | 380 | body>*:first-child { 381 | margin-top: 0 !important; 382 | } 383 | 384 | body>*:last-child { 385 | margin-bottom: 0 !important; 386 | } 387 | 388 | body a:not([href]) { 389 | color: inherit; 390 | text-decoration: none; 391 | } 392 | 393 | body .anchor { 394 | float: left; 395 | padding-right: 4px; 396 | margin-left: -20px; 397 | line-height: 1; 398 | } 399 | 400 | body .anchor:focus { 401 | outline: none; 402 | } 403 | 404 | body p, 405 | body blockquote, 406 | body ul, 407 | body ol, 408 | body dl, 409 | body table, 410 | body pre { 411 | margin-top: 0; 412 | margin-bottom: 16px; 413 | } 414 | 415 | body hr { 416 | height: 0.25em; 417 | padding: 0; 418 | margin: 24px 0; 419 | background-color: #e1e4e8; 420 | border: 0; 421 | } 422 | 423 | body blockquote { 424 | padding: 0 1em; 425 | color: #6a737d; 426 | border-left: 0.25em solid #dfe2e5; 427 | } 428 | 429 | body blockquote>:first-child { 430 | margin-top: 0; 431 | } 432 | 433 | body blockquote>:last-child { 434 | margin-bottom: 0; 435 | } 436 | 437 | body kbd { 438 | display: inline-block; 439 | padding: 3px 5px; 440 | font-size: 11px; 441 | line-height: 10px; 442 | color: #444d56; 443 | vertical-align: middle; 444 | background-color: #fafbfc; 445 | border: solid 1px #c6cbd1; 446 | border-bottom-color: #959da5; 447 | border-radius: 3px; 448 | box-shadow: inset 0 -1px 0 #959da5; 449 | } 450 | 451 | body h1, 452 | body h2, 453 | body h3, 454 | body h4, 455 | body h5, 456 | body h6 { 457 | margin-top: 24px; 458 | margin-bottom: 16px; 459 | font-weight: 600; 460 | line-height: 1.25; 461 | } 462 | 463 | body h1 .octicon-link, 464 | body h2 .octicon-link, 465 | body h3 .octicon-link, 466 | body h4 .octicon-link, 467 | body h5 .octicon-link, 468 | body h6 .octicon-link { 469 | color: #1b1f23; 470 | vertical-align: middle; 471 | visibility: hidden; 472 | } 473 | 474 | body h1:hover .anchor, 475 | body h2:hover .anchor, 476 | body h3:hover .anchor, 477 | body h4:hover .anchor, 478 | body h5:hover .anchor, 479 | body h6:hover .anchor { 480 | text-decoration: none; 481 | } 482 | 483 | body h1:hover .anchor .octicon-link, 484 | body h2:hover .anchor .octicon-link, 485 | body h3:hover .anchor .octicon-link, 486 | body h4:hover .anchor .octicon-link, 487 | body h5:hover .anchor .octicon-link, 488 | body h6:hover .anchor .octicon-link { 489 | visibility: visible; 490 | } 491 | 492 | body h1 { 493 | padding-bottom: 0.3em; 494 | font-size: 2em; 495 | border-bottom: 1px solid #eaecef; 496 | } 497 | 498 | body h2 { 499 | padding-bottom: 0.3em; 500 | font-size: 1.5em; 501 | border-bottom: 1px solid #eaecef; 502 | } 503 | 504 | body h3 { 505 | font-size: 1.25em; 506 | } 507 | 508 | body h4 { 509 | font-size: 1em; 510 | } 511 | 512 | body h5 { 513 | font-size: 0.875em; 514 | } 515 | 516 | body h6 { 517 | font-size: 0.85em; 518 | color: #6a737d; 519 | } 520 | 521 | body ul, 522 | body ol { 523 | padding-left: 2em; 524 | } 525 | 526 | body ul ul, 527 | body ul ol, 528 | body ol ol, 529 | body ol ul { 530 | margin-top: 0; 531 | margin-bottom: 0; 532 | } 533 | 534 | body li { 535 | word-wrap: break-all; 536 | } 537 | 538 | body li>p { 539 | margin-top: 16px; 540 | } 541 | 542 | body li+li { 543 | margin-top: 0.25em; 544 | } 545 | 546 | body dl { 547 | padding: 0; 548 | } 549 | 550 | body dl dt { 551 | padding: 0; 552 | margin-top: 16px; 553 | font-size: 1em; 554 | font-style: italic; 555 | font-weight: 600; 556 | } 557 | 558 | body dl dd { 559 | padding: 0 16px; 560 | margin-bottom: 16px; 561 | } 562 | 563 | body table { 564 | display: block; 565 | width: 100%; 566 | overflow: auto; 567 | } 568 | 569 | body table th { 570 | font-weight: 600; 571 | } 572 | 573 | body table th, 574 | body table td { 575 | padding: 6px 13px; 576 | border: 1px solid #dfe2e5; 577 | } 578 | 579 | body table tr { 580 | background-color: #fff; 581 | border-top: 1px solid #c6cbd1; 582 | } 583 | 584 | body table tr:nth-child(2n) { 585 | background-color: #f6f8fa; 586 | } 587 | 588 | body img { 589 | max-width: 100%; 590 | box-sizing: content-box; 591 | background-color: #fff; 592 | } 593 | 594 | body img[align=right] { 595 | padding-left: 20px; 596 | } 597 | 598 | body img[align=left] { 599 | padding-right: 20px; 600 | } 601 | 602 | body code { 603 | padding: 0.2em 0.4em; 604 | margin: 0; 605 | font-size: 85%; 606 | background-color: rgba(27,31,35,0.05); 607 | border-radius: 3px; 608 | } 609 | 610 | body pre { 611 | word-wrap: normal; 612 | } 613 | 614 | body pre>code { 615 | padding: 0; 616 | margin: 0; 617 | font-size: 100%; 618 | word-break: normal; 619 | white-space: pre; 620 | background: transparent; 621 | border: 0; 622 | } 623 | 624 | body .highlight { 625 | margin-bottom: 16px; 626 | } 627 | 628 | body .highlight pre { 629 | margin-bottom: 0; 630 | word-break: normal; 631 | } 632 | 633 | body .highlight pre, 634 | body pre { 635 | padding: 16px; 636 | overflow: auto; 637 | font-size: 85%; 638 | line-height: 1.45; 639 | background-color: #f6f8fa; 640 | border-radius: 3px; 641 | } 642 | 643 | body pre code { 644 | display: inline; 645 | max-width: auto; 646 | padding: 0; 647 | margin: 0; 648 | overflow: visible; 649 | line-height: inherit; 650 | word-wrap: normal; 651 | background-color: transparent; 652 | border: 0; 653 | } 654 | 655 | body .full-commit .btn-outline:not(:disabled):hover { 656 | color: #005cc5; 657 | border-color: #005cc5; 658 | } 659 | 660 | body kbd { 661 | display: inline-block; 662 | padding: 3px 5px; 663 | font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; 664 | line-height: 10px; 665 | color: #444d56; 666 | vertical-align: middle; 667 | background-color: #fafbfc; 668 | border: solid 1px #d1d5da; 669 | border-bottom-color: #c6cbd1; 670 | border-radius: 3px; 671 | box-shadow: inset 0 -1px 0 #c6cbd1; 672 | } 673 | 674 | body :checked+.radio-label { 675 | position: relative; 676 | z-index: 1; 677 | border-color: #0366d6; 678 | } 679 | 680 | body .task-list-item { 681 | list-style-type: none; 682 | } 683 | 684 | body .task-list-item+.task-list-item { 685 | margin-top: 3px; 686 | } 687 | 688 | body .task-list-item input { 689 | margin: 0 0.2em 0.25em -1.6em; 690 | vertical-align: middle; 691 | } 692 | 693 | body hr { 694 | border-bottom-color: #eee; 695 | } 696 | 697 | body { 698 | box-sizing: border-box; 699 | min-width: 200px; 700 | max-width: 980px; 701 | margin: 0 auto; 702 | padding: 45px; 703 | } 704 | 705 | @media (max-width: 767px) { 706 | body { 707 | padding: 15px; 708 | } 709 | } 710 | -------------------------------------------------------------------------------- /misc/CESignatureForm.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cs1302uga/cs1302-exercises/69993bed36afea70fb7c0e85623bbf972f2816b3/misc/CESignatureForm.docx -------------------------------------------------------------------------------- /misc/CESignatureForm.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cs1302uga/cs1302-exercises/69993bed36afea70fb7c0e85623bbf972f2816b3/misc/CESignatureForm.pdf -------------------------------------------------------------------------------- /misc/MacOS.md: -------------------------------------------------------------------------------- 1 | # Setup on macOS 2 | 3 | ![Approved for: Spring 2022](https://img.shields.io/badge/Approved%20for-Spring%202022-purple) 4 | 5 | The following instructions are designed to help get you up and running with macOS for development 6 | in CSCI 1302. The majority of the time, you will not be developing directly on your Mac. Instead, 7 | you will use your Mac to connect to a remote server via a terminal emulator. Once connected, the 8 | commands that you type and the programs that you run will be executed on the remote server instead 9 | of on your local machine. 10 | 11 | ## Setup `Ctrl-` 12 | 13 | If typing `Ctrl-` (i.e., `⌃Space`) changes your keyboard layout, then you will need to 14 | adjust some settings as that keyboard shortcut is used heavily in one of the programs we'll 15 | be using this semester. **If it doesn't, then you can skip to the next section.** 16 | 17 | To fix `Ctrl-`, go to the "Keyboard Settings" for your Mac, then select the 18 | "Shortcuts" tab. Find the shortcut that is mapped to `⌃Space` and either change it 19 | or disable it. Once you've made the change, you should be all set as far as 20 | `Ctrl-` is concerned. 21 | 22 | ## Open Terminal 23 | 24 | The macOS operating system comes with a [terminal emulator](https://en.wikipedia.org/wiki/Terminal_emulator) 25 | called [Terminal](https://support.apple.com/guide/terminal/welcome/mac). 26 | 27 | 1. **Open Terminal.** On your Mac, do one of the following: 28 | * Click the Launchpad icon 29 | 30 | in the Dock, type `Terminal` in the search field, then click **Terminal**. 31 | * Click the Spotlight icon 32 | 33 | in the upper-right corner of the menu bar (or press Command-Space), type `Terminal` in the search field, 34 | then click **Terminal**. 35 | * In the Finder 36 | , 37 | open the `/Applications/Utilities` folder, then double-click **Terminal**. 38 | 39 | 2. **Explore.** At its core, macOS is powered by a powerful Unix-like kernel called 40 | [Darwin](https://en.wikipedia.org/wiki/Darwin_(operating_system)). 41 | Using Terminal, you can interact with your system using most Unix commands. 42 | 43 | ## Use Option as Meta 44 | 45 | Some of the programs that you will use this semester will require the use of the META key. 46 | On some systems, this is the same as the ESC or ALT key. On a Mac, you can set Terminal to 47 | use the OPTION key as META. 48 | 49 | 1. **Open Terminal.** 50 | 2. In the menu bar, click **Terminal**, then click **Preferences**. 51 | 3. In the window that appears, select the **Keyboard** tab in the pane that appears to the right. 52 | 4. Near the bottom of the pane, check the box for **Use Option as Meta key.** 53 | - **The setting does not take effect immediately!** 54 | It will take effect the next time you open **Terminal**. 55 | 6. Quit the **Terminal** app by selecting **Quit Terminal** from the **File** menu (or by 56 | pressing ⌘Q). 57 | 58 | ## Install Homebrew 59 | 60 | [Homebrew](https://brew.sh) is a package manager for MacOS. It makes it really easy to install programs 61 | on your Mac via [Terminal](https://support.apple.com/guide/terminal/welcome/mac). 62 | 63 | 1. **Open Terminal.** 64 | 65 | 2. **Install Homebrew.** 66 | To do this, you will need to type a command at the prompt. 67 | 68 | 1. When presenting commands, we often prepend the start of a command line with a `$` 69 | to denote the shell prompt. The `$` lets you know that the line that follows is 70 | something that you should type into your terminal emulator at the shell prompt, 71 | which usually ends with `$` pr `%` followed by a white-space. 72 | **Do not type or copy the `$` before the command name as it is not part of the command.** 73 | 74 | 2. When installing Homebrew, the installer may ask you for a password. If it does, then 75 | it is referring to the password for your Mac. 76 | 77 | 3. To run the Homebrew installer, type the following command: 78 | 79 | ``` 80 | $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 81 | ``` 82 | 83 | 4. Homebrew must be installed to continue. If installation fails, inspect the messages emitted 84 | by the installer -- in most cases, it will tell you what you need to do in order to fix 85 | the issues that are preventing installation. 86 | 87 | 3. **Install Utilities via Homebrew.** Type the following command to install [git](https://git-scm.com/) 88 | and [wget](https://www.gnu.org/software/wget/): 89 | 90 | ``` 91 | $ brew install git wget 92 | ``` 93 | 94 | **If you run into issues with `brew install`**, then please try running `brew doctor` first to see 95 | if it has a suggested fix. If it does, then try the fix. If it doesn't or if it does but that doesn't 96 | resolve your issue, then you may need to ask Piazza or see instructor during office hours. 97 | 98 | ## Install XQuartz 99 | 100 | [XQuartz](https://www.xquartz.org) is an open-source version of the 101 | [X.Org X Window System](http://www.x.org/) that runs on MacOS. 102 | Installing XQuartz will enable you to forward the graphical user interface 103 | for remote programs that you write later in the semester to your local machine. 104 | 105 | 1. **Open Terminal.** 106 | 107 | 2. **Install XQuartz.** Type the following command: 108 | 3. 109 | ``` 110 | $ brew install --cask xquartz 111 | ``` 112 | 113 | 3. **Restart your Mac.** The best way to restart your Mac is to choose Restart from the Apple () menu. 114 | 115 |
116 | 117 | [![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC%20BY--NC--ND%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-nd/4.0/) 118 | 119 | 120 | Copyright © Michael E. Cotterell, Bradley J. Barnes, and the University of Georgia. 121 | This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License to students and the public. 122 | The content and opinions expressed on this Web page do not necessarily reflect the views of nor are they endorsed by the University of Georgia or the University System of Georgia. 123 | 124 | -------------------------------------------------------------------------------- /misc/NikeSetup.md: -------------------------------------------------------------------------------- 1 | # How to Connect to Nike & First Steps 2 | 3 | ![DEPRECATED](https://img.shields.io/badge/Deprecated-Do%20Not%20Use-red) 4 | 5 | Once you have your login information for Nike, open up a local terminal 6 | in your terminal emulator and execute the following command to connect: 7 | 8 | ``` 9 | $ ssh username@nike.cs.uga.edu 10 | ``` 11 | 12 | Be sure to replace username with the Nike username that was provided to you. 13 | In most cases, this is different from your MyID or email username. 14 | Note that when you type in your password, it will not display anything to the 15 | screen--this the expected behavior. Simply type in your password and hit return. 16 | If have trouble logging into Nike, then please contact support@cs.uga.edu 17 | as soon as possible. 18 | 19 | Once logged in, you will be in your home directory on Nike. 20 | You can see what it is with the `pwd` command. Now you can practice the commands 21 | from the reading. While connected, the commands that you execute will occur remotely 22 | on the Nike server. To exit, you may use the `exit` or `logout` commands. 23 | 24 | ## Changing your Password 25 | 26 | It is recommended that you change your password. 27 | This can be done using the `passwd` command. 28 | If you manage to change your password then forget what you changed it to, 29 | then contact support@cs.uga.edu as soon as possible so that they can reset your password. 30 | Please be aware that there might be a 24-48 hour delay and that you must have 31 | logged into https://sendfiles.uga.edu/ at least once before they can email you your new password. 32 | 33 | ## Setting up Java and Custom Prompt on Nike 34 | 35 | You are required to follow the steps below for this class. 36 | Please read them very carefully. You only need to do these once at the beginning of the semester. 37 | If you don't understand an instruction, the please ask in a follow-up discussion here on Piazza: 38 | 39 | 1. Login to Nike 40 | 41 | 1. Open (or create if it does not exist) your `~/.bash_profile` file using Emacs or Vi. 42 | **If you're not sure how to do this, then see this video:** 43 | 44 | https://youtu.be/zWQBqCSexQ0 45 | 46 | 47 | IMAGE ALT TEXT 48 | 49 | 50 | 51 | 1. Copy and paste the following into the bottom of the file (i.e., the following will become 52 | the contents of the file; if you simply paste this into the terminal at the prompt, 53 | then the desired changes will not persist): 54 | 55 | ``` 56 | # Use Oracle JDK Installation 57 | export JAVA_HOME=/usr/local/alt-java/jdk1.8.0_192 58 | # Update executable path 59 | export PATH=$JAVA_HOME/bin:$PATH 60 | # Use a custom prompt 61 | export PS1='\u@\h:\w$ ' 62 | alias emacs='emacs -nw' 63 | ``` 64 | 65 | 1. Save your `~/.bash_profile` file, then exit your text editor. 66 | 67 | 1. Logout of Nike, then log back in. You may notice that your prompt has changed--this is expected. 68 | 69 | 1. Check to make sure that you are setup to use the correct version of Java. 70 | 71 | ``` 72 | $ java -version 73 | java version "1.8.0_192" 74 | Java(TM) SE Runtime Environment (build 1.8.0_192-b12) 75 | Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode) 76 | ``` 77 | 78 | ``` 79 | $ javac -version 80 | javac 1.8.0_192 81 | ``` 82 | 83 | 1. That's it! You're good to go. If you have any problems, please ask on Piazza. 84 | -------------------------------------------------------------------------------- /misc/OdinSetup.md: -------------------------------------------------------------------------------- 1 | # How to Connect to Odin & First Steps 2 | 3 | ![Approved for: Fall 2021](https://img.shields.io/badge/Approved%20for-Fall%202021-blue) 4 | 5 | Almost all of your work this semester will be done on the departmental server, Odin. 6 | In order to login to Odin, you will first need to connect to UGA's remote access 7 | VPN. Instructions on how to connect to the VPN are found [here](https://eits.uga.edu/access_and_security/infosec/tools/vpn/). 8 | 9 | **Note:** The CSCI support staff have recommended connecting to `remote2.uga.edu` instead of 10 | `remote.uga.edu` to reduce network lag and improve your experience on Odin. 11 | 12 | Your username on Odin is your MyID and the password is the same one that is associated 13 | with your MyID. Once you are successfully logged into the VPN, open up a local terminal 14 | in your terminal emulator and execute the following command to connect: 15 | 16 | ``` 17 | $ ssh username@odin.cs.uga.edu 18 | ``` 19 | 20 | Be sure to replace username with your MyID. 21 | Note that when you type in your password, it will not display anything to the 22 | screen--this the expected behavior. Simply type in your password and hit return. 23 | If have trouble logging into Odin, then please contact support@cs.uga.edu 24 | as soon as possible. 25 | 26 | Once logged in, you will be in your home directory on Odin. 27 | You can see what it is with the `pwd` command. Now you can practice the commands 28 | from the reading. While connected, the commands that you execute will occur remotely 29 | on the Odin server. To exit, you may use the `exit` or `logout` commands. 30 | 31 | ## Setting up Java and Custom Prompt on Odin 32 | 33 | You are required to follow the steps below for this class. 34 | Please read them very carefully. You only need to do these once at the beginning of the semester. 35 | If you don't understand an instruction, the please ask in a for clarification on Piazza: 36 | 37 | 1. Login to Odin 38 | 39 | 1. Open (or create if it does not exist) your `~/.bash_profile` file using Emacs or Vi. 40 | **If you're not sure how to do this, then see the video below. Please note that we do not recreate 41 | this video each semester. The output from the instructor's screen may be slightly different from yours as 42 | we update to newer software versions regularly. However, the overall steps remain the same.** 43 | 44 | https://youtu.be/NieAaC23-3U 45 | 46 | 47 | IMAGE ALT TEXT 48 | 49 | 50 | 1. Copy and paste the following lines into the bottom of the file (i.e., the following will become 51 | the contents of the file; if you simply paste this into the terminal at the prompt, 52 | then the desired changes will not persist): 53 | 54 | ``` 55 | CS1302=/usr/local/mepcott/cs1302.profile; [[ -f $CS1302 ]] && . $CS1302 56 | ``` 57 | 58 | 1. Save your `~/.bash_profile` file, then exit your text editor. 59 | 60 | 1. Logout of Odin, then log back in. You may notice that your prompt has changed--this is expected. 61 | 62 | 1. Check to make sure that you are setup to use the correct version of Java. Remember, the `$` is the prompt from 63 | Odin. Your prompt may look different. Any text on the same line as the prompt should be entered by you. After you 64 | press `ENTER`, you should see the other lines as output. 65 | 66 | ``` 67 | $ java -version 68 | java version "11.0.10" 2021-01-19 LTS 69 | Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162) 70 | Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode) 71 | ``` 72 | 73 | ``` 74 | $ javac -version 75 | javac 11.0.10 76 | ``` 77 | 78 | 1. That's it! You're good to go. If you have any problems, please ask on Piazza. 79 | -------------------------------------------------------------------------------- /misc/Windows10.md: -------------------------------------------------------------------------------- 1 | # Setup on Windows 10 & 11 2 | 3 | ![Approved for: Spring 2023](https://img.shields.io/badge/Approved%20for-Spring%202023-magenta) 4 | 5 | The following instructions are designed to help get you up and running with a Windows 10 or 11 6 | PC for development in CSCI 1302. The majority of the time, you will not be developing directly on 7 | your PC. Instead, you will use your PC to connect to a remote server via a terminal emulator. Once 8 | connected, the commands that you type and the programs that you run will be executed on the remote 9 | server instead of on your local machine. 10 | 11 | ## Install MobaXterm 12 | 13 | For Windows 10, we recommend the use of a [terminal emulator](https://en.wikipedia.org/wiki/Terminal_emulator) 14 | called [MobaXterm](https://mobaxterm.mobatek.net). 15 | 16 | 1. Download and install the free Home version of MobaXterm (Installer edition) at the link presented below: 17 | 18 | **WARNING:** If you download a `.zip` file for one of the MobaXterm installers, then you need to fully 19 | extract the `.zip` file into a folder before attempting to install. Do not attempt to run the installer 20 | from within the `.zip` file. Instead, run the installer program from within the folder that you extract to. 21 | 22 | ![WARNING](img/in-zip-file.png) 23 | 24 | MobaXterm Website: https://mobaxterm.mobatek.net/download-home-edition.html 25 | 26 | ## Setup Backspace (Required) 27 | 28 | MobaXterm often modifies the backspace key to send `C-h` (`^H`) instead of the 29 | proper backspace key code. This can cause problems if you regularly use the 30 | backspace key to perform backward deletions (very common). To fix this issue, 31 | follow these steps: 32 | 33 | 1. Open **MobaXterm**. 34 | 2. In the menu bar, click **Settings**, then click **Configuration**. 35 | 3. In the window that appears, select the **Terminal** tab if not selected already. 36 | 4. Near the bottom of the window, make sure the checkbox for **Backspace sends ^H** is 37 | *unchecked*, then click the **OK** button to close the window. 38 | - **The setting does not take effect immediately!** 39 | It will take effect the next time you open **MobaXterm**. 40 | 6. Quit **MobaXterm** app by selecting **Quit** from the **Terminal** menu. 41 | 42 | If this is the first time you are reading these instructions, then make a note 43 | to yourself to return to this section if you encounter backspace issues with 44 | MobaXterm in the future. The steps below should only be taken if you 45 | are returning here to resolve a backspace issue: 46 | 47 | 1. First, try repeating the steps above to *uncheck* the **Backspace sends ^H** 48 | setting -- remember to quit and relaunch **MobaXterm** before attempting to 49 | verify that your issue is fixed. 50 | 51 | 2. If you still encounter backspace issues, then **MobaXterm** may not be honoring 52 | the *unchecked* state of the **Backspace sends ^H** setting. To remedy that, 53 | open **MobaXterm**, launch a local terminal, but **do NOT connect to Odin**. 54 | Instead, enter the commands below to deploy a configuration file that should 55 | fix the issue: 56 | 57 | ``` 58 | $ wget http://cobweb.cs.uga.edu/~mec/cs1302/mobaxterm.bashrc 59 | $ mv mobaxterm.bashrc .bashrc 60 | $ source .bashrc 61 | ``` 62 | 63 | Now, you should be able to `ssh` into Odin with MobaXterm and have your 64 | beautiful backspace key work as intended! 65 | 66 | ## Setup `Ctrl-` and `Ctrl-X` (Required) 67 | 68 | In newer versions of MobaXterm, `Ctrl-` (`Ctrl + SPACE`) and `Ctrl-X` (`Ctrl + Shift + X`) 69 | may be mapped to MobaXterm-specific shortcuts. This will cause problems when it comes time to 70 | work in Emacs as those key combinations are used quite often. Please update 71 | your MobaXterm settings by doing the following steps: 72 | 73 | 1. Select "Settings" from the menu bar, then "Keyboard shortcuts". 74 | 1. In the window that appears, find and select the shortcut for "Ctrl-SPACE" or "Ctrl + SPACE". 75 | 1. Once selected, find the "Edit keyboard shortcut" dropdown list and 76 | change it to "" or `` (which should be at the top of the list). 77 | 1. Repeat the previous step on the shortcut for "Ctrl-X" or "Ctrl + Shift + X". 78 | 1. Select "OK". The issue should now be resolved. 79 | 80 |
81 | 82 | [![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC%20BY--NC--ND%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-nd/4.0/) 83 | 84 | 85 | Copyright © Michael E. Cotterell, Bradley J. Barnes, and the University of Georgia. 86 | This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License to students and the public. 87 | The content and opinions expressed on this Web page do not necessarily reflect the views of nor are they endorsed by the University of Georgia or the University System of Georgia. 88 | 89 | -------------------------------------------------------------------------------- /misc/img/in-zip-file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cs1302uga/cs1302-exercises/69993bed36afea70fb7c0e85623bbf972f2816b3/misc/img/in-zip-file.png --------------------------------------------------------------------------------