Write a simple program in C++ to collect data from the user, validate it, do the required computations, and display the results.
Scenario:
1. The program produces a receipt . It requires the following information (data entry) from the user:
Customer first name, customer last name, customer credit card name (Visa, Mastercard, etc.) , credit card expiration year, credit card expiration month, credit card number, type of gas (regular, premium), number of gallons you purchase
2. The program validates the expiration year It will accept any year including and after 2023 and rejects any year prior to 2023). If the entry is rejected it will request re-enter.
3. The program calculates the gas charge based on the following:
Regular: 4.00 dollars
Premium: 5:00 dollars
3. The program will display the following information:
Customer last name, name of the credit card, number of gallons, total cost
4. The program displays this message ( Do you want to print a receipt? Yes or No)
5. If the customer enters Yes, the program will print the receipt, If the customer enters No, the program displays Thank you, See you again
6. Please test the program with a minimum of three sets of data
7. Submit the program file and all screen captures for the process and results)