3) We would like to write a check. Input the following:
Date, Payee, Amount, and the account holder. Output these
in the following format, but the amount needs to be output
numerically as well as grammatically just like a check.
Range for the check amount = $1 to $1999 (integers, no
cents)
Input the following 4 values
Date: 01/01/15
Payee: John Doe
Amount: $811
Account Holder: Jane Doe
Output a written check
Jane Doe
STREET ADDRESS
CITY, STATE ZIP Date: 01/01/15
That's the only tricky part. Give it a try and, if you're stuck, ask again.
The rest is pretty simple, you can start for example with a scheme like this:
// 3) We would like to write a check. Input the following:
// Date, Payee, Amount, and the account holder. Output these
// in the following format, but the amount needs to be output
// numerically as well as grammatically just like a check.
// Range for the check amount = $1 to $1999 (integers, no
// cents)
// Input the following 4 values
// Date: 01/01/15
// Payee: John Doe
// Amount: $811
// Account Holder: Jane Doe
// Output a written check
// Jane Doe
// STREET ADDRESS
// CITY, STATE ZIP Date: 01/01/15
// Pay to the Order of: John Doe $ 811.00
// Eight Hundred Eleven and no/100s Dollars
// BANK OF CSC5
// FOR: GOTTA PAY THE RENT Jane Doe
#include <iostream>
#include <string>
int main()
{
std::cout << "\nCheck forger program :-)\n";
std::cout << "========================\n";
// Input data
std::cout << "Please enter check date: ";
std::string date = 0;
std::cin >> date;
// ...
// same as above for payee, amount, holder, street, city, state, zip...
// ...
// Output data
std::cout << payee << '\n' << street << '\n' << city << ", "
<< state << ' ' << zip ... ; <-- to be finished
std::cout << "Pay to the order of: " << holder << ' ' << amount '\n';
// ...keep going like that
return 0;
}