Answered step by step
Verified Expert Solution
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 "minisocialmedia" project. You are not allowed to make any change to the class definition.
class Account
private:
string username;
string password;
string following;
unsigned nFollowing;
public:
constructors
Accountconst string& username;
Accessors
string getfollowingconst string& key m const;
string tostring const;
Imutator
bool followconst string& username;
bool unfollowconst string& username;
;
Here are more details about the private data members:
The usernamedata member is to store the usemame for an account.
The passworddata member is to store a secure password for the account.
The followingdata member is to store the usemames of all the accounts followed by the current account owner.
The nFollowingdata 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 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 :
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started