Drive-Right Insurance Company Algorithm: Just Enough Programming Logic & Design Ch3

The Drive-Right Insurance Company provides automobile insurance policies for drivers.

Design a flowchart or pseudo code for the following:
A program that accepts insurance policy data, including a policy number, customer last name, customer first name, age, premium due date (month, day, and year), and number of driver accidents in the last three years. If an entered policy number is not between 1000 and 999 inclusive, set the policy number to 0. If the month is not between 1 and 12 inclusive, or the day is not correct for the month (for example, not between 1 and 31 for January or 1 and 29 for February), set the month, day, and year to 0. Display the policy data after any revisions have been made.


Leave a Reply

Your email address will not be published. Required fields are marked *

  • File Format: MS-Word .docx