Question: Write a C++ program that creats a file that has simulated paychecks. Get the payees name by implemnting a file called names.txt (just write names.txt
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. names.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
