Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

thank you for youranser.. Actually, I have to program ATM system.. very basicone

ID: 3617077 • Letter: T

Question

thank you for youranser.. Actually, I have to program ATM system.. very basicone^^... I am really new in programming... I have to get the password and if password is correct and thenshowing the menu.. however, if password is wrong then I should ask password againmaximum 3times.. which loop should I use...? which loop shold I use.. and could you give me simpleexample?? please.. thank you for youranser.. Actually, I have to program ATM system.. very basicone^^... I am really new in programming... I have to get the password and if password is correct and thenshowing the menu.. however, if password is wrong then I should ask password againmaximum 3times.. which loop should I use...? which loop shold I use.. and could you give me simpleexample?? please..

Explanation / Answer

please rate - thanks #include #include #include int main() {char pw[9]="password"; char word[9]; int yes,j; j=0; yes=0; do{    printf("Enter password: ");    scanf("%s",&word);        if(strcmp(word,pw)==0)            yes=1;    j++;    if(yes==0&&j!=3)       printf("%d more tries for validpassword ",3-j); }while(j