class and struct

Completed Posted Oct 29, 2001 Paid on delivery
Completed Paid on delivery

b) Create a file Entry.h that contains the new Name class and the Date and Entry classes. Write a main program that includes Entry.h. The main program should prompt the user to enter three Entries, and the program should read Entries from standard input and write them to the file EntryBook.txt. Turn in the files Entry.h, [url removed, login to view], and [url removed, login to view] a) Recall the Name struct, and the associated readName and writeName functions. Re-write this so that Name is a class, with the first name and last name as private member data, and the readName and writeName functions as public member functions. Here's the notes: struct Name { string first; string last; }; struct Date { int day; int month; int year; }; struct Entry { Name name; // Name is a struct Date bday; // Date is a struct }; void readName(istream &ist,Name &theName) { cout << "Last name: "; ist >> [url removed, login to view]; cout << "First name: "; ist >> [url removed, login to view]; } void readDate(istream &ist,Date &theDate) { cout << "Month: "; ist >> [url removed, login to view]; cout << "Day: "; ist >> [url removed, login to view]; cout << "Year: "; ist >> [url removed, login to view]; } void readEntry(istream &ist,Entry &e) { readName(ist,[url removed, login to view]); readDate(ist,[url removed, login to view]); }

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

C Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #2830238

About the project

2 proposals Remote project Active Oct 29, 2001

Awarded to:

vw132761vw

See private message.

$22.95 USD in 14 days
(33 Reviews)
4.2

2 freelancers are bidding on average $33 for this job

daddisonvw

See private message.

$42.5 USD in 14 days
(12 Reviews)
4.2