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
2.5 lesson practice edhesive
VARVARA [1.3K]

Answer:

Huh,.......? what.....?

6 0
3 years ago
Read 2 more answers
In this problem, you will write a translation program. First your program will prompt the user for three filenames. The first fi
Mrac [35]

Answer:

Ohh...................................................

6 0
3 years ago
You have just installed a SOHO router in a customer's home and the owner has called you saying his son is complaining that Inter
monitta

Answer:

This question is not complete. See the complete question below.

You have just installed a SOHO router in a customer’s home and the owner has called you saying his son is complaining that Internet gaming is too slow. His son is using a wireless connection to the network. Which possibilities should you consider in order to speed up the son’s gaming experience? Select all that apply.

A.Verify the wireless connection is using the fastest wireless standard the router supports.

B.Disable encryption on the wireless network to speed up transmissions.

C.Suggest the son use a wired Gigabit Ethernet connection to the network.

D.Enable QoS for the gaming applications on the router and on the son’s computer.

ANSWER

A. Verify the wireless connection is using the fastest wireless standard the router supports.

C. Suggest the son use a wired Gigabit Ethernet connection to the network.

D. Enable QoS for the gaming applications on the router and on the son’s computer.

Explanation:

A. Verify the wireless connection is using the fastest wireless standard the router supports.

This is the first thing to be done because by enabling the fastest wireless standard the router supports you are sure the router is performing at it best.

B. Disable encryption on the wireless network to speed up transmissions.

There will be no need to disable encryption on the wireless network as this does not necessarily affect the transmission speed. Doing this will make the network vulnerable to threats.

C. Suggest the son use a wired Gigabit Ethernet connection to the network.

This will be the last step when there is no improvement in wireless transmission speed. As wired network is more stable and not susceptible to interference experienced on wireless networks.  

D. Enable QoS for the gaming applications on the router and the son’s computer.

This is important as enabling QoS on either the router or the son's computer only will not help in improving wireless speed. We will confirm that QoS is enabled on both. When am done with this and there is still no improvement in wireless transmission speed, I can then consider option C

5 0
3 years ago
Role and importance of internet in today's world
Whitepunk [10]

Today, the internet has become unavoidable in our daily life. Appropriate use of the internet makes our life easy, fast and simple. The internet helps us with facts and figures, information and knowledge for personal, social and economic development.

8 0
3 years ago
_______________is the difference between the darkest and lightest areas of the <br> image
pshichka [43]
Contrast is the difference between the darkest and lightest areas of the image.
8 0
3 years ago
Other questions:
  • QUESTION 1 Someone may choose to own a car instead of leasing because: AThe car can be resold later to make some money back. BTh
    9·1 answer
  • Which operator is used for quotient division in java​
    6·1 answer
  • What does gps stand for ?
    15·2 answers
  • Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger
    7·1 answer
  • Galleons, Sickles, and Knuts are types of coinage from the Harry Potter franchise. Write source code in C++ that converts the nu
    9·1 answer
  • To recover from driving off the road steer back onto the road in then ?
    14·2 answers
  • A startup disk cannot be detected when booting a computer. The disk's pressence is reported by the system firmware, But Windows
    9·1 answer
  • Is the address 7b invalid regarding cell references?
    8·1 answer
  • Cho một File Input.TXT chứa dãy nhị phân liên tiếp của một văn bản đã mã
    13·2 answers
  • What is a term commonly used to describe the Python dictionary feature in other programming languages
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!