Question: Description of the program Create a main ( ) that calls three functions as follows: 1 . Returns the label for the letter. The label

Description of the program
Create a main() that calls three functions as follows:
1. Returns the label for the letter.
The label should include the title, first name, last name, and street address for the letter. It should be formatted to appear as it would on the front of a sent letter.
2. Returns the message to be send.
Your main() should also call a function which returns the contents of the letter. The contents should consist of simply a subject line and then after a blank line the content of the message. The message should have a line that starts: "RE:" then the subject (read from the user) then a blank line, followed by the message.
3. Prints the label and the message.
Call a procedure that takes the label and the message and prints it to the terminal.
All values except the postcode should be read as strings, the postcode should be an integer between 0 and 9999.

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!