You are asked to obtain the following information from the user using a GUI input format: First name Last name Street address City State Zip SSN (Social Security Number) Home Phone number Cell Phone number DOB (Date of Birth) Gender Address the following questions regarding this scenario: What would be your plan to validate each value entered? Is it better to validate each? Should you input them separately or all at once? Review your classmates' plans. What recommendations would you make to improve their plans?
Added by Brett A.
Step 1
Step 1: List the GUI input fields you will present to the user: - First name - Last name - Street address - City - State - Zip - SSN (Social Security Number) - Home phone number - Cell phone number - DOB (Date of Birth) - Gender Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 98 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
C# Programming Write, compile, and test a program named PersonalInfo that displays a person's name, birthdate, work phone number, and cell phone number on separate lines. Follow the format in the example below: Lucinda Potter 6/24/1992 work 000-555-0101 cell 000-555-0189 Code Patterns to follow are the following (All these have to check out): - Test for output. - Check for work number in code. - Test for date in code XX/XX/XXXX format. - Check for Cell number in code. Start code with this outline: using static System.Console; class PersonalInfo { static void Main() { // Write your main here } }
Akash M.
Specific data validation rules in addition to those defined in Assignment 1 are: 1. For the date of birth text field, a valid date must be entered in the valid dd/mm/yyyy format. Applicants must be between 15 and 80 years old at the time they fill in the form. 2. The selected state must match the first digit of the postcode. VIC = 3 OR 8, NSW = 1 OR 2, QLD = 4 OR 9, NT = 0, WA = 6, SA = 5, TAS = 7, ACT = 0 (e.g. the postcode 3122 should match the state VIC). 3. If "Other skills..." is selected in the Skills Checkbox list, the Other Skills text area cannot be blank. 4. If the above data does not validate appropriately, meaningful feedback should be given to the user. Error messages should be displayed in an appropriate place on the Web page itself (rather than using an alert box).
You are working as a mobile app developer for a company and have been assigned to design the user interface for your company's mobile app. According to your boss, the user interface should look something like this. Your mobile app UI should have the following labels and textboxes: - Customer Name - Customer ID - Customer Address The mobile app UI should also contain a Submit button. The following validation should be executed as soon as the user clicks the Submit button: 1. Customer ID should be between 0-1000. If the user enters any value above 1000, then you need to display an error message. 2. Customer Name should not contain any numeric characters. If the user enters a customer name with numbers, then display an error message. 3. Customer ID, Name, and Address are required fields. If the user does not enter any of the values, then display the required field validation error message. Once you build the UI, then create an additional screen that shows the following things: - Customer OrderID(Label): __________ - Order_Name(Label): __________ - Order_Quantity: __________ - Order_FulfilledBy: __________ You need to submit the following items in a zip file as part of the submission: - Android Project - Output screenshots
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD