Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please Design 3 c + + program named 'yourName _ PaymentSystem' for a payment system simulation. The program should include a class 'Payment' with the
please Design c program named 'yourNamePaymentSystem' for a payment system simulation. The program should include a class 'Payment' with the following PRIVATE attributes:
Payment ID
Payee's Name
Payment Date and Time year month, day, hour, minute
Payment Amount
Payment Status
Your task is to create a payment record for one payee using the 'new' operator.
Once you have recorded the basic information of the payment Payment ID payee's name, payment date and time, and payment amount the program should automatically determine the payment status based on the current date and time. If the payment date is in the past, the status should be set to 'Processed. If the payment date is in the future, the status should be set to 'Pending'
The program should display the payment information, including the payment status. If the payment is pending, the program should inform the user of the remaining time until the payment is processed.
The program will utilize a binary search to locate a specific payment based on the Payment ID It should then display the detailed payment information, including the payment status and any additional information based on the status.
Input Validation:
The payment amount must be greater than zero.
The month must be an integer number between and
The day must be a valid day for the given month.
The hour must be between and
The minute must be between and
The payment date and time cannot be later than the current date and time.
Please note you have to include structure data type to finish this program, no nested class allowed.
Requirements:
You need to follow the program elements guidelines.
In this program, you need to save the class definition in a header file. use only iostream and using namespace when creating the header. dont not use std::cout and std::cin and other short cuts.
You need to build a class implementation file to store the member functions definition of this class
main.cpp please dont use std::cout and std::cin
You need to build a README.txt file to introduce and explain your project.
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