Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

LO3 Define job design and identify common approaches to job design.

Answered: 1 week ago