COMP 1202 Assignment 2 Due: Friday, April 9th , XXXXXXXXXX:00 p.m.) XXXXXXXXXXGiven: Monday March 22th , 2021 Group size : maximum 2 persons (from your lab session) Member 1: Student Full Name: ,...

how much will this costs?


COMP 1202 Assignment 2 Due: Friday, April 9th , 2021 (11:00 p.m.) Given: Monday March 22th , 2021 Group size : maximum 2 persons (from your lab session) Member 1: Student Full Name:,< first="" name=""> Usana, Janine Mae Student Id Number: 101328279 Member 2: Student Full Name:,< first="" name=""> ___________________ Student Id Number: ____________________ You MUST: · Clearly comment your code (At least with your names and id number). · You must use appropriate variable names · Print meaningful input and output statements · Indent you code where necessary All submissions should at least compile including non-working submissions. Submission Guidelines for UPLOAD to Blackboard: Required for submission as 2 separate files (do not add the word document to the zip file): 1) This Microsoft word document with: a. The full name and student number. b. The complete code solution pasted into it. 2) You must also compress (zip) your complete Visual Studio solution (i.e. entire project folder) and upload it to blackboard. You may upload as many times as you wish however, only the last submission will be marked. Scenario: You are required to make a command line based Contact Manager application. Your application must allow a user to add, edit, search and view Contacts. The program must have a menu consisting of the following five (5) options: 1) Add Contact 2) View Contact List 3) View a specific contact 4) Delete Contact 5) Exit Brief descriptions of each option in the menu Menu Item Description Add Contact 1) Asks the user for all the state value information for a contact. 2) checks if there is space in the array to hold the new contact. 3) creates a new Contact object and adds it to the array if there is space. If the array is full, print “Sorry… the Contact List is Full!”. View Contact List 1) Prints a list showing the first and last name only, of each Contact in the system. View a specific contact 1) Asks the user for a first name and a last name. 2) Searches for a contact with the first and last name entered. 3) Displays the contact information if found. If the contact is not found, “Contact does not exist.” must be displayed. Delete Contact 1) Asks the user for a first name and a last name. 2) Searches for a contact with the first and last name entered. 3) Deletes (removes) the contact object from the array if found. If the contact is not found, “Contact does not exist.” must be displayed. Exit 1) Prints a message “Thank you for using the contact manager.” 2) Exits the program Contact objects must be created to store the information on each individual contact. The UML for the Contact object is given below Contact -firstName: string -lastName: string -phone: string -email: string -dayOfBirth: int -monthOfBirth: int -yearOfBirth: int + getFirstName() :string + getLastName(): string + getFullName():string + getPhone() :string + getDateOfBirth(): string + getInfo() :string A constructor must be written that takes all the state values (fields) listed in the Contact class. A list of behaviours the Contact class must have is given in the following table: Method Name Scope Behaviour getFirstName() public Returns the first name of the contact getLastName() public Returns the last name of the contact getFullName() public Returns the first and last name of the contact as one string getPhone() public Returns the phone number of the contact getDateOfBirth() public Returns the date of birth of the contact as one string toInfo() public Returns a string containing all the information about the contact. This assignment specifically tests the concepts of arrays and Objects Oriented Design basics. Restrictions for this assignment: You must create and manage all arrays with your own code. 1. You may NOT use other C# collection objects (for example arraylist or list etc.) 2. Please do NOT change the specifications. For example do not add new contact data. 3. You must create and manage all arrays with your own code. OOP design hint: Your main program should NOT directly be responsible for maintaining or managing the array of Contacts. You must create another object to manage the Contacts for you. Paste your complete code for you main program (and any other classes) after this line:
Apr 08, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here