Answer:
The code to this question can be given as:
Code:
while ((s!="Y" && s!="y" && s!="N" && s!="n")) //loop for check condition
{
cin >> s; //insert value
}
Explanation:
The description of the following code:
- In this code, we use a string variable s that has been to define in question.
- In code, we use a while loop. It is an entry control loop in loop we check variable s value is not equal to "y", "Y", "n" and "N".
- In the loop we use AND operator that checks all value together. If this is true So, we insert value-form user input in string variable that is "s".
Answer:
Rule based Attack.
Explanation:
As password cracking is a technique used to extract user’s password of application/files without the knowledge of the legitimate user. The attacker can use Rule Based Attack to find the password and to intrude or compromise the network and systems.
This is like a programming language to generate the password. This involves functions to modify, cut, edit and extend the generally used terms by the user.
People earn income by getting jobs and working. When they work, they get paid. That's an income
Explanation:
if(more than three hours left)
{
study web-development;
}
else
{
practice coding;
}
I have taken an real life example and present it as if-else statements.
If I have more than 3 hours free in a day.Then I should study web-development.
If i don't have more than 3 hours free in a day then I should practice coding.
Branches are the statements within the {} curly braces.In our case these are:-
study web-development;
practice coding;