3
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by Moschops
0

does any one has the code and how do you come up with it

0

how do you come up with it

You come up with it by thinking about the problem and developing an algorithm to solve it in a methodical way that is appropriate to being turned into code.

For example, I might look at this and think that the steps will be something like this:

- Get username from user
- Get password from user
- Compare password provided with the correct password for that username
- if same, carry on
- if not same, give error message and quit.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.