C++, please check the inputs pictured below to get correct outputs.
Problem Statement: The Super Bowl is among the world's most-watched single sporting events and frequently commands the largest audience among all American broadcasts during the year. Numerals I through IV were added later for the first four Super Bowls. You will write a C++ program that repeatedly asks the user to input a year for the Super Bowl, and displays the corresponding Super Bowl with Roman Numeral, until the user enters either " Q " or " q " to quit your program. You need to define the following three constants for your program: // The first Super Bowl was hold in 1967 (at Los Angeles Memorial Coliseum) const int START_SUPERBOWL =1967; // define the correct range for Roman Numerals: [MIN_ROMAN, MAX_ROMAN] const int MIN ROMAN =1; const int MAX_ROMAN =3999; You are given a Demonstration program during Today's Lecture, which implements a "Roman Numeral Converter", however it only works for one-digit or two-digit decimal numbers (at the range of [1,99]). Roman Numbers. (The following description is from ZyBook Programming Project 3.21.13). The Roman number system has digits Numbers are formed according to the following rules: (1) Only numbers up to 3,999 are represented. (2) As in the decimal system, the thousands, hundreds, tens, and ones are expressed separately. (3) The numbers 1 to 9 are expressed as As you can see, an I preceding a V or X is subtracted from the value, and you can never have more than three I's in a row. (4) Tens and hundreds are done the same way, exeept that the leteers X, L, C and C, D, M are used instead of I, V, X, respectively. As part of the simpler smaller sub-problem to solve in the given demo program, it can only convert the number at the range of [1,99] to its corresponding Roman numeral. For example, if you run this program with an input number, say 68 , and it will convert 68 to Roman numeral, LXVIII. In this project, you need to (1) ask the user to input a four-digit decimal number (representing a year); (2) if the input year is at the range of [1967, 1967+3999-1], your program should display the Super Bowl with the Roman Numeral representation: 1967 is Super Bowl I; 1968 is Super Bowl II; 1969 is Super Bowl III; 1970 is Super Bowl IV...; 2022 is Super Bowl LVI ; 2023 is Super Bowl LVII ... and so on. Based on the source code of Demonstration program, you should modify the solution to a smaller problem into the complete solution to the bigger problem in this Project. You also need to follow the requirements shown below. Special Requirements: 1. You are required to define the following function in Project 1, named roman_numerai (), so that main function can call this function to solve the problem: / Purpose: convert the integer n to its corresponding Roman Nuneral n must be between 1 and 3999 it returns string form of the Ronan Numeral eparam n int: representing the number to convert into Roman Nuneral ereturn string: representing the corresponding Roman Nuneral for n */ string roman_numeral (int n ) ; (Please note that you can define other functions if you think you need to reuse the same block of code more than twice.) 2. Design user-friendly interface: your program should print out the follow information when collecting the user input: The Super Bowl is the annual final playoff game of the NFL to determine the league champion. * The first Super Bowl took place on January 15, 1967. * Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. * If you had a time machine, which year of Super Bow1 * you want to attend (19675965) ? Please enter the year you want to attend (click Q or q to quit): However, you need to use your name to replace the instructor's name shown above. Why the range of the years is from 1967 to 5965 ? Because the first Super Bowl took place in 1967, and the largest valid Roman number is 3999: starting from 1967, the largest year which can be represented using Roman number is 1967+39991=5965. Think about how to avoid "Magic Number" in your program! 3. User input validation is required for this Project, which means that you can no longer assume that the user will always input "Good Data". Sample outputs are pictured below. Sample output I: The Super Bowl is the annual final playoff game of the NFL to determine the league champion. * The first Super Bowl took place on January 15, 1967. * Super Bowl I (Los Angeles Memorial Coliseum) 1967 * This Roman Numerals Convertor is written by Yi Pike. * If you had a time machine, which year of Super Bow1 * would you want to attend (1967 - 5965)? Please enter the year you want to attend (click Q or q to quit): Q4l Back to 2023, and have a great day! Sample output 2 : The Super Bowl is the annual final playoff game of the NFL to determine the league champion. * The first Super Bowl took place on January 15, 1967. * Super Bowl I (Los Angeles Memorial Coliseum) 1967 * This Roman Numerals Convertor is written by Yi Pike. * If you had a time machine, which year of Super Bowl * would you want to attend (1967 - 5965) ? Please enter the year you want to attend (click Q or q to quit) : Two Thousand and threet please use four-digit number to represent a year (1967-5965)! The Super Bowl is the annual final playoff game of the NFL to determine the league champion. * The first Super Bow1 took place on January 15, 1967. * Super Bowl I (Los Angeles Memorial Coliseum) -> 1967 * This Roman Numerals Convertor is written by Yi Pike. - It you had a time machine, which year of Super Bowl - vould you want to attend (1967 - 5965)? Please enter the year you want to attend (eliek Q or q to quit) : you mean 2023? Please use four-digit number to represent a year (19675965), The Super Bowl is the annual tinal playoff game of the NFL to determine the league champion. * The first Super Bowl took place on January 15, 1967. - Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. * If you had a time machine, which year of Super Bow1 - would you want to attend (1967 - 5965) ? Please enter the year you want to attend (click Q or q to quit) : 19664 The time machine wil1 bring you to the year of 1966 : Wait!l! The year you enter is Too ENRLIgR than the first Super Bowl! The Super Bowl is the annual tinal playotf game of the NFL to determine the league champion. - The first Super Bow 1 took place on January 15, 1967. - Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. * If you had a time machine, which year of Super Bowl * would you want to attend (1967 - 5965)? Please enter the year you want to attend (click Q or q to quit) : 1978e2 The time machine wi.1 bring you to the year of 1978 : Wait!l! The year you enter is TOo EARLIgR than the first Super Bowl! The Super Bowl is the annual final playoff game of the NFL to determine the league champion. - The first Super Bow 1 took place on January 15, 1967. * Super Bow1 I (Los Angeles Memorial Coliseum) 1967 * This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of Super Bow 1 - would you want to attend (1967 - 5965) ? Please enter the year you want to attend (click Q or q to quit) : 1967 is ok? 4 The time machine wi11 bring you to the year of 1967 : It is super Bow1 I We wil1 help you find out the result and other interesting information... next time:) The Super Bowl is the annual tinal playoff game of the NFL to determine the league chanpion. The first super Bow1 took place on January 15, 1967. - Super Bowl I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of super Bowl - would you want to attend (1967 - 5965) ? Please enter the year you want to attend (eliek Q or q to quit): 2000 and latert The time machine wil1 bring you to the year of 2000 : It is Super Bowl xxcxrv We will help you find out the result and other interesting information... next time:) The Super Bowl is the annual tinal playotf game of the NFL to determine the league chanpion. The first Super Bow1 took place on January 15, 1967. - Super Bowl I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of super Bow1 - would you want to attend (1967 - 5965) ? Please enter the year you want to attend (click Q or q to quit): 2022.58 ok? The time machine wi11 bring you to the year of 2022 : It is Super Bowl LVI We wil1 help you f ind out the result and other interesting information... next time:) The Super Bowl is the annual tinal playorf game of the NFL to determine the league chanpion. The first Super Bow1 took place on January 15, 1967. - Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of super Bow1 - would you want to attend (1967 - 5965) ? Please enter the year you want to attend (elick Q or q to quit) : 20264 The time machine wi11 bring you to the year of 2026: It is super Bowl Lx The Super Bowl is the annual final playoff game of the NFL to determine the league champion. The first Super Bowl took place on January 15, 1967. - Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of super Bow1 - would you want to attend (1967 - 5965)? Please enter the year you want to attend (click Q or q to quit) : 20194 The time machine wil1 bring you to the year of 2019: It is super Bowl LIII We wil1 help you find out the result and other interesting information... next time:) The Super Bowl is the annual final playoff game of the NFL to determine the league champion. - The first Super Bow1 took place on January 15, 1967. - Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of super Bowl - would you want to attend (1967 - 5965)? Please enter the year you want to attend (click Q or q to quit) : 20334 The time machine wil1 bring you to the year of 2033: It is super Bowl LXVII We will help you f ind out the result and other interesting information... next time:) The Super Bowl is the annual final playoff game of the NFL to determine the league champion. - The first Super Bowl took place on January 15, 1967. - Super Bow1 I (Los Angeles Memorial Coliseum) 1967 - This Roman Numerals Convertor is written by Yi Pike. - If you had a time machine, which year of super Bow1 * would you want to attend (1967 - 5965)? Please enter the year you want to attend (click Q or q to quit) : 2045+ The time machine wil1 bring you to the year of 2045: It is Super Bowl Lxxix We wil1 help you find out the result and other interesting information... next time:)