A program that prompts the user for a three-digit area code


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 pseudo code for the 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 only if the call is one in which the area code where the call originated is different from the called area code.

b. A program that accepts data about a phone call and displays all the details only about a call that costs over $10.

c. A program that continuously accepts data about phone calls until eof is reached and displays details only about calls placed from the 212 area code to the 704 area code that last over 20 minutes.

d. A program that prompts the user for a three-digit area code. Then the program continuously accepts phone call data until eof is reached, and displays data for any phone call to or from the specified area code.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A program that prompts the user for a three-digit area code
Reference No:- TGS01474564

Expected delivery within 24 Hours