Due Date: Friday, September 18, 2020 at 9:00 pm.
We are using Microsoft Teams as the delivery medium for the course.
Login into the CS 136 Microsoft Teams page to ensure that you have access.
The University of Waterloo uses a Central Authentication Service (CAS) to authenticate users. The associated username/password-combination is sometimes referred to as your WatIAM credentials. These are the credentials used to log into Quest for example.
Some tools we are using in CS 136 require your
student.cs credentials, for example, when logging into Seashell. Technically, these are different than your WatIAM credentials, and you can have a different password in the
student.cs environment. For security reasons, it is recommended to use a different password in each environment. Otherwise, it is easier to become the victim of an attack like the one on the Canada Revenue Agency less than a month ago. To choose a secure yet easy to remember passwords (passphrases actually), your can use diceware. There are more information about diceware available online.
It is also possible that you have not yet set your password for the
student.cs environment (which can create problems). This question ensures that you can log in to the
q2-credentials. You should see the file
secret.txtto contain the secret word.
SUBMIT QUESTIONto submit [q2-credentials] to Marmoset.
In CS 136, we have developed an online environment called Seashell in which you can write, test and submit your assignments. To access it, go to this website.
Note: This uses the same environment used to test and evaluate your assignment submissions. We recommend that you use this environment to develop your programs for CS 136. Other environments may behave differently and we will not provide any support for other environments.
Note: If you have taken CS 136 before or have launched Seashell previously, you may have projects from previous terms. Before you start working on this assignment, you should archive your old seashell projects. To do this, click on the help button at the top right of the seashell home page and then click 'Archive all projects' under Cluttered old projects?. If you are using Seashell for the first time, this operation is harmless.
Please report any issues with Seashell immediately to firstname.lastname@example.org.
q3-marmoset(you should see several files already there).
runme-racket.rktand follow the instructions in that file (click
SET AS ⧁ FILE, press the
RUN ⧁button, etc.).
runme-c.cand follow the same instructions.
my-numbers.txtto insert your student number, Racket magic number and C magic number. Note that you do not have a secret number yet, so leave it as
SUBMIT QUESTIONto submit [q3-marmoset] to Marmoset. Ignore any "late" warnings: the deadline for this question is intentionally set early so you can see your results right away.
1/1. This means that your assignment has passed the basic and simple public test. It does not mean that your code is correct or that it has passed any of the secret tests. Note that it often takes Marmoset several minutes to test your file. If it says "not tested yet", then be patient and refresh your browser after a few minutes.
In CS 136, you are going to be working with I/O (input and output) and Seashell has a testing framework for testing files with I/O.
RUN the program. It expects you to enter input on the console. The console typically appears to the right of your code window. Try entering some numbers. Click on the console window and start typing. For each number you input, it should output another number. To stop inputting numbers, press
CTRL + D or
CMD + D to send the
EOF signal or press the
Seashell has two "modes" of running. When you click the
[RUN ⧁] button, it expects input from the console. When you click on the
[I/O TEST] button, it reads in input from input file(s).
simple.infile, and then click on the
[I/O TEST]button. Notice that the test fails! Seashell will run the program as though you had entered the contents of
simple.inon the keyboard, and then verify that the program output matches the contents of the
simple.expectfile. Since the provided
simple.expectfile is empty, the output does not match and the test fails.
simple.expect file so that it contains what you would expect the program to output for the given input in the
simple.in file (note that there is an empty line after the last number.):
12345678 1337 0 4070
[I/O TEST]button again and ensure that your simple test passed.
primes.in, enter the first five prime numbers (starting with 2) each on its own line.
primes.expectfile so that it contains what you would expect the program to output for the
primes.ininput, and ensure that this test passes.
In CS 136, you use Marmoset to view your results for our secret tests. However, Marmoset does not have the ability to provide hand-marking feedback.
For questions that will be hand-marked, we will be using the MarkUs system.
After an assignment deadline, we automatically submit your assignment to MarkUs. For this assignment, we have submitted a "fake" assignment for you.
markus.txtto enter your WatIAM username and your "Secret Code".
In this question, you are required to complete a questionnaire that demonstrates you understand the issues relating to Academic Integrity.
You also are required to complete an integrity statement. For most of the questions in this course, you will be required to complete an integrity statement, and if you do not complete the statement, your assignment will not be graded.
secret.txtin [q7-piazza] to contain the secret word.