Encapsulating the concept of processing

Assignment Help Business Economics
Reference no: EM131432348

When a user signs in for the first time to a website, the user has to submit personal information, such as user_id, name, email address, telephone number and so on. Typically, there are two fields for passwords, requiring the user to enter the password twice, to ensure that the user did not make a typo in the first password field. 

Write a class encapsulating the concept of processing a form with the following elements:

User_id

Password

Reenter password

Email address

Name

Street Address

City

State

Zip

Telephone

You will store these values as strings in an array. 

Write the following methods in your class:

1. A constructor with one parameter, an array of 10 strings (representing one element for each of the fields above), the only instance variable.

2. Accessor, mutator, toString methods

3. A method checking that no Strings are empty. If at least one is empty, return false; otherwise return true.

4. A method returning the number of characters in the user_id

5. A method checking if the two Strings representing the password fields are the same, if they are return true, otherwise false.

6. A method checking if the email address contains one and only one @ character and contains at least one "." after the @ character. If these conditions are met, return true; otherwise return false.

Write a test client to test all your methods in your class.

Reference no: EM131432348

Questions Cloud

Who is the narrator : Who is the narrator? what is his attitude toward Miss Emily? What values are reflected by his observation about Miss Emily and about the town and its citizens?
Whats wrong with given strategy : Because we usually control the value of a, one could simply set the probability of a type I error to a very small value, say 0.0001. What's wrong with given strategy?
For hypotheses describe the type i and type ii errors : Write the null and alternative hypotheses about m, the mean number of cars per day that cross the Tappan Zee Bridge.- For the hypotheses in part (a), describe the type I and type II errors.
Identify the types of descriptive statistics : Identify the types of descriptive statistics that might be best for summarizing the data, if you were to collect a sample. Analyze the types of inferential statistics that might be best for analyzing the data, if you were to collect a sample
Encapsulating the concept of processing : When a user signs in for the first time to a website, the user has to submit personal information, such as user_id, name, email address, telephone number and so on. Typically, there are two fields for passwords, requiring the user to enter the pas..
Discuss about the objective positivist neoanalytic writers : While there are many neoanalytic writers, they can be divided into two general categories. Some are objective positivist thinkers while others are relativistic/constructivist thinkers. Philosophically, what is the difference among objective positi..
Which error is more serious for the race organizers : Describe type I and type II errors in this context.- Which error is more serious for the swimmers? Why?- Which error is more serious for the race organizers? Why?
Negative aspects of employing a mandatory access control : Explain in your own words the elements of the following methods of access control: Mandatory access control (MAC) and Discretionary access control (DAC)
Knowledge of sql server : You work for a manufacturing company. The company has recently hired a programmer who does not have knowledge of SQL Server, but has been tasked to develop -queries. As a database administrator, you have been tasked with the following to help him/..

Reviews

Write a Review

Business Economics Questions & Answers

  The chinese renminbi

The Chinese renminbi

  Arginal and total willingness to pay-consumption of product

Alvin’s demand for a product is QdA=10-P and Betty’s demand is QdB=5-P. Calculate Alvin and Betty’s marginal and total willingness to pay for 4 units of consumption of this product. Explain it graphically. Derive the aggregate demand function. What i..

  Nature of honor and respect in the ancient world

Read The Iliad as if you are an archaeologist who has just discovered an ancient text which gives you a window into the ancient world. You hold this fragile treasure in your hands, and begin to read, knowing that you must suspend your modern perspect..

  Graph the supply and demand for parking spaces

A university has a fixed number of parking spaces for students on campus. They are currently sold at a price that clears the market. Suppose there is a proposal that the price should be lowered and a lottery held to determine who may park on campus. ..

  The production possibilities frontiers in the figure

The production possibilities frontiers in the figure to the right show how many bananas and coconuts you? (Y) and your neighbor? (N) can consume without trade. Suppose you are initially consuming 10 bananas and 4 coconuts and your neighbor is initial..

  Max marginal utility from snorkeling

Calculate Max's marginal utility from snorkeling at each number of hours per day. Does Max's marginal utility from snorkeling obey the principle of diminishing marginal utility.

  Probability of returning a shipment

Suppose you are receiving a large shipment of Gizmos. The manufacturing standards provide that 1% of Gizmos turn out defective. You randomly select a sample of n = 25 from each lot and return the shipment if more than 2 are found defective. The proba..

  Explain how a clear and simple policy targets agreement

Explain how a clear and simple Policy Targets Agreement (PTA) might have helped to maintain a low inflation regime with low unemployment in the 1990s while in 2012 a similar regime no longer seems to be achievable under a very different PTA.

  What is the real economic growth rate in your graph

Assume that wages and prices are sticky and that we start at a long run equilibrium. Assume that at this initial point, the growth rate of the money supply is 6%, the growth rate of the velocity of money is 5% and that the real economic growth rate i..

  Using gradient series factor

On Juan’s 26th birthday, he deposited $5,000 in a retirement account. Each year thereafter, he deposited $1,000 more than the previous year. Using a gradient series factor, determine how much was in the account immediately after his 35th deposit if:?..

  Understanding data is an important part of decision making

Analyzing and understanding data is an important part of decision making. Econometrics is defined as the statistical methods used to analyze data and make informed decisions. You are required to submit the selected data, methods for testing and valid..

  Dansby-willig performance index-horizontal merger

Dansby-Willig Performance Index, horizontal merger, Herfindahl-Hirschman Index (HHI), Perfect competition, brand myopic, diseconomies of scale.

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