Answered step by step
Verified Expert Solution
Link Copied!

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 3 c++ program named 'yourName_PaymentSystem' 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 1 and 12.
- The day must be a valid day for the given month.
- The hour must be between 0 and 23.
- The minute must be between 0 and 59.
- 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.
1. 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.
2.You need to build a class implementation file to store the member functions definition of this class
3.main.cpp. please dont use std::cout and std::cin
4.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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions