Programming Logic and Design, 6th Edition Essay
Programming Logic and Design, 6th Edition
The Summerville Telephone Company charges 10 cents per minute for all calls outside the customer’s area code that last over 20 minutes. All other calls are 13 cents per minute. Design a flowchart or pseudocode for following: a. A program that accepts data about one phone call: customer area code (three digits), customer phone number (seven digits), called area code (three digits), called number (seven digits), and call time in minutes (four digits). Display the calling number, called number, and price for the call.
The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a flowchart or pseudocode for following: a. A program that accepts insurance policy data including a policy number, customer last name, customer first name, age, premium due month, day and year, and the number of accidents in the last three years. If a policy number entered is not between 1000 and 9999 inclusive, then 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 (that is, between 1 and 31 for January, 1 and 29 for February, and so on), then set the month, day, and year to 0. Display the policy data after any revisions have been made.