5. This weeks programming task will cover more of the concepts required by Assignment 1. You should aim to get the help of your tutors and make further revisions.Coding exercise steps (Hint: Need help? Ask your tutor via CanvasDiscussionsIIE02): Follow CanvasModulesWeek 2 first. As explained, Java has 8 primitive data types.a. Make a copy of your Week 01 template Eclipse project and rename the project to IIE02 or similar, as shown during the week 1 weekly live lecture. Then rename the PleaseRenameMe.java to something appropriate to the application (avoid names such as IIE02.java; give it a personality!) but remember to follow class naming conventions (refer to IIE01). Now think of: a sequence of characters (arbitrary text), a single character a whole number, a number with a decimal point, a true or false value and then declare 5 variables suitable for the above and assign these values in those variables. You must follow Java naming conventions for variables. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.b. Now modify the code from step 5.a (there is no need to show the old version; you may remove it from your submission post if you have posted) so that the 5 variables receive their values from 5 separate user inputs using the gt.getInputString method. As shown in CanvasModulesWeek 2, inputs taken as Strings will need to be converted to primitive data types using the wrapper classes of those primitive data types. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.c. For each data type+variable combination, perform a check of your choice using an if-statements and create a different behaviour/pathway in the program. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.d. For each declaration and condition, add justification comments as required by Assignment 1s specification. This is a skill at which you will get better with experience and it is important to get started. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.e. [Optional to do but follow when solution is shown during the weekly live lecture]: Instead of having 5 separate prompts, take the inputs using a single .getInputString method invocation then store the individual pieces in the 5 separate variables.Continued |
Access issues: For non-programming technical issues (relating to infrastructure, passwords, etc.) please call the RMIT IT Service and Support Centre for quick help on 03-9925 8888 and remember to ask for a reference number and pass it on to your instructor.
Extensions: For all new extensions, a pply for special consideration online . Contacting your tutors, instructors first will lead to delays.
Please follow/complete all steps below in the given sequence:
- Check your official @student.rmit.edu.au e mail account for announcements and other communication from the university. If getting in touch with your instructors, please only use this account (not Canvas inbox, messages, personal email, phone, Microsoft Teams, etc.)
- Watch any unwatched recordings of the Weekly Live Lecture (and from week 2, complete all missed tutorials) before going further.
- Is there something that you have not fully grasped from what has been covered so far? Please have your doubts clarified via one of the relevant forums under CanvasDiscussions. Leaving gaps has shown to be severely detrimental to learning.
Did you give feedback? Topic: End of week 1: Tell your coordinator how you went
Reviews
There are no reviews yet.