Find Jobs
Hire Freelancers

C++ project

$30-250 USD

Completed
Posted over 10 years ago

$30-250 USD

Paid on delivery
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.
Project ID: 5212950

About the project

2 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks
$45 USD in 1 day
5.0 (86 reviews)
5.7
5.7
2 freelancers are bidding on average $38 USD for this job
User Avatar
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 in 1 day
4.8 (50 reviews)
5.2
5.2

About the client

Flag of UNITED STATES
Houston TX, United States
5.0
8
Payment method verified
Member since Nov 12, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.