programming 1 c++ homework
$30-250 USD
Оплачується при отриманні
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 [url removed, login to view] 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 [url removed, login to view] 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, [url removed, login to view], [url removed, login to view], MakeFile, [url removed, login to view], [url removed, login to view], 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 [url removed, login to view]:
• 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 [url removed, login to view]
• 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.
ID Проекту: #5907839
Про проект
12 фрілансерів(-и) готові виконати цю роботу у середньому за $48
I am professional C/C++/C#/Java programmer and web developer. I can do this project with highest satisfaction! Best Regards, Szymszteinsl
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 jaiannaz, I'm a new freelancer but a skilled C++ programmer with many years of programming experience. You wil not be disappointed. I sincerely look forward to working with you.
I am really interesting in your project.I am able to finish your project perfectly and make you satisfy. no matter for me this project.
I can do it easy, and will write quite simple code which would be easy to understand with proper comments.
I have already done similar assignments in my university a year back. I am very comfortable with C++. So, I can make sure I will complete this project easily within a day.
This is a pretty straight forward object oriented programming assignment(COMP238 I'm assuming). It should only take me a day to complete, write down all of the details on the project, and send it to you.