Answered step by step
Verified Expert Solution
Question
1 Approved Answer
All three are C++ object-oriented programs. They can generate a password consisting of random characters but each has its own specific requirements described below. Please
All three are C++ object-oriented programs. They can generate a password consisting of random characters but each has its own specific requirements described below.
Please help, thank you in advance
1. pwdg_oo.cpp (20 points with no partial credits) This program defines a class called Pwdg (i.e., password generator). You may include in this class as many data members as needed but they must be all private. For grading purpose, you must implement a zero-parameter public member function called getPWD0 in this class to returnm a password of string type. The length of the password is given when a Pwdg object is created in main Every password generated by get W D must consist of randomly selected characters from ten digits of 0 9,521 etters of a and A 1us 11 bols of % & including thc curly braccs. All passwords must be truly randomly gencrated, mcaning there should be no fixed patterns or predictable trends that can be traccd if the program is cxccuted ropcatcdly. Hint: rescarch rand0 and srand0. Do not usc Random class becausc it is a .NET class, not supportcd by standard C++. The main) function performs the following three tasks .Prompts "Enter length of password: " to gct thc length from uscr. 2. Makc a Pwdg objcct with the length spccificd abovc and call getPWD) of the objcct to gct a password. 3. Displays the password in the form "Password The figure below shows a sample screenshot of executing pwdgoo.cpp :13331> :13331> :13331>g+ pwdg oo.cpp :13331>a nter length of password: 10 assword: 60EXVi&TNNStep 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