1. Create a program that emulates a one time password update. Note: Create a class named: PassCode Passcode class contains a function named passcode_generator (which allows you to generate a random password composed of : 2 special characters (any special character that can be found on a standard keyboard) Ex: @#$%^&*»` !<> . . . 1 letter (uppercase) 10 random numbers 1 letter (lowercase) Note: Use the same technique as the one you implemented with the bars during the Midterm exam Sample Output: Command Prompt System generated password is. e|s8053465721k Your password is: @|S8053465721k Generate again (y/n)? The program automatically generates the Password, then asks if the user wants to Generate a new password. If user says yes, then a new password will be generated by the program. Note: This generated password will remain a Variable whose content can still be changed at any given time.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Create this program in C++. Instructions are given below:

1. Create a program that emulates a one time password
update.
Note:
Create a class named: PassCode
Passcode class contains a function named passcode_generator (which allows
you to generate a random password composed of :
2 special characters
(any special character that can be found on a standard keyboard)
Ex: @#$%^&*!<> . . .
1 letter (uppercase)
10 random numbers
1 letter (lowercase)
Note: Use the same technique as the one you implemented with the bars
during the Midterm exam
Sample Output:
Command Prompt
System generated password is.
@|S8053465721k
Your password is: @|S8053465721k
Generate again (y/n)?
The program automatically generates the
Password, then asks if the user wants to
Generate a new password.
If user says yes, then a new password
will be generated by the program.
Note:
This generated password will remain a
Variable whose content can still be
changed at any given time.
Transcribed Image Text:1. Create a program that emulates a one time password update. Note: Create a class named: PassCode Passcode class contains a function named passcode_generator (which allows you to generate a random password composed of : 2 special characters (any special character that can be found on a standard keyboard) Ex: @#$%^&*!<> . . . 1 letter (uppercase) 10 random numbers 1 letter (lowercase) Note: Use the same technique as the one you implemented with the bars during the Midterm exam Sample Output: Command Prompt System generated password is. @|S8053465721k Your password is: @|S8053465721k Generate again (y/n)? The program automatically generates the Password, then asks if the user wants to Generate a new password. If user says yes, then a new password will be generated by the program. Note: This generated password will remain a Variable whose content can still be changed at any given time.
System generated password is.
@|S8053465721k
Your password is: @|S8053465721k
Generate again (y/n)? y
System generated password is.
#*J4877610012m
Your password is: #*J4877610012m
Generate again (y/n)? y
System generated password is.
%^F7881215430v
Your password is: %^F7881215430v
Generate again (y/n)? n
Password is set to: %^F7881215430v
If the user selects y,
the program will still attempt
To change the value of password.
But since, the variable was
Already locked for editing.
Generate again (y/n)? y
ample Output:
Command Prompt
System generated password is.
@|S8053465721k
Your password is: @|S8053465721k
Generate again (y/n)? y
System generated password is.
#*J4877610012m
Your password is: #*J4877610012m
Generate again (y/n)? y
System generated password is.
%^F7881215430v
C++ will generate a RUN TIME error
Your password is: %^F7881215430v
Generate again (y/n)? n
Password is set to: %^F7881215430v
Generate again (y/n)? y
C: \Users\User\Q2.cpp error: assignment of data-member `Quiz2::value' in read-only
structure|
Transcribed Image Text:System generated password is. @|S8053465721k Your password is: @|S8053465721k Generate again (y/n)? y System generated password is. #*J4877610012m Your password is: #*J4877610012m Generate again (y/n)? y System generated password is. %^F7881215430v Your password is: %^F7881215430v Generate again (y/n)? n Password is set to: %^F7881215430v If the user selects y, the program will still attempt To change the value of password. But since, the variable was Already locked for editing. Generate again (y/n)? y ample Output: Command Prompt System generated password is. @|S8053465721k Your password is: @|S8053465721k Generate again (y/n)? y System generated password is. #*J4877610012m Your password is: #*J4877610012m Generate again (y/n)? y System generated password is. %^F7881215430v C++ will generate a RUN TIME error Your password is: %^F7881215430v Generate again (y/n)? n Password is set to: %^F7881215430v Generate again (y/n)? y C: \Users\User\Q2.cpp error: assignment of data-member `Quiz2::value' in read-only structure|
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education