Question: Write a program in C++ with the following information: Class Design The class ScoreSheet should hold the scores for the 3 colours, the name of

Write a program in C++ with the following information:

Class Design The class ScoreSheet should hold the scores for the 3 colours, the name of the player, the number of failed attempts and the overall score. Give the class ScoreSheet a print function that accepts an std::ostream and inserts the score sheet formatted as in the above example into the stream. You need to implement and make use of a print function in the structure Dice. Add a constructor that accepts the name of a player as a std::string. A score should be entered by the function score which accepts a vector of the structure Dice and the user selected colour and position counted from the left. Colour should be a scoped enumeration with the values RED, YELLOW and BLUE. The class should be defined in the header scoresheet.h and the methods in the source file scoresheet.cpp. Implement the test driver as a main routine with the class ScoreSheet but with a compile switch TEST_SCORESHEET.

an empty score sheet should look like this:

Write a program in C++ with the following information: Class Design The

Player name: Red 1%%IXX1 % % 1 1 1 1 Yellow Blue 1196 % lxx1 1 1 196 % Failed throws Player name: Red 1%%IXX1 % % 1 1 1 1 Yellow Blue 1196 % lxx1 1 1 196 % Failed throws

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!