The general workflow will be to:
- Follow the assignment link to create a version of the repo in your GitHub account (you've done this already!)
- Use
git cloneto clone your repository on the machine you'll be using to write/edit code - Edit code and test on your machine
- Use
git commiton your local machine to commit local changes to the local repository - Use
git pushon your local machine to push your local changes back up to the GitHub hosted repository - Login to GitHub and see if your code passed the automated tests!
This workflow is very similar to workflows used in professional software engingeering environments!
This one is really simple! Just edit hello.cpp to remove the "C way" of printing. The original code outputs:
Hello, World, I'm back in C land.
Hello, World! I've upgraded to C++
Your updated version should just output:
Hello, World! I've upgraded to C++
This one is still simple, but will require a little more thought (not too much!). The original code asks the user for their first name and then prints out a personalized hello message (in the example I typed in my name after the program prompted me):
What's your first name? Vikash
Hello Vikash, it's nice to meet you!
Your job is to ask the user for their first and last name and to print it out (again, in this example I typed my name after the program prompted me):
What's your first and last name? Vikash Gilja
Hello Vikash Gilja, it's nice to meet you!
Note: For this problem, you only need to handle the condition in which the first and last name are single words (i.e. there is no whitespace in the middle of the first and/or last name).
For this warmup assignment, we provide a few simple tests:
hello: Compile Test: Doeshello.cppcompile cleanly?hello: Output Test: Does the compiledhelloprogram output the correct text?personal_hello: Compile Test: Doespersonal_hello.cppcompile cleanly?personal_hello: Output Test: Does the compiledpersonal_helloprogram output the correct text after receiving valid input?
Note: Initially, the compile tests will pass, but the output tests will fail. If you pass all tests, you'll receive full credit for this assignment.