1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Strike441 [17]
3 years ago
12

Create a test that prompts a user to enter a 5-digit PIN in the main procedure and then calls Validate PIN procedure to validate

the user pin. Declare two arrays to hold the minimum and maximum range values, and use these arrays to validate each digit of the PIN. If any digit is found to be outside its valid range, your program displays "Invalid Pin" to the user. If the entire PIN is valid, shows "Valid Pin".
Computers and Technology
1 answer:
Pie3 years ago
4 0

Answer:

See explaination

Explanation:

#include <iomanip>

#include <string>

#include <fstream>

using namespace std;

void getName(string);

void getPin(int,int);

void displayMenu(int);

string name;

int pin1, pin2, ch ;

int main()

{

cout << fixed << showpoint << setprecision(2);

getName(name);

getPin(pin1,pin2);

displayMenu(ch );

system("pause");

}

void getName(string name)

{

cout << "Enter your name: ";

cin >> name;

if (name = "AXBY") || (name != "ABGSHY"))

{

getName(name);

}

}

void getPin(int pin1, int pin2)

{

string name;

if (name == "AXBY")

{

cout << "Please Enter Pin: ";

cin >> pin1;

if (pin1 != 4433)

{

cout << "Pin incorrect please try again!";

cin >> pin1;

}

}

if (name == "ABGSHY")

{

cout << "Please Enter Pin: ";

cin >> pin2;

if (pin2 != 2849)

{

cout << "Pin incorrect please try again!";

cin >> pin2;

}

}

}

void displayMenu(int ch )

{

cout << "[1] Check your account Balance\n"

"[2] Withdraw funds\n"

"[3] Deposit funds\n"

"Please Enter Choice: ";

cin >> ch ;

if (ch != 1 || ch != 2 || ch != 3)

{

cout << "Choice is incorrect, enter choice now: ";

cin >> ch ;

}

}

You might be interested in
What is rss A)real time story service B) real time story syndication C) really simple syndicationD)rapid story services
Novosadov [1.4K]

C) Really Simple Syndication

4 0
3 years ago
In a transaction-processing system (TPS), if the TPS database can be queried and updated while the transaction is taking place,
neonofarm [45]

Answer:

Real time

Explanation:

Real-time data processing is the execution of data in a short time period, providing near-instantaneous output. The processing is done as the data is inputted, so it needs a continuous stream of input data in order to provide a continuous output.

6 0
2 years ago
How Do You Mark Someone as Brainliest?<br> 30 Points in return!
nadezda [96]

Answer:

Its an option that will usually pop-up from brainly after 2 people answer or sometimes it just pops up for one.

For fun could you mark me as brainiest?

It would help my account :)

Thank you!

6 0
2 years ago
What is the name of the file created after a successful compilation of myclass.java?
umka21 [38]
Myclass.class






---------------------------------
8 0
3 years ago
What impact, if any, does the complexity of a piece have on the piece’s flowchart?
-BARSIC- [3]
I’m pretty sure the answer is either A or D
7 0
3 years ago
Other questions:
  • A data structure used to bind an authenticated individual to a public key is the definition of ________.
    14·1 answer
  • CHALLENGE ACTIVITY |
    12·1 answer
  • Which device or software application detects errors in system configurations?
    8·1 answer
  • Your school computer library has a network that connects computers and devices within a few small rooms. what type of network do
    7·1 answer
  • When you ask the database more complex questions using comparison operators, you are conducting a _____. sort questionnaire quer
    7·1 answer
  • Write a program that asks the user for three strings. Then, print out whether the first string concatenated to the second string
    8·1 answer
  • 25 Points Discuss games you have played that have poor game design puzzles and how you might improve them.
    10·1 answer
  • I can’t unblock brainly from my computer, I think a robot has the same IP address .
    10·2 answers
  • Edhesive assignment 7 calendar
    10·1 answer
  • To determine what to study one Should first
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!