College Assignment C++
$30-5000 USD
Оплачується при отриманні
I will send you a copy of A program that is in my book and the program needs to be modified. In the program, the stream extraxtion and insertion operators were overloaded for input and output of objets of the PhoneNumber class. Rewrite the stream extraction operator to perform the following error checking on input. The operator>> function will need to be entirely recoded. (a) Input the entire phone number into an array. Test that the proper number of characters has been entered. There should be a total of 14 characters read for a phone number of the form (800) 555-1212. Use the stream member function clear to set ios::fail-bit for improper input. (b)The area code and exhange do not begin with 0 or 1. Test the first digit of the area code and exchange portions of the phone number to be sure that neither begins with 0 or 1. Use stream member function clear to set ios::failbit for improper input. (c) The middle digit of an area code used to always be 0 or 1 (although this has changed recently). Test the middle digit for a value of 0 or 1. Use the stream member function clear to set ios::failbit for improper input. If none of the above operations results in ios::failbit being set for iproper input, coy the three parts of the telephone number into the areaCode, exchange, and line members of the PhoneNumber object. In the main program, if ios::failbit has been set on the input, have the program print an error message and end rather than print the phone number.
## Deliverables
The file for the main() program will begin with a header containing the following information. PROGRAM TITLE, DETAILS: Input(what input is required for this code segment to accomplish its task, Input data types and variable names) Output(What output does the code produce, Output data types and variable names). Intermediate variables(data types and variable names). Global variables (Global variable data types and variable names or none). Design (A description of the algorithm or logic used in the design of the program. Steps used to create the program solution. Include any neccessary explanations to understand the program). I will also need to email you a copy of the program that needs to be modified.
## Deadline information
The program must be finished by 07/25/01
ID Проекту: #2824212