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]
4 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:
Pie4 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
The purpose of a ________ is to extract data from operational systems and other sources, clean the data, and store and catalog t
NeTakaya

Answer:

The correct answer for the following question will be Data warehouse.

Explanation:

Data warehouse (DWH), is a facility provided to data analyze and for managing and controlling an organization's business intelligence tools, pull data from many sources together for survey and analysis. It helps to store the former information and allows making better information for organization. This is also known as Enterprise Data Warehouse (EDW)

3 0
3 years ago
Unlike when writing in a programming language, there are no set rules that must be followed when writing pseudocode. What do you
Elan Coil [88]

Answer:

Explanation:

Pseudocode may not have a set number of rules of guidelines but there are still some habits that should be followed. This includes having only one statement per line and add the END keyword to loops. Both of these rules/habits will drastically increase the readability of the pseudocode and allow you to know exactly where a certain loop starts and ends. Since loops can become difficult to read if they have a lot of code within them. Another good guideline to keep in mind is to simplify the code as much as possible do not add unnecessary pseudocode if it is not absolutely needed.

7 0
3 years ago
A heuristic is applied during a search process in hopes of producing a
tekilochka [14]
The answer that best completes the statement above is DEPTH-FIRST SEARCH. This is what is produced in the application of heuristic during a search process. When we say heuristic, this is the kind of approach done in order to discover something or to solve a particular problem. The Depth-First Search or also known as DFS, is a kind of algorithm that is used to analyze something by branching out ideas but in a backtracking manner.
3 0
3 years ago
What did Bakers wear (1) in the Portugal does (2) when was author was young ???
konstantin123 [22]

Answer:

(i) In the Portuguese days, the bakers had a peculiar dress known as the kabai. It was a single-piece long frock reaching down to the knees.

(ii) When the author was young, he saw the bakers wearing a shirt and trousers, which were shorter than full-length and longer than half pants.

7 0
3 years ago
To adjust the height or width to fit the dialog within it, you should use these options. Click all that apply
Blizzard [7]

Answer: manually drag the box to adjust the cell

Double-click the cell to adjust to largest size needed

In the Home tab’s Cells feature, select cell size.

Explanation:

I took the test.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Print the two strings in alphabetical order. assume the strings are lowercase. end with newline. sample output: capes rabbits
    5·2 answers
  • Which of the following is NOT true about functions? They go below the main program in the source code file. They do a single tas
    10·1 answer
  • Engineers and scientists redesign a prototype if it does not work correctly true or false and why
    10·2 answers
  • Technician A says that high pressure in recycled refrigerant is only caused by air contamination. Technician B says that recycle
    15·1 answer
  • In your opinion, why did Proponents<br>of IPs used IPV6 instead of IPv5​
    7·1 answer
  • Disadvantages of computer. ​
    9·1 answer
  • Fortnight on sat 530-10 my name is TTV BTW laggking_12
    5·1 answer
  • Hey IM new uh what is this?
    5·1 answer
  • What kind of company would hire an Information Support and Service employee?
    8·1 answer
  • What would be an ideal scenario for using edge computing solutions?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!