Assignment 4 on Chapter 4
1. Mortimer Life Insurance Company wants several lists of salesperson data. Design a flowchart and pseudocode for the following:
A program that accepts a salesperson’s ID number and number of policies sold in the last month, and displays the data only if the salesperson is a high performer—a person who sells more than 25 policies in the month. The program that accepts salesperson data continuously until a sentinel value is entered.
num POLICY_MINIMUM = 25
num QUIT = -1
string salesQuit = “Enter the sales person ID or -1 to quit ”
while (salespersonID != QUIT )
output "Enter the sales person ID"
output “Enter number of policies sold ”
if (policySold > POLICY_MINIMUM)
output salespersonID, policySold
output “End of program”
2. Black Dot Printing is attempting to organize carpools to save energy. Each input record contains an employee’s name and town of residence. Ten percent of the company’s employees live in Wonder Lake; 30 percent live in the adjacent town of Woodstock. Black Dot wants to encourage employees who live in either town to drive to work together. Design a flowchart and pseudocode for following:
A program that continuously accepts an employee’s data until end of file is reached, and displays it with a message that indicates whether the employee is a candidate for the carpool.
string ELIGIBLE = "is a candidate for the carpool program"
output “Car pool eligibility program”
output "Enter employee name"
output "Enter employee town"
if (employeeTown = woodstuck OR employeeTown = wonder lake)
output "this person", employeeName,"","from","",employeeTown,"",ELIGIBLE
output "end of program"
To export a reference to this article please select a referencing stye below.
Assignment Hippo (2021) . Retrive from http://www.assignmenthippo.com/sample-assignment/life-insurance-company
"." Assignment Hippo ,2021, http://www.assignmenthippo.com/sample-assignment/life-insurance-company
Assignment Hippo (2021) . Available from: http://www.assignmenthippo.com/sample-assignment/life-insurance-company
Assignment Hippo . ''(Assignment Hippo,2021) http://www.assignmenthippo.com/sample-assignment/life-insurance-company accessed 26/02/2021.
Want to order fresh copy of the Sample Template Answers? online or do you need the old solutions for Sample Template, contact our customer support or talk to us to get the answers of it.
Our motto is deliver assignment on Time. Our Expert writers deliver quality assignments to the students.
Get reliable and unique assignments by using our 100% plagiarism-free.
Get connected 24*7 with our Live Chat support executives to receive instant solutions for your assignment.
Get Help with all the subjects like: Programming, Accounting, Finance, Engineering, Law and Marketing.
Get premium service at a pocket-friendly rate at AssignmentHippo
I was struggling so hard to complete my marketing assignment on brand development when I decided to finally reach to the experts of this portal. They certainly deliver perfect consistency and the desired format. The content prepared by the experts of this platform was simply amazing. I definitely owe my grades to them.