Skip to content

UoL-SoCS/cmp9133-w1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMP9133 - Workshop 1

University of Lincoln
School of Computer Science
CMP9133 – Advanced Programming

Task1: Create a Github Account

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 😀

Task2: Setup coding environment

  1. Access the Workshop environment at the following link. You will be greeted by the following message, and you need to accept the assignment. image
  2. After having accepted the new assignment, please open your development environment by clicking on the black button ("Open in GitHub Codespaces")) image
  3. 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 image
  4. (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.

Task3: Hello, World!

As the first task for this module, you need to implement a very simple script that outputs in console the string Hello, World!

Instructions:

  1. To do so, please modify the function getHelloWorld() in the file hello_world.cpp.

  2. Open the terminal from the View -> Terminal menu

  3. Compile the file project by typing make and pressing Enter on your keyboard. If the compilation succeded, a new file called a.out should appear among the list of files in the project

    image

  4. Run the executable by typing in console ./a.out In case your solution passed the test, you should obtain something like the following: image

    Differently, if your implementation is not acceptable, you may get something like the following image 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.cpp file to better understand what output the tests expects.

Task 4: Submit your solution

  1. 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:

    image

  2. At this point, we want to commit the modification we made to the file hello_world.cpp. As such, click on the + symbol appearing when you hover with your mouse on this file. By doing so, we will add the hello_world.cpp file to the list of files staged for commit:

    image

  3. 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:

    image

  4. Now press on the small arrow point up for pushing your changes to the cloud and submit your solution.

    image

  5. 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.

    image

NOTE

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.

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages