Develop an application that could be utilized by employees


Assignment: BreadCo Customer Form

Let's start to develop an application that could be utilized by employees (and maybe eventually customers) of a sandwich restaurant which we'll refer to as "BreadCo".

Start a WinForms application, and use the form provided as a "customer" form.

The first thing we might need to consider is a way to record customers. Here are the requirements for the customer form:

• Change the form title (text property) to "Customers"
• Text box to enter title (Mr., Ms., etc.)
• Text box to enter first name
• Text box to enter last name
• Text box for street address
• Text box for city
• Combo box for state (for now, add MO, IL, and 3 other states)
• Text box for zip code
• Text box for email
• Check box for "Club member?"
• Button to indicate "Save"

Each of the above controls needs a label to the left of the control. Remember to start using good coding conventions, which includes picking a descriptive name for each control, starting with a 3-letter code for the control type. For example, a good name for a text box to record an email would be: "txtEmail".

Oh, and make it as "pretty" as you'd like, but not at the expense of including all of the above requirements. I won't be grading "prettiness", but why not exercise your creativity?

When "Save" is pressed, check for the following conditions:

• First name, last name, zip code and email must not be blank.
• Email must contain one "@" character.
• Zip code must contain 5 digits.

If any of these conditions are not met, display a single message box with the corresponding error messages, or display"No errors detected". Here is how you might code this:

• Start by defining either a list of strings (each string is an error message) or use a stringbuilder class.
• If an error condition exists as indicated above, add an error message to either the list or the stringbuilder object.
• Convert the list of strings or the stringbuilder object to a single string and display it.

For general information and great working code examples start with chapter 2 in the textbook. Chapter 3 continues the discussion concerning windows forms, and chapter 10 has even more great examples.

This is where the textbook really shines, so dig in and check out some of the examples, you'll be glad you did.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Develop an application that could be utilized by employees
Reference No:- TGS02957025

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)