In step A you need to write the necessary files so that the following commands willwork without compiling errors:

computer science

Description

Write a function that draws a snowman! A detailed definition of the input and output is here: https://codegolf.stackexchange…


To see how the function should work, see the attached Demo.cpp file.


In step A you need to write the necessary files so that the following commands willwork without compiling errors:


make demo

./demo

make test

./test

You must write the following files:


snowman.hpp - function title.

snowman.cpp - basic implementation of the function - does not have to be complete - just need to be compiled.

Test.cpp - unit-tests in doctest format. Detailed tests should be written and end cases addressed.

An example of testing can be seen in the TestExample.cpp file, but many more tests need to be written.

In the assignments in this course we write the tests before the exercise, so most of the tests will fail and that's fine - the full exercise will be written in part B of the assignment.

It is recommended to make sure that the following command ran without warnings (to run clang-tidy must be installed):


make tidy

Note: Do not modify existing files, only add new ones. The automated testing system replicates all existing files on top of the solution you are submitting, so any changes you make to existing files will be deleted.

Instruction Files

Related Questions in computer science category