Question: Hello, it would be great if someone could help me here. This is C++ Write a program that displays a simulated paycheck. The program should

Hello, it would be great if someone could help me here.

This is C++

Write a program that displays a simulated paycheck. The program should ask the user to enter the date, the payee's name, and the amount of the check. It should then display a simulated check with the dollar amount spelled out, as shown here:

Date: 12/24/2016

Pay to the order of: John Phillips $1920.85 One thousand nine hundred twenty and 85 cents

You may assume the amount is no greater than $10000. Be sure to format the numeric value of the check in fixed-point notation with two decimal places of precision. Be sure he decimal place always displays, even when the number is zero or has no fractional part. Use either C-strings or string objects in this program.

And here are how it should look when completed:

Hello, it would be great if someone could help me here. This

Enter the date: 12/17/2017 Enter the payee: Bernie Ku Enter the amount: 1920.85 Pay to the order of: Bernie Ku Date: 12/17/2017 $1920.85 One thousand Nine hundred Twenty and 85 cents Enter the date: 12/17/2017 Enter the payee: Tom Cruise Enter the amount: 9999.00 Pay to the order of Tom Cruise Date: 12/17/2017 $9999.00 Nine thousand Nine hundred Nine ty Nine and cents Enter the date 12/18/2017 Enter the payee: Jack Wild Enter the amount: 1312.11 Pay to the order of: Jack Wild Date: 12/18/2017 $1312. 11 One thousand Three hundred Twelve and 11 cents Enter the date: 12/16/2017 Enter the payee: Mark Burns Enter the amount: 200000 Invalid anount: amount cannot be negative or over 10000

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!