Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program in C++ using a CLASS or CLASSES. The program must save all the information on a textfile using the infile and onfile
Write a program in C++ using a CLASS or CLASSES. The program must save all the information on a textfile using the "infile" and "onfile" functions, or something similar The program must let the user enter his first name, last name and a password. Every time the user does this, a number ID will be assigned to him starting with "1000" This is how the program should look like: 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 1 Enter your first name: Ray Enter your last name: Gun Enter a password: test Your user ID is: 1000 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 2 Enter user ID to display: 1000 Enter password: test18 Your password is incorrect. Try again: test First name: Ray Last Name: Gun Password: test ID: 1000 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 1 Enter your first name: Guy Enter your last name: Sensei Enter a password: test2 Your user ID is: 1001 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 2 Enter user ID to display: 1002 User ID not found. Try again: 1001 Enter password: test2 First name: Guy Last Name: Sensei Password: test2 ID: 1001 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 5 Program exited successfully Write a program in C++ using a CLASS or CLASSES. The program must save all the information on a textfile using the "infile" and "onfile" functions, or something similar The program must let the user enter his first name, last name and a password. Every time the user does this, a number ID will be assigned to him starting with "1000" This is how the program should look like: 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 1 Enter your first name: Ray Enter your last name: Gun Enter a password: test Your user ID is: 1000 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 2 Enter user ID to display: 1000 Enter password: test18 Your password is incorrect. Try again: test First name: Ray Last Name: Gun Password: test ID: 1000 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 1 Enter your first name: Guy Enter your last name: Sensei Enter a password: test2 Your user ID is: 1001 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 2 Enter user ID to display: 1002 User ID not found. Try again: 1001 Enter password: test2 First name: Guy Last Name: Sensei Password: test2 ID: 1001 1) Create account 2) Display account 3) Delete account 4) Update account 5) Exit program Enter your choice: 5 Program exited successfully
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