C++ CODERS! Please complete the lost password function and the sign in account function. Will rate, thank you! //Accounts class detail #include using namespace std; #include class Accounts{ private: char first_Name[40]; char last_Name[40]; int std_id; int std_age; int std_major; int user_input; public: //gathering info of student void getStd(void); //display info o student void display_std(void); void Title(void); void Menu(void); void new_Account(void); void sign_in_Account(void); void lost_password(void); }; void Accounts::getStd(void) { cout<<"Enter the student information"<>first_Name; cout<<"Accounts ID: ";cin>>std_id; cout<<"Accounts Age: ";cin>>std_age; cout<<"Accounts Major: ";cin>>std_major; } void Accounts::display_std(void) { cout<<"The Accounts information"<>user_input; if(user_input==1){ new_Account(); } else if(user_input==2){ sign_in_Account(); } else if(user_input==3){ lost_password(); } } void Accounts::new_Account() { cout<<"First Name: "<>first_Name; } void Accounts::sign_in_Account() { } void Accounts::lost_password() { } int main() { Accounts info; info.Title(); info.Menu(); //.getStd(); //info.display_std(); return 0; }

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question
 
 

C++ CODERS!

Please complete the lost password function and the sign in account function. Will rate, thank you!

//Accounts class detail
#include <iostream>
using namespace std;
#include <fstream>

class Accounts{
private:
char first_Name[40];
char last_Name[40];
int std_id;
int std_age;
int std_major;
int user_input;
public:
//gathering info of student
void getStd(void);
//display info o student
void display_std(void);
void Title(void);
void Menu(void);
void new_Account(void);
void sign_in_Account(void);
void lost_password(void);
};
void Accounts::getStd(void) {
cout<<"Enter the student information"<<endl;
cout<<"Accounts name: ";cin>>first_Name;
cout<<"Accounts ID: ";cin>>std_id;
cout<<"Accounts Age: ";cin>>std_age;
cout<<"Accounts Major: ";cin>>std_major;
}
void Accounts::display_std(void) {
cout<<"The Accounts information"<<endl;
cout<<"Name: "<<first_Name<<endl;
cout<<"ID: "<<std_id<<endl;
cout<<"Age: "<<std_age<<endl;
cout<<"Major: "<<std_major;
}
void Accounts::Title(void){
cout<<"|_____Registration Title_____|"<<endl;
}
void Accounts::Menu(void){
cout<<"1) Make New Account"<<endl;
cout<<"2) Sign in Account"<<endl;
cout<<"3) Forgot Account Info"<<endl;

cout<<"Press a number: "<<endl;
cin>>user_input;
if(user_input==1){
new_Account();
}
else if(user_input==2){
sign_in_Account();
}
else if(user_input==3){
lost_password();
}
}
void Accounts::new_Account() {
cout<<"First Name: "<<endl;
cin>>first_Name;
}

void Accounts::sign_in_Account() {

}
void Accounts::lost_password() {

}

int main() {
Accounts info;
info.Title();
info.Menu();
//.getStd();
//info.display_std();
return 0;
}

 

 

 
Expert Solution
steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr