I would have to email you the links of microblog.h, [login to view URL], tweet.h, and [login to view URL]
1. Problem Statement:
In this assignment, you are expected to write a program that provide users with a simple blog. Basically, you will create a new class called MicroBlog on top of the Tweet class written in homework 7. The main program declares a MicroBlog object and you need to write your own code to test the MicroBlog class methods. The MicroBlog class should contain the following members:
Data: (Private)
• MAX_TWEETS : Maximum number of tweets that the blog can store.
• num_tweets : Number of tweets in the blog at the moment
• Tweet Blog[MAX_TWEETS]: An array of Tweet objects
Methods:(Pulbic)
• Default constructor: initialize the blog to an empty blog
• Non-default constructor: initialize the blog from a given file (you may choose to use a single constructor with non-default parameters)
• Copy constructor: initialize the blog with the information of another blog
• Destructor:
• EraseBlog: Erase the entire blog
• FillBlog: Erases the blog and then fills the blog with the contents of the file specified by a Filename parameter. Returns true if successful, false otherwise.
• AppendBlog: Appends new tweets from a file specified by a Filename parameter to the blog. Returns true if successful, false otherwise.
• AddNewTweet: Adds a new tweet to the blog based on parameters for date, hashtag, and contents passed in
• SaveBlog: Saves the contents of the blog in a given file. It returns true if it was successful, false otherwise
• GetNumTweets: returns the number of tweets in the blog
• GetNumHashtag: returns the number of tweets with the given hashtag
• GetNumDate: returns the number of tweets with the given date
• Print(): prints all the Tweets
• PrintHashtag: prints out all Tweets with a given Hashtag
• void PrintDate: prints out all Tweets with a given Date
The main program, declares an object of MicroBlog class. It then welcomes the user and keeps servicing to the requests of the user based on their response to a menu of options. Based on the user selection, the appropriate MicroBlog method is called.
2. Design:
First, you should think which parameters each of the methods in microblog class needs. Then, one by one, add an entry for that method in microblog.h. and write an empty body for that method in [login to view URL] with just a print statement, e.g., "cout << "Inside GetNumTweets\n";
Once the cout-only version of a method works, add the formal parameters to the method (in the .h and the .cpp) and call it from the main program with the correct actual parameters.
After writing the body of each method, compile the code and run the [login to view URL] file and test to see what happens if the user selects the menu option related to the method you just wrote.
DO NOT TRY TO IMPLEMENT ALL OF THE METHODS, AND THEN TESTING THEM ALL. YOU SHOULD CODE AND TEST ONE METHOD AT A TIME. S TART WITH THE SIMPLE AND IMPORTANT ONES FIRST.
3. Implementation:
Make a separate directory for hw8 and copy the 5 provided files (tweet.h, [login to view URL], [login to view URL], MakeFile, [login to view URL], [login to view URL], microblog.h) in your own directory by doing:
$ mkdir hw8
$ cd hw8
$ cp ~sgauch/public_html/2004/S14/hw/hw8/* .
and compile by typing "make". The files provided should compile and run properly.
Complete the Tweet class one method at a time and test it. Start with the default constructor and Print.
Bonus point (10 points):
Overloading << and >> operators in Tweet class, and using them in [login to view URL]:
• Din >> TweetObject : This should set the TweetObject from the current line in Din file variable. You will be using this instead of FillTweet method in [login to view URL]
• cout << TweetObject: Simply doing the same thing as Print method in Tweet class does.
4 .Testing:
Each option in the menu should be tested at least once, before quiting the program. The output of your program should be added to the end of your report.
Hi, I am C++ expert and can surely help you here with this project. I have a lot of experience in helping students with their assignments and tutoring. Please communicate to discuss further. Thank you. Regards Anshu
Hi.
I viewed your post carefully.
I am an expert in field of C/C++ and so your task have been very interesting for me.
I can help you with homework and then can be satisfied very well.
I thank that we may contact again on site later for special payment for this project and days that it takes for me.
I always wait your reply.
A good student!
Thank you.
I have been writing a number of C++ console applications for a year or two, and I am very familiar with the type of project that you require to be completed. I have a few solutions in mind already, and it would be much appreciated if we discussed some options.
This is pretty straight-forward object oriented programming work.
Overloading the operators for extra credit should be easy. I can send you a similar project to demonstrate proficiency if need be.