PRG255 Advanced Programming Using C
Answered
Task:
Background:
From their creation to the smart devices we use today digital phones have had some way of storing phone numbers for our convenience. At their roots, before cloud functionality and inter app connectivity, they are just standard identifiers for other users with similar devices.
Unfortunately, remembering 10 digit strings is something humans are generally not good at, so we tie this number to either a name or place so we can remember them. A basic contacts app, or at least its core logic, needs to allow a user to add, edit, delete, and lookup a contact. Below are 4 different milestones that offer a template on how to accomplish this:
Milestone 1 (3%):
1. a) Design a contact struct with some information besides the phone number that a standard user would find helpful, for example: first name, last name, location, company, and email. Your contact must have at least 5 fields. Phone number will be character string.
b) Our application should at least be able to hold 20 contacts, 10 should already be filled with data. Instead of defining structs individually, make a struct array.
c) Build a function to read and display (print) all current phone numbers from the struct array.
Milestone 2 (4%):
2. a) Build a user interface that will allow a user to either add a contact, delete a contact, edit a contact, lookup a contact, modify the data file, or exit. The user should be able to choose an option and be prompted to choose to either enter the person’s last name or their phone number. Prof. Eric Ferguson
b) Find. When the user chooses a piece of information to identify the contact, the appropriate contact struct will be selected. Use a function that will take in a struct array, find the appropriate struct, and return that struct