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

  Economics assignment

This document contains various important questions and their appropriate answers in the subject field of Economics.

  Demand and supply curves

Economics is the study of the principles governing the allocation of scarce means among competing ends when the objective of the allocation is to maximize the attainment of the ends.

  Long-run perfectly competitive equilibrium for the firm

Evaluate Government intervene and correct this situation?(a) Explain the concept of a concentration ratio. A rise in the price of magarine Explain the impact of external costs and external benefits on resource allocation long-run perfectly c..

  Supply and demand diagrams

Explain each of the following using supply and demand diagrams,  With the use of a graph, explain how these two programs affect cigarette consumption and the price of cigarettes.

  Case study: fisher-price toys

The case study of the Fisher-Price Toys, Inc., a popular case in basic economics and management from the prestigious Harvard Business School.

  Draw the production possibility curve

Draw the production possibility curve and a. Define consumer surplus and producer surplus.

  Tax revenue

The Australian government administers two programs that affect the market for cigarettes

  Maximize total welfare

How many tickets to sell to maximize total welfare.

  Difference between the cv and the ev

The change in consumer surplus (?CS) is not "theoretically" justifiable like the CV and EV but it continues to be the most widely used measure of consumer welfare change. Explain how this can be reconciled

  Depict von neumann-morgenstern utility index u in a diagram

Depict the von Neumann-Morgenstern utility index u in a diagram

  What is the market solution

What is the market solution (market price and quantity) and What is the total surplus of the society under the market solution

  Calculate gross national product and net national product

Calculate gross national product and net national product

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