Extra Credit Assignment

Based on the results of the first test, I am going to offer another opportunity to earn a bit of extra credit. For this project, you need to set up a project in your homework repo named “exexam1extra” and create this project. I will run “make clean”. “make”, amd “make run” to check that this program works as it should. If these three commands do not work, no extra credit will be given.

After getting the code running, create a new folder in the project folder named “docs”. Place a tetx file in that directory that provides an explaination of why each line in each file is included in the code. I want to see that you know why every line is needed in the file.

Here is the code you need:

// Copyright 2018 by Roie R. Black
// Date: 22 Oct, 2018

#include "message.h"

#include <string>

int main(int argc, char *argv[]) {
	std::string msg = "Simple C++ Test Program";


    return 0;
#pragma once
// Copyright 2018 by Roie R. Black

#include <string>

void message(std::string msg);
// Copyright 2018 Roie R. Black

#include "message.h"

#include <iostream>

void message(std::string msg) {
    std::cout << msg << std::endl;

Why, not What

One important item here. I am not interested in exactly what each line does. That is not sufficient for learning much. The real issue is thid: Do you understand why you need to write each line. Write that up and you will actually be on your way to learning this language.

What is this worth?

This will count as an extra 15 poiints toward your final 1000 points. The points will be added to your final scores, but the value of this assignment will be listed as zero on Blackboard.