programming 1 c++ homework

Закрито Опубліковано %project.relative_time Оплачується при отриманні
Закрито Оплачується при отриманні

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.

Програмування на C++

ID Проекту: #5907839

Про проект

12 заявок(-ки) Дистанційний проект Остання активність Jun 12, 2014

12 фрілансерів(-и) готові виконати цю роботу у середньому за $48

szymszteinsl

I am professional C/C++/C#/Java programmer and web developer. I can do this project with highest satisfaction! Best Regards, Szymszteinsl

$50 USD за 1 день
(20 відгуків(и))
6.0
dobreiiita

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

$50 USD за 1 день
(120 відгуків(и))
6.0
it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C++ and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com and Більше

$30 USD за 0 дні(-в)
(118 відгуків(и))
5.5
ZizhengTai

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.

$100 USD за 3 дні(-в)
(0 відгуків(и))
0.0
NienYi07

A proposal has not yet been provided

$30 USD за 3 дні(-в)
(0 відгуків(и))
0.0
jucheng888

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.

$56 USD за 2 дні(-в)
(0 відгуків(и))
0.0
mvantuyl

I have been writing C++ programs for more than 15 years and can have your project completed within the 3 day limit. I assume you will be providing the Tweet class file from homework 7. When the code has been written, Більше

$54 USD за 3 дні(-в)
(0 відгуків(и))
0.0
fq786

I can do it easy, and will write quite simple code which would be easy to understand with proper comments.

$35 USD за 3 дні(-в)
(0 відгуків(и))
0.0
saikrishna17394

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.

$55 USD за 1 день
(0 відгуків(и))
0.0
CSCEDEV

I have extensive experience with C++ assignments like these. At the University of North Texas, I have designed and implemented databases and algorithms that efficiently solve problems with constraints. I know exactly h Більше

$35 USD за 1 день
(0 відгуків(и))
0.0
GolDevs

A proposal has not yet been provided

$40 USD за 3 дні(-в)
(0 відгуків(и))
0.0
bradenmacbeth

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.

$35 USD за 1 день
(0 відгуків(и))
0.0