76 245
Assignments Done
Successfully Done
In May 2019

Answer to Question #13288 in C++ for mark

Question #13288
write a c++ program for cell phone pin number.if the user entered the correct pin code displays "welcome to smart....Simply Amazing". The cellphone user will enter his pin code three times.if on the first,second and third trial he failed to enter the correct pin code it will display "Invalid pin code",after the third trial will prompt the user to enter PUK secret code 3times also. If the user still failed to enter PUK code will display "SIM BLOCKED".
Expert's answer
#include <iostream>
using namespace std;

int main()
int i=0;
int PIN=1111, PI, PUK=123123123, PU;
bool req=false;

while ((req == false)&&(i<3))
cout<<"Enter PIN: ";
if (PIN == PI) { cout<<"welcome to smart....Simply Amazing\n"; req=true; }
else cout<<"Invalid PIN code\n";
while ((req == false)&&(i<3))
cout<<"Enter PUK: ";
if (PU == PUK) { cout<<"welcome to smart....Simply Amazing\n"; req=true; }
else cout<<"Invalid PUK code\n";
if (req==false) cout<<"SIM BLOCKED\n";
return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


Assignment Expert
27.08.15, 15:16

Dear Shiela  please try now.

27.08.15, 08:55

Why it does not working?

Assignment Expert
24.07.15, 17:23

Dear Veronica, please use panel for submitting new questions.

24.07.15, 10:45

Write a Java program for PIN Code / PUK Code verification for a cell phone.

Assignment Expert
10.10.14, 11:24

Dear jhulliused
You're welcome. We are glad to be helpful. 
If you liked our service please press like-button beside answer field. Thank you!

07.10.14, 15:45

i love this this is the exactly answer to my requirement

Leave a comment

Ask Your question

Privacy policy Terms and Conditions