Question
Write program in c++ Write a program that creates a file that has simulated paychecks. The program should enter a random date in 2023, the
Write program in c++
Write a program that creates a file that has simulated paychecks. The program should enter a random date in 2023, the payee's name from the text file given, and a random amount for the check (up to $10,000). It should then display a simulated check with the dollar amount spelled out, as shown here:
------------------------------------------------------------------------------------------------------------------------------
Check Number: [sequential starting with #1] Date: 11/24/2023
Pay to the Order of: John Phillips $1920.85
One thousand nine hundred twenty and 85 cents
Memo: Paycheck Signature:[Your Name]
--------------------------------------------------------------------------------------------------------------------------------
Be sure to format the numeric value of the check in fixed-point notation with two decimal places of precision. Be sure the decimal place always displays, even when the number is zero or has no fractional part. Use either C-strings or string class objects in this program.
text file:
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