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

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Write stored function that takes in zipcode as parameters

Write a stored function called zip_exist that takes in a zipcode.zip%Type parameter and returns a Boolean. The function will return TRUE if the zipcode passed into it exists.

  Write a bash shell script prompt user to enter first name

Write a Bash shell script named phone.bsh that prompts the user the to enter first or last or any portion of person's name, so that can be found the appropriate entry in the phone directory file.

  Create ajax-based product catalog

Create an AJAX-based product catalog which obtains its data from JSON files located on the server. The data should be separated into four JSON files.

  Wilkerson-irwin algorithm to minimize mean tardiness

Write a program to implement the Wilkerson-Irwin algorithm to minimize mean tardiness.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  Design application that reads arbitary number of integers

Design and implement an application that reads an arbitary number of integers that are in the range of 0 to 50 inclusive and counts how many occurences of each are entered.

  Create application consisted of three classes

Create an application comprised of three classes. The first class called Crayon represents one crayon of a particular color and length (height).

  Write a single line for body of constructor to create object

Create the constructor Orb(int xSpeed, int ySpeed). Write a single line for the body of the constructor,which creates a new Velocity object.

  Write a program that inputs number of hours worked

Write a program that inputs the number of hours worked and hoursly pay rat for employesand outputs their total pay.

  Program to solve roots of quadratic equation

Write down a program which solves the roots of the quadratic equation of the given form:- ax 2 + bx + c = 0. Display the results on screen.

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