Question: Instructions: Please create a CH program to solve the following problem. Submit electronic (Canvas Dropbox) copies of your program source code and two or more

 Instructions: Please create a CH program to solve the following problem.
Submit electronic (Canvas Dropbox) copies of your program source code and two
or more sample runs to me by the deadline. Late submissions will

Instructions: Please create a CH program to solve the following problem. Submit electronic (Canvas Dropbox) copies of your program source code and two or more sample runs to me by the deadline. Late submissions will not be accepted. Documentation requirements follow the problem specification. 1. Write a program that enables a customer to make a one-time E-ZPass payment. The program begins by prompting the customer to enter his or her first name, last name, and payment amount. Next, it prompts the customer to enter his or her credit card type, credit card number (16-digit number consisting of non-zero digits), and expiration date. Finally, it displays a payment summary consisting of the customer's first and last name, payment amount (preceded by a dollar sign and rounded to two decimal places), card type, last 4 digits of his or her credit card number (preceded by 12 asterisks to mask the first 12 digits), and expiration date. Your program output must strongly resemble the sample runs at the end of this document. You are free to use your own sample data, however. Notes: You must make the variable to store the credit card number type long long int (section 2.6) as shown below. long long int cardNumber; You must use the modulus operator (%, section 2.14) to retrieve the last 4 digits of the credit card number. To display the payment summary with the user data aligned as shown in the sample runs, I recommend using the '\t' (tab) character that we discussed previously in class. To display the payment amount rounded to two decimal places, place the following cout statement before the cout statement that displays it. cout . Documentation Requirements: Each program source code file must have a header at the beginning of the program containing the following: Name of author, PSU e-mail address of author, name of course, assignment number and due date, name of file, purpose of program, compiler and operating system used, references Example: Author: Wanda Kunkle E-mail: wmk12@psu.edu Course: CMPSC 121 Assignment: Lab 3 Due date: 2/12/2021 File: E_ZPassPayment.cpp Purpose: Prompt the customer to enter first and last name, payment amount, and credit card information, then display the payment summary, formatted as specified in the problem description. Compiler: MS Visual Studio Community 2019 Operating system: MS Windows 10 Home References: Class demo programs (include any web page references here) Welcome to the Pennsylvania Turnpike E-pass one-time payment service. Please enter the information requested. First Name: Doctor Last Name : Who Payment Amount: $999.99 Credit Card Type (e.g., Mastercard): MasterCard Credit Card Number (e.g. 5211344598756412): 9876123455769919 Expiration Date (e.g., 10/2022): 12/2099 Payment Summary: Customer Name: Doctor who Payment Amount: $999.99 Card Type: MasterCard Card Number: **********9919 Exp Date: 12/2099 Thank you for your payment! den State Warrisburg Spring 2021\CMPSC 121 ab Projects\Lab 3\Lab_3_Solution Debu g\20112) exited Press any key to close this window. eeeeeee welcome to the Pennsylvania Turnpike E-ZPass one-time payment service. Please enter the information requested. First Name: Robert Last Name : Plant Payment Amount: $250.00 Credit Card Type (e.g., MasterCard): Visa Credit Card Number (.95211344598756412): 1234567898761122 Expiration Date (e... 10/2022): 01/2025 Payment Summary: Customer Name: Robert Plant Payment Amount: $250.00 Card Type: visa Card Number: tee EXP Date: 01/2025 Thank you for your payment! Venn State Warrisburg Spring 3921 MPSC 121 abofrojects\lab 3\Lab_3_solution\Debe Press any key to close this window

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!