College Assignment C++

Completado Publicado Jul 17, 2001 Pagado a la entrega
Completado Pagado a la entrega

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

Programación en C Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #2824212

Sobre el proyecto

10 propuestas Proyecto remoto Activo Jul 17, 2001

Adjudicado a:

vw129744vw

See private message.

$25.5 USD en 14 días
(10 comentarios)
3.0

10 freelancers están ofertando un promedio de $26 por este trabajo

sysg

See private message.

$46.75 USD en 14 días
(25 comentarios)
4.6
vw132761vw

See private message.

$63.75 USD en 14 días
(33 comentarios)
4.2
worldmanvw

See private message.

$25.5 USD en 14 días
(2 comentarios)
2.1
gkellett

See private message.

$17 USD en 14 días
(2 comentarios)
1.3
kompooter

See private message.

$8.5 USD en 14 días
(3 comentarios)
0.7
mominrashid

See private message.

$17 USD en 14 días
(0 comentarios)
0.0
vw148067vw

See private message.

$21.25 USD en 14 días
(0 comentarios)
0.0
classcoder

See private message.

$10.2 USD en 14 días
(0 comentarios)
0.0
mgohara

See private message.

$21.25 USD en 14 días
(0 comentarios)
0.0