Find Jobs
Hire Freelancers

C++ project

$30-250 USD

Opravljeno
Objavljeno pred več kot 10 leti

$30-250 USD

Plačilo ob dostavi
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.
ID projekta: 5212950

Več o projektu

2 ponudb
Projekt na daljavo
Aktivno pred 10 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks
$45 USD v 1 dnevu
5,0 (86 ocen)
5,7
5,7
2 freelancerjev je oddalo ponudbo s povprečno vrednostjo $38 USD za to delo
Avatar uporabnika
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 v 1 dnevu
4,8 (50 ocen)
5,2
5,2

O stranki

Zastava UNITED STATES
Houston TX, United States
5,0
8
Plačilna metoda je verificirana
Član(ica) od nov. 12, 2013

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.