3Medium
0/5

Write a C# program to check if a new security PIN has been entered correctly by a user.

Your program must:

  • prompt for and get the user to input a security PIN
  • prompt for and get the user to input the security PIN a second time to confirm
  • output the message PIN Set and output the entered PIN if both inputs are identical
  • output the message Error: mismatch if the entered PINs do not match.

You should use meaningful variable name(s) and C# syntax in your answer.

[5]

Input/output Questions

Practise AQA GCSE Computer Science Input/output with exam-style questions for GCSE Computer Science. 10 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Input/output Questions

  1. GCSE
  2. /Computer Science
  3. /Input/output