C++ - Simple example of using classes and header files.
Write a program that displays the roman numeral equivalent of any decimal number between 1 and 20 that the user enters. The roman numerals should be stored in an array of strings and the decimal number that the user enters should be used to locate the array element holding the roman numeral equivalent. The program should have a loop that allows the user to continue entering numbers until an end sentinel of 0 is entered.
Input validation: Do not accept scores less than 0 or greater than 20.
My code works correctly in one main.cpp, but how could I split this up using a separate class and header file? It's supposed to help us understand object-oriented programming. Thanks!
Please see the attached... View the full answer