Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes

What are the two methods of the HAnnaldous code supposed to do?

I assume the second method is telling you if there are special characters in the password and the first method wants to make sure the password is the right length and has special characters?

asked in CSC305 Fall 2019 by (1 point)

2 Answers

0 votes

That was my interpretation of the code as well. Kind of annoying trying to interpret code that poorly formatted. Makes me realize why formatting it is stressed so much.

answered by (1 point)
0 votes

Realistically no one would ever do that. Refactoring is usually much easier than that.

answered by (1 point)