PROG1165 Assignment 04 – Input Validation

$30.00

Category: Tags: , , , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (2 votes)

Assignments 4 and 5 can be completed in groups of 2, 3 or 4. The same group must complete both assignments.
There are two parts to this assignment, with two separate dropboxes:
1. Your team must examine the requirements for the program and come up with a requirements list for input data validation for the program. This is to be handed in at the first deadline. A master requirements list for input data validation will be generated from all teams’ submissions that you will use when writing the program. It will be posted on eConestoga by the end of the day after the 1st deadline. It is your responsibility to check eConestoga for this.
2. Your team will write the program, based on the description below and the additional master requirements list for input data validation (as per the results of part 1. above). It must be handed in by the second deadline. You cannot hand it in more than 8 hours late (this is a major deviation from the normal late policy). A ZIP file with all submitted executables will be created. It will be posted on the day after the executables are due. It is your responsibility to check for this posting.
Milestone 1 – The Requirements List
Your requirements list for input validation should not be a formal document.
It must be a text document called req.txt. It must have the first and last names of each group member at the top.
The requirements should be a bulleted list oriented towards being friendly for the user while still maintaining the integrity of the input data.
Your unique identifier will be provided as part of the feedback to your submission in D2L.
Milestone 2 – The Program
Create a program that takes input for an address book (of people, not businesses), validates the input, and stores the data in an array. Once the user has entered the desired number of entries, the address book should be displayed in its entirety.
The data stored consists of:
• Name (maximum length 30 characters)
• Street Address (maximum length 60 characters)
• City (maximum length 60 characters)
• Province (in the format of a 2 character long Canadian province abbreviation used by Canada Post)
• Postal Code (in the format of a Canadian Postal Code)
• Phone Number, including area code
As noted earlier, the specific requirements for input validation will be provided after the first deadline. It is a compilation of all submitted requirements.
You must prompt the user in a user-friendly way. This requires that the prompt be informative but not overbearing.
If the user enters invalid input, an error message must be displayed indicating what the problem is. The user must be given an option as to whether to skip entering this part of the address book entry (e.g. skip the Address and continue with the City) or to try again.
The array of addresses is of size 10. The user will be permitted to enter up to 10 entries. If the user chooses to end entry early, they can specify this by pressing ENTER as the first and only character of the name (this is the lone exception to the “pressing ENTER skips a component” requirement).
Once the user has done 10 entries or has chosen to end entry early, the program will then display the contents of the address book, three entries on a page. Each entry will be five lines in size. The lines must be in the following format:
Fred Flintstone
11 Cobblestone Lane
Bedrock, ON, N2Y 3E8
519-555-1212
++++++++++++
Paginate your output properly (the user should not have to scroll to see output of a single address book entry.
Do not use regular expressions or any third-party libraries for this assignment.
When the program starts up, display the name (string) that your group has been assigned after Milestone 1. This will uniquely identify your assignment. Do not put any other identifying information (e.g. “Fred’s Address Book) in the program.
Call your executable file astA4.exe.
Submit your solutions (cleaned) and your executable to the appropriate dropbox. If you do not have an executable submitted for this assignment, you will lose 40% of the marks assigned to milestone 2.

NM