Question: Please help me with this c + + ! ! ! Create an object - oriented programming ( OOP ) program that manages user profiles.

Please help me with this c++!!!Create an object-oriented programming (OOP) program that manages user profiles. Your program should run continuously until the user selects exit.
Requirements:
1) Create a base class Time and all mutator/accessor methods, constructor, and destructor
private:
int hour;
int minute;
int second
2) Create a derived class DateTime : public Time and all mutator/accessor methods, constructor, and destructor
private:
int month;
int day;
int year;
3) Create a class user.h and user.cpp that contains username, password, sign-in datetime, and sign out datetime.
// See users_data.csv for the data requirements and create the member variables:
private:
int userId;
string username;
string password;
DateTime loginDateTime;
DateTime logoutDateTime;
Your program allows:
* As discussed in class today, below is the suggested format. You may use any DateTime format for display, input, etc.
- Save to disk users_data.csv Download users_data.csvdatetime format: dd/mm/yyyy hh:mm:ss
- Display format: Monday 01/29/2024
- Users input from system datetime format - you may use the provided utils.cpp
4) Create a base class Menu
5) Create a derived class UserMenu
- Read from file users_data.csv Download users_data.csvand populate users to vector
- and prompt the login screen menu, like:
6)Your Manage User Accounts, including:
User Menu
=====================
1)Sign-in
- Enter email or mobile phone number
- Enter password
- Update sign in datetime
2) Sign Out
- User must be already sign-in
- Update sign out datetime
- Save new sign-in and sign-out datetime to users_data.csv
3) Reset Password
- User must be already sign-in
- Enter old password
- Enter new password
- Save new password to users_data.csv
4)Create account
- Enter first and last name
- Enter mobile number or email
- Enter password
- Enter re-enter password
- Forgot your password? Only role=admin can reset your password.
- Save new sign-in, sign-out datetime, and data to users_data.csv
5)Manage Profiles
- User must be already sign-in
- Allow user to change (update or delete) personal information, name, role, address, phone, email
- Save new data to users_data.csv
x) Quit
- Enter char 'x' to exit Sign Out and update sign out datetime.
7) Create a class Person (person.h for the class definition and person.cpp for the class implementation)
Example userMenu.h:
const string USERS_DATA = "users_data.csv Download users_data.csv"
Your data requirements:
sample-picture is belowCreate a class Person (person.h for the class definition and person.cpp for the class implementation)
Example userMenu.h:
const string USERS_DATA = "users data.cSv ubrace(darrubrace)
Your data requirements:
enum USER_MENU_OPTION {
USER_MENU_SIGNIN ='1',
USER_MENU_CREATE ='2',
USER_MENU_CREATE ='3',
USER_MENU_REMOVE ='4',
USERMENU_RESET ='5',
USERMENU_MANAGE_PROFILE ='6',
USER_MENU_EXIT ='x'
};
class UserMenu : public Menu
private:
// Member variables and any other variables if necessary
fstream inFile;
User user;
vector users;
- Prompt username and password, and authentication
- Allow 3 retries if the user enters an invalid username and password
- If the user enters a valid username and password, output a message to indicate successful login or error
8) Add to class UserMenu the following member methods:
private:
void initUserData(); // Initialize and read from users_data.csv; and populate the list (vector users;)
public:
bool signIn(); // Add a member method LoginMenu::signIn definition and implementation
public:
bool create(); // Add a member method create user definition and implementation
public:
bool remove(); // Add a member method remove user definition and implementation
public:
bool reset(); // Add a member method reset user definition and implementation
public:
bool manageProfiles(); // Add a member method to manage user definition and implementation
public:
void exit(); // Enter char 'x' to exit Sign Out and update sign out datetime.
example
public:
bool signOut(); // Save loginDateTime and logoutDateTime data to file users_data.csv
9) Create a main.cpp and implement the above requirements
int main(){
// TODO implement Login here!!!
return 0;
}
 Please help me with this c++!!!Create an object-oriented programming (OOP) program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!