Skip to content

GitHub Classroom example for autograding C++ input/output exercises.

License

Notifications You must be signed in to change notification settings

markpatterson27/Simple-Cpp-Exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple C++ Exercises

points bar

In this exercise, learners/lecturers will write simple C++ programs that accept user input and then output responses to the command line. Learners will then test their programs by pushing them to their GitHub repo and checking the output from automated tests.

Exercise 1

  1. Using the HelloWorld.cpp file, create a program that outputs "Hello World!".

  2. Push your changes back to your assignment GitHub repo. Remember to try to make your commits atomic and your commit messages descriptive.

  3. Wait a minute for the tests to run. Refresh the repo page to see if you have completed the exercise successfully. You should score 10 marks if the test passes.

Exercise 2

  1. Using the YourName.cpp file, create a program that asks the user for their name.

  2. The program should then output the text "Your name is " followed by the user's name.

  3. Push your changes back to your assignment GitHub repo. Remember to try to make your commits atomic and your commit messages descriptive.

  4. Wait a minute for the tests to run. Refresh the repo page to see if you have completed the exercise successfully. You should score 10 marks if the test passes.

Exercise 3

  1. Using the Sum.cpp file, create a program that asks the user to enter 2 integers.

  2. The program should then output the sum of the 2 numbers.

  3. Push your changes back to your assignment GitHub repo. Remember to try to make your commits atomic and your commit messages descriptive.

  4. Wait a minute for the tests to run. Refresh the repo page to see if you have completed the exercise successfully. You should score 10 marks if the test passes.

About

GitHub Classroom example for autograding C++ input/output exercises.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages