Question
Do this exact requirements listed below as provided in the image using C++ String Manipulation: A company requires a program to print letter to customers
Do this exact requirements listed below as provided in the image using C++ String Manipulation:
A company requires a program to print letter to customers with an overdue account.
The letter should have a specific format in which when it is printed by the program
Shows a default text content
Replaces the fields with brackets with actual data.
The program should ask the user to insert the required values before printing
Before the letter is printed, your program should ask the user to enter values for the fields listed in the table.
The values should then be inserted into the form letter as it is being printed.
The program should perform word-wrap, which means the sentences should be adjusted so no word is split between two lines.
Additionally, the letter should have 10-character left and right margins.
The program uses eight constant global character arrays to hold the sections of the form letter that are always the same.
print letter function
Once the user has entered values for all the fields, this function controls the printing of the letter.
It has one local variable, position , which is an integer. This variable keeps track of the number of characters printed on the current line.
This is crucial information for the printLine function, which performs word-wrap.
Below is the functions pseudocode. (It might help you to refer to the contents of the global arrays Part1 through Part8 as you read the code.)
print line function:
This function prints each individual line of the letter.
It takes two arguments: the address of the string that is to be printed on the line.
The variable used to store the number of characters printed (the position variable).
The number of characters printed on the line is important because the program must perform word-wrap.
This happens when the word being printed at the end of a line will not entirely fit.
Instead of printing part of the word on one line and then continuing it on the next line, the program is to start the word on the next line.
Past Due Letter Dear We are writing to contact you once again regarding our last correspondence to you, posted last. It referred to an invoice that is still pending payment. It concerns invoice n. issued on the date for the amount of the the expiration date as payment for the service We wish to highlight the immediate urgency of this issue, as our payment terms dicatate that your debt amount has increased in accordance with our late payment fees. Your outstanding total now stands at Please settle this outstanding payment at your earliest convenience: Swift Code: BIC: We look forward to receiving your payment receipt in order to avoid any further increases to your late payment charge. Please do not hesitate to contact us with any further questions. Best wishes, (Name and title) (Company)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started