Question: In your tutorial class design and write a program which reads in a name, address and message to be sent as a letter to the

In your tutorial class design and write a program which reads in a name, address and message to be sent as a letter to the recipient.
Based on the description below write pseudocode for the program. Upload the pseudocode to the Ed workspace. NB Make sure your pseudocode is decomposed modularly.
As a class group produce a structure chart for the program. Upload a photo or drawing of the structure chart to the Ed workspace.
Write the code and test it in Ed.
Annotate the code with comments explaining how to use each module (function/procedure) and what they do (not how they work).
The program should work as described below
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.

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 Programming Questions!