In case you don't have a GitHub account, you can create one at this link.
You MUST use always the same GitHub account when solving the assessments for this module, since we will keep a list of tuples <student_id, student_name, student_surname, github_id> and we allow submission only from one account per student.
Having said so, please fill this form before continuing with the tutorial 😀
- Access the Workshop environment at the following link.
You will be greeted by the following message, and you need to accept the assignment.

- After having accepted the new assignment, please open your development environment by clicking on the black button ("Open in GitHub Codespaces"))

- After some loading time, an instance of Visual Studio Code should be visible within your browser, similarly to what you can see in the following image

- (Optional) If you are already familiar with VS Code and you have linked it to your GitHub account previously, you may log in to synchronise your own settings and extension.
As the first task for this module, you need to implement a very simple script that outputs in console the string Hello, World!
Instructions:
-
To do so, please modify the function
getHelloWorld()in the filehello_world.cpp. -
Open the terminal from the
View -> Terminalmenu -
Compile the file project by typing
makeand pressingEnteron your keyboard. If the compilation succeded, a new file calleda.outshould appear among the list of files in the project -
Run the executable by typing in console
./a.outIn case your solution passed the test, you should obtain something like the following:
Differently, if your implementation is not acceptable, you may get something like the following
Carefully inspecting the console may suggests how the implementation must look like in order to pass the test.
Similarly, you can also check the hello_world_test.cppfile to better understand what output the tests expects.
-
When you are happy with your solution, it's now time to submit it online for being graded. You may see on the left an icon looking like a tree with a badge on it. Clicking on it will open a side menu for performing version control on our project:
-
At this point, we want to
committhe modification we made to the filehello_world.cpp. As such, click on the+symbol appearing when you hover with your mouse on this file. By doing so, we will add thehello_world.cppfile to the list of files staged for commit: -
We now need to specify a message for our commit. It must be anything informative about what we have done. You can simply type "Solution" in the text box and then press the green button. You should see now there are some files that need to be syncronised between our project and the remote:
-
Now press on the small arrow point up for pushing your changes to the cloud and submit your solution.
-
You can now check on the Workshop page if you actually passed the test run in the cloud and graded. You should get an image similar to the following one, with a green tick or a red cross next to your submission depending if you passed the test or not. You can click on it to see more details.
The tests files are protected, meaning that if you try to modify them to pass the test, this will be notified to us visually, with a label next to your submission. As a result, even in the case you successfully pass the test, we will consider you didn't make any submission and you will incur into a score of 0 for this specific workshop.






