Write a program using two-d array to store a user name

Assignment Help Programming Languages
Reference no: EM1360604

Write a program using a 2-D array to store a user name and password (both strings) that will ask the user for his/her user name and then test to see if they are a valid user, if they are a valid user then the program should ask the user for their password. If they are not a valid user the program should allow the user to make a total 3 attempts to enter a valid user-name. If the user does not enter a valid user-name the program should exit after they have extinguished their 3 attempts and print an error indicating why the user was kicked out. If the user has enter a valid user-name the program should check to see if the password they entered is valid, if it is then print a welcome user screen if not allow the user to retry their password 2 more times ( a total of 3 tries). If after 3 attempts at the password the program should exit and print an error indicating why the user was kicked out.

Reference no: EM1360604

Questions Cloud

How tax will increase goverment revenue : The legislature has stated that the $.03 tax will increase goverment revenue by $300,000 per month and raise the price of gasoline by $.03 per gallon. is this correct.
Explain the technical and demographic : Explain the technical, demographic, and management practices that might cause you to be especially concerned about the seniority clause in your current contract.
Retention plan : There has been a high voluntary turnover rate at this company and the CEO has directed you to develop a retention plan to resolve the high voluntary turnover rate. Outline a retention plan.
What is the area of contact of each tire : What is the area of contact of each tire. find the coefficient of static friction between the car and track from these data.
Write a program using two-d array to store a user name : Write a program using a 2-D array to store a user name and password (both strings) that will ask the user for his/her user name and then test to see if they are a valid user.
Illustrate what would be the opportunity cost of x had : Illustrate what would be the opportunity cost of x had the economy efficiently produced 10 units of y? Can the economy efficiently produce these quantities.
Motivational factors involved in your behavior : Please help me to understand a description of a scenario that illustrates two levels of Maslow's Hierarchy of Needs and explain how it does so. Then, explain how Maslow's theory may not capture all of the motivational factors involved in your beha..
How does this work at the workplace : How does this work at the workplace and what is the significance of prototyping? Would prototyping work in the workplace? Explain.
What is the magnitude of the horizontal net force : What is the magnitude of the horizontal net force. An 845-N sled is pulled a distance of 168 m. The task requires 1.20 multiplied by 104 J of work and is done by pulling on a rope with the force of 121 N. At what angle is the rope held.

Reviews

Write a Review

Programming Languages Questions & Answers

  Communicate with a pc using the rs232c serial protocol

In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.

  Computing average net profit per sale of product

Your company bought 250,000 online advertising impressions and made average net profit per sale of product of $5.

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Write program uses while loop to output all odd numbers

Write a program that uses while loop to perform the following steps: Output all the odd numbers between firstnum and secondnum inclusive.

  Advantages of using invisible html table to create web page

What advantages do you see in using an invisible HTML table to structure an entire Web page? What disadvantages does the table structure pose?

  Program that uses for loop prompt user to input two integers

Write a program that uses for loop to preform the following steps: Prompt the user to input two integers: firstnum and secondnum.

  Writing a class

Build a class for a type called Fraction

  Program to compute grade point average

Write a program that uses such a file to calculate your grade point average(GPA). A GPA is based on a scale from 5, where A is 4, B is 3, C is 2, D is 1 and F is 0.

  Write a program that takes one command-line argument

Write a program called runsim that takes one command-line argument. Check for the appropriate command-line argument and output a usage message if the command line is incorrect.

  Program to multiply two integers

What occurs when you multiply two integers whose product is larger than largest int value? Try out example and report your findings.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd