Write a program that prompts the user for a 4digit login and

Write a program that prompts the user for a 4-digit login and password in the LCD. The user must enter the login and password information from the keypad. The information should be displayed as stars on the LCD. If the information entered is correct display \"Access Granted!\" else display \"Access Denied!\" The program must run in an infinite loop. I need it to work with the Dragonboard12PLUS

Solution

#include int main(void) { int sum,digit1,digit2,digit3,digit4; printf(\"enter four digit integer:\ \"); scanf(\"%d\", &digit1,&digit2,&digit3,&digit4); digit1=(digit1%1000)/10; digit2=(digit2%1000)/10; digit3=(digit3%1000)/10; digit4=(digit4%1000)/10; /*calculation*/ sum=digit1+digit2+digit3+digit4; printf (\"answer is: %d\ \",sum); return (0); }
Write a program that prompts the user for a 4-digit login and password in the LCD. The user must enter the login and password information from the keypad. The i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site