Question
Coin-Operated Software Due Tuesday, February 18 at 8 a.m. CSE 1325 - Spring 2020 - Homework #4 - 1 - Rev 2 Assignment Overview Now
Coin-Operated Software Due Tuesday, February 18 at 8 a.m. CSE 1325 - Spring 2020 - Homework #4 - 1 - Rev 2 Assignment Overview Now that we've discovered the Rule of 3 - if you need a destructor, copy constructor, or copy assignment operator, you likely need all 3 - let's put them to good use! We'll model a simple US coin in 4 sizes - penny ($0.01), nickel ($0.05), dime ($0.10), or quarter ($0.25), with the year it was minted and some associated notes (such as its condition and history), as a numismatist (coin collector) might want when cataloging the coins in their collection. Full Credit In your git-managed Ubuntu Linux 18.04 directory cse1325/P04/full_credit, write a Coin class matching the following UML class diagram. IMPORTANT: Note that test.cpp and logger.h are provided at cse1325-prof/P04/full_credit for your use. Note that Coin_size is an enum class, not a plain enum, and serves as the type for Coin::_size. Overload operator<< for Coin_size, streaming "penny", "nickel", "dime", and "quarter" for the respective values, and throwing a runtime error for any other value. (No other value is currently possible, but you never know when someone might add "DOLLAR" and forget to cover that in operator<> for both Coin_size and Coin.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started