Find Jobs
Hire Freelancers

a homework assignment concerning c++. Classes

$10-30 USD

Closed
Posted almost 10 years ago

$10-30 USD

Paid on delivery
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.
Project ID: 5907805

About the project

8 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
8 freelancers are bidding on average $49 USD for this job
User Avatar
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 in 1 day
4.8 (119 reviews)
6.0
6.0
User Avatar
if this task is still actual, please send me sources asap so I can start and finish it today, not to waste more time
$25 USD in 1 day
5.0 (1 review)
0.6
0.6
User Avatar
A proposal has not yet been provided
$111 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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.
$61 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am professional C/C++/C#/Java programmer and web developer. I can do this project with highest satisfaction! Best Regards, Szymszteinsl
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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.
$29 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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.
$35 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since May 6, 2014

Client Verification

Other jobs from this client

programming 1 c++ homework
$30-250 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.