Show Bid Request
class and struct
Bid Request Id: 4276
|
|
|
Description:
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, main.cpp, and EntryBook.txt
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 >> theName.last;
cout << "First name: ";
ist >> theName.first;
}
void readDate(istream &ist,Date &theDate) {
cout << "Month: ";
ist >> theDate.month;
cout << "Day: ";
ist >> theDate.day;
cout << "Year: ";
ist >> theDate.year;
}
void readEntry(istream &ist,Entry &e) {
readName(ist,e.name);
readDate(ist,e.bday);
}
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$27 (USD)
|
Oct 29, 2001 7:07:11 PM EDT
|
8.18
(Very Good)
|
|
|
Hi,
I will do it quickly..
See my rating and previous works. Once you work with me you will never look for anyone except me<\b>
Select my bid get your code
Regards
Mani K |
|
|
|
|
|