Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedimage text in transcribedimage text in transcribed 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&TNN

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

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions