Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this mini project, you are asked to implement and test an Account abstract data type that could be useful for a social media app

In this mini project, you are asked to implement and test an Account abstract data type that could be useful for a social media app to manage its accounts.
The Account class definition has been provided for you in the "Account.h" file of the "mini02_social_media" project. You are not allowed to make any change to the class definition.
class Account {
private:
string username_;
string password_;
string following_[20];
unsigned nFollowing_;
public:
//constructors
Account(const string& username);
//Accessors
string get_following(const string& key =""m) const;
string to_string() const;
/ Imutator
bool follow(const string& username);
bool unfollow(const string& username);
};
Here are more details about the private data members:
The username_data member is to store the usemame for an account.
The password_data member is to store a secure password for the account.
The following_data member is to store the usemames of all the accounts followed by the current account owner.
The nFollowing_data member is to store the number of accounts followed by the current account owner.
Your task is to implement the member functions of the Account class in the "Account.cpp". The "main.cpp" file is to include code that supports the thorough testing of these member functions. You are welcome but not required to create additional functions to support your testing.
Make a copy of the Mini 02 Sample Run Document and, as you make progress in testing the functions, capture related screenshots that demonstrate proper testing of related functions into the document. At the end, save the document in PDF and upload it to Canvas.
Here are more detalls for the public member functions you need to implement and test:
Account: :Account (const strings usernane) :
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

4. Who should be invited to attend?

Answered: 1 week ago

Question

7. How will you encourage her to report back on the findings?

Answered: 1 week ago