Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

A4Q6Class is a class that generates user passwords. For example: DxEd. The class fields are: hasUpperCase If false, the password should be ll lower case.

A4Q6Class is a class that generates user passwords. For example: "DxEd". The class fields are: hasUpperCase If false, the password should be ll lower case. symbols If false, the password should contain only letters and numbers. length. the length of the password. generatePassword(() This will return a string containing the generated password. Your code should be here. Note you can generate a random letter using the code char letter = (char)(random('a',' Z'); [CR8] This tests your ability to write methods for a class Marks [5 ]

image text in transcribedimage text in transcribedYou must write a simple class called exactly A4Q7Class, which represents a student client for a money crisis charity with the following variables you must decided what types to use. For the function, You must make a new instance of this your class and return it( see A4Q6/A4Q5 for an example). The class should have a default constructor and default all strings to null. Make all fields public. Note your method should be public[5]

public object A4Q7( ) \{ return null ;// new A4Q7Class ()

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_2

Step: 3

blur-text-image_3

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 Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students explore these related Databases questions