PROG2005 – Programming Mobile Systems
Assignment 1 (T1 2023)
This assignment is due on Week 4 , Monday, 2 7 March 2023, 11:59 pm , and is worth 40% of your overall mark. You should work on this assignment individually (This is NOT a group assignment) . You must submit your source code as one ZIP archive containing both parts of the assignment to the Assignment 1 submission link on the unit site. If the file size is too large to upload to the submission link, please send the ZIP file via email or a method specified by your tutor. Note that marks will be deducted for poorly structured or uncommented code. All source code files submitted must include title comments that at least identify the author and the assignment part. The separate parts of the assignment are to be submitted in separate subdirectories (e.g. , Part 1, Part 2, etc.) – submissions that ignore this instruction and leave all assignment files in one directory will be penalised. Please note that this assignment w ill be due after the weekly modules have covered the last of the required materials. Do not leave this assignment to the last minute – you can start on it while concepts are fresh in your mind. You may start Part 1 before you have studied all of the requir ed materials. If you require an extension, you must apply to your tutor before the due date to be considered. Unless an extension is approved, there is a late submission penalty.
Part 2 can be an expansion of Part 1 though you can start again from scratch if you wish. It is recommended that you save your Part 1 before you start modifying it for Part 2. For lesser marks, you can divide your assignment into several smaller HTML pages to demonstrate the different aspects without having everything working together. This is not the preferred method.
Part 1 – Basic TypeScript App (1 8 marks)
Membership start day Contact number Email Residential address Emergency contact number * Medical condition
The data has the following requirements (1 mark):
- Each record must have a value for all fields (*) . Only the ‘ Medical condition ’ field can be blank.
- The ‘Gender’ and ‘ Membership type ’ field s value must be one of the options shown.
Your app should implement the following :
- A way to edit and update member data ( 2 marks). Remember , you do not have to permanently save the data between browser sessions, but you do have to save it while the app is active. HTML form widgets are the easiest here.
- A way to add new member information ( 2 marks). Consider re -using the edit form above, and it will require careful thought so as not to confuse the user.
- A way to delete an individual member with a “Do you really want to…” interaction to reduce accidental deletions ( 2 marks).
- A way to sea rch the member by the Member ID field ( 2 marks). This will probably be done with an HTML list, but you may use other techniques (e.g. , implement a search text field – harder).
- A way to display the list of all gym member s added to the data structure (2 mark s).
- A way to mark member s as trial members and display the list of all trial member s (2 marks).
Your app should also:
- Provide an interface equally viewable by narrow and wider mobile screens (it will be tested). Note that this is just a request to keep your app simple and displayable on narrow screen s as well as possibly wider screens. You can put links on a long page to navigate your app on narrow screens. This will be important when we get to mobile device apps later in the unit (1 mark).
- Use intera ctive features (e.g. , use innerHTML assignments) to improve user experience (not alert() calls!). You are expected to do error messages where necessary ( 2 mark s).
- Use of CSS styles ( 1 mark). Just use them; there are no marks for artistic design. We are lo oking for the
ability to use styles .
Part 2 – Basic Angular App (22 marks)
Modify the app from part 1 to become a multipage Angular app. For example, place the add record s on a separate page to the search facility. You can use as many pages as you like but don’t forget to use an error page (for malformed URLs), an Information page, e.g. about the app and have your name as an app developer. A Help page showing how to use the app would be nice as well.
Marks are allocated as follows:
- Having all options implemented for add ing, delet ing, displaying (including favourites) , searching and editing member s (4 mark).
- The app should meet all data requirements stated in Part 1 ( 1 mark).
- Having a working Angular app with appropriate Angular coding (3 marks). Minimally , the app will have one component and one module, but you will need more components to implement the follo wing requirem ents.
- Using Angular forms (3 marks). This is separate from the multipage facility. If you just add Angular code to the one -page TypeScript app from Part 1, you have not used Angular forms. There will be no marks for only HTML form elements .
- The multipage facility using the Angular router (3 marks). This includes the navigation between pages, error indicators , and no broken links. Your ap p should have at least four (4) pages.
- Add at least one help button on each page that shows app ropriate help messages. You should make interaction with the help facility as easy as possible. Also , add helpful information, including error messages, when data entry is incorrect (3 marks).
Use of CSS styles ( 2 mark s). Just use them ; there are no mark s for artistic design. We are looking for the ability to use styles. Feel free to use styles you find in the Angular documentation or other online sources (a reference to the original designer should be made in your code if appropriate). Your app should be user-friendly and less complex and needs to validate all inputs (e.g., input fields that need numbers only should not accept letters) (3 marks).
This assignment, which is to be completed individually, is your chance to gain an understanding of the fundamental concepts of TypeScript and Angular on which later learning will be based. It is important that you master these concepts yourself.
Since you are mastering fundamental skills, you are permitted to work from the examples in the site or study guide , but you must acknowledge assistance from other textbooks , classmates , or online resources . In particular, you must not use online mate rial or help from others, as this would prevent you from mastering these concepts.