C++ project

Completado Publicado Dec 9, 2013 Pagado a la entrega
Completado Pagado a la entrega

Develop a functional flowchart and then write a C++ program to solve the following problem.

Define two classes with appropriate data members and member functions. Class N is defined to handle user first name and last name. As a minimum, the class will have one string data member in the private access region, default constructor, and other accessor and mutating functions. The class F is defined to handle the file names for input, output, and input/output purposes. As a minimum, the class will have one string data member in the private access region, default constructor, and other accessor and mutating functions. Here is how the program will operate.

Upon execution of the program, an object of the class N is created and its data member is set to your first name. Another object of this class is defined and obtains your last name from the keyboard and sets your last name (this can be a constructor or a mutating function). The program will then display your full name using the class displayName function and displays your full name in the format shown below.

First name Last name

The class N provides for accepting the first name and the last name as needed by the program.

Once the first name and last name are displayed, the program prompts the user if she/he wants to write the first name and last name into a file. If the user enters yes, the program creates objects of the class F. The first object, sets the data member to the file associated with the first name via the class constructor, writes the first name to the file, and closes the file. The user is then prompted for the name of the file for writing the last name to the file. Once the last name is written to the file, the file is closed. The program will then open the two files and writes their content to the screen in the format shown below.

First name

Last name

The program will then create a file object, gets the file name (for the full name) from the user, and writes the first name from the file that has the first name, and the last name from the file that has the last name and closes the files. The next step is for the program to prompt the user to read the contents of the file that has the full name. If the user entered yes, the program will display the full name in the format shown below.

First name Last name

and closes the file.

The user is then prompted to try other user names and file names and repeats the process explained above.

Other member functions for the two classes are defined by the programmer and as a minimum will include constructors, destructors, accessor, and mutating functions.

This program leaves out few options for you to select. For example, writing first name, last name, and name to their respective files and then retrieving them from these file and displaying them.

.NET Programación en C++ PHP Arquitectura de software Visual Basic

Nº del proyecto: #5212950

Sobre el proyecto

2 propuestas Proyecto remoto Activo Dec 9, 2013

Adjudicado a:

urmate

Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks

$45 USD en 1 día
(86 comentarios)
5.7

2 freelancers están ofertando un promedio de $38 por este trabajo

lokjaiswal12

Hello, I understood your requirements. I can develop this project. I had done many of this kind of assignments previously. Waiting for your response Regards Lokesh Jaiswal

$30 USD en 1 día
(50 comentarios)
5.2