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 a single instruction that inverts bits 5 and 6 in bl without changing any other bits?
slamgirl [31]
You want to XOR the register contents with the value 0x60 (a hex word with bits 5 and 6 set).
Not sure how to write that in x86 assembler, is it:

xor bl, 0x60
7 0
3 years ago
The technique called ____ uses a high-speed computer to monitor atmospheric distortion and adjust the optics of a telescope to p
Varvara68 [4.7K]

Answer:

Adaptive optics

Explanation:

Based on the information provided within the question it can be said that the technique that is being described in this scenario is known as Adaptive optics. This is more of a technology than a technique, and it is used improve the performance of optical systems on a telescope by compensating for the incoming wave front distortions by bending a mirror.

6 0
3 years ago
Answer the following questions based on your readings from Module 1. Describe a time when you or someone you observed showed a p
Mila [183]

Answer:

An example  of poor work ethic which I encountered recently was the observation of poor hygiene by an employee of a fast-food outlet of a renowned company.

Explanation:

Some patties suddenly slipped out of his hands and fell on the ground. He did not discard them and simply put them into burg adversely. ers. The fall must have soiled and contaminated them, which would affect the health of consumers. Such incidents can be avoided by the company by training the staff in such possibilities and suggesting corrective actions. Monitoring and taking action against offenders will also help. IT professionals should have good analytical and interpersonal skills besides cross-cultural sensitivity to do good in their roles.

You should apologize for his mistake for reaching the wrong place. The message should be through an electronic message ( sms ) or another instant messaging service, followed by a telephone call. The content of the message should comprise of an apology for not being able to reach in time, the reason for the misunderstanding, your current location and the approximate time it will take to reach the venue. It will be better if you share your location with the client through a GPS enabled application, so that it will be convenient to coordinate.

The tow more skills that are good for IT professionals the the skill off After sale services, and to establish a good relationship with clients.

4 0
3 years ago
Describe the steps required for setting the date and time in Windows 7.​
Vinvika [58]

Answer:

Explanation:

   Click the displayed time in the taskbar and then click Change date and time settings.

   Figure : Date and time settings encircled in red

   Date and time settings encircled in red

   Figure : Date and Time window

   Date and Time window

   Click the Date and Time tab.

   Click Change time zone. Make sure the correct time zone is selected. Place a checkmark next to Automatically adjust clock for Daylight Saving Time if it is not already selected, and then click OK.

   Figure : Time Zone Settings

   Time Zone Settings

   Click Change date and time.

   Click the small left and right arrows in the calendar to select a month and year, and then click a day within the month.

   Figure : Date and Time Settings: Date

   Date selection in the Date and Time Settings window

   Change the time by entering the hour, minute, AM or PM, or by clicking the up and down arrow buttons. Click OK when the time matches the current time.

   Figure : Date and Time Settings: Time

   Time setting in the Date and Time Settings window

   The time zone, date, and time have been set.

Synchronizing time with Windows 7 internet time server

Windows can automatically synchronize the date and time with a time server to make sure the time displayed on your computer is accurate. Follow these steps to enable Internet Time:

   note: If your computer is part of a domain, the Internet Time feature is not available. Contact your System Administrator for clock synchronization information.

   Click the displayed time in the taskbar and then click Change date and time settings.

   Figure : Change date and time settings

   Change date and time settings

   Figure : Date and Time window

   Date and Time window

   Click the Internet Time tab, and then click Change settings.

   If you are prompted for an Administrator password or confirmation, type the password or provide confirmation.

   Figure : Internet Time tab

   Internet Time tab

   Make sure that Synchronize with an Internet time server is checked.

   Figure : Internet Time Settings

   Internet Time Settings

   Make sure the computer is connected to the Internet and click the Update Now button.

   The computer connects to an Internet server and updates the time on the computer.

       note: If the computer fails to receive an update from the selected Internet time server, a message opens stating that an error has occurred. Select a different server and try again.

   Click OK.

   Your computer's clock will now regularly syncronize via the Internet.

8 0
3 years ago
At the monthly product meeting, one of the Product Owners proposes an idea to address an immediate shortcoming of the product sy
liberstina [14]

Answer:

Option B.

Explanation:

One of the Brand Owner suggests a suggestion at the monthly brand conference to fix an apparent weakness of the company system: to retain a copy of the consumer cost plan in the consumer records in the database. The user knows, in DynamoDB they can deal with large documents or binary objects.

Then, the user offers a conditional OK to do a Minimal Viable Product check but stipulates that even the size cap on both the Name & Value attribute must be respected. The combined value and name should not exceed 400 KB, therefore, it is the appropriate limit.

8 0
2 years ago
Other questions:
  • What class of attacks use innovative attack tools and once a system is infected it silently extracts data over an extended perio
    6·1 answer
  • Do applications need to exchange udp control messages before exchanging data
    11·1 answer
  • I'm stuck on this Java exercise problem and don't know how to organize my code with proper formatting and it's not helping that
    14·1 answer
  • I need help making a rap song of my own !! Ty
    11·2 answers
  • Which of the following correctly describes a work in the public domain?
    12·1 answer
  • Which of the following is primarily operated by a touchscreen?
    5·1 answer
  • Select the correct answer.
    8·1 answer
  • ( BRAINLIEST) <br> Name 2 input devices and 2 output devices on a smart phone.
    12·1 answer
  • HELPPPP MEEEE!!!!! ITS LIFE OR MUERTEEE
    14·1 answer
  • Task 04
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!