- of existing posts as it affects submission timing.
- This weeks programming task will cover concepts required by Assignment 2. You should aim to get the help of your tutors and make further revisions.
Coding exercise steps (Hint: Need help? Ask your tutor via CanvasDiscussionsIIE03):
Follow CanvasModulesWeek 3 first. It covers further topics on if-statements (compound conditions and nested if-statements) and using while-loops for repeating a specified number of times.
- Make a copy of your IIE02 Eclipse project and rename the project to IIE03 or similar, as shown during the week 1 weekly live lecture. Ensure that your .java file is not PleaseRenameMe.java and it is something relevant to your application (avoid names such as IIE03.java; give it a personality!) but remember to follow class naming conventions (refer to IIE01).
Now modify some or all of the if-statements to include compound conditions and nested if-statements. It may not be possible to do these for all of the values but aim to do for as many as possible to gain experience. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.
- Add a scenario 1 type while loop to repeat the input-taking. The user can specify how many records they will enter and your loop must repeat this many times to process that many records. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.
- For each declaration, condition and code block, add justification comments as required by Assignment 1/2s 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.
- Make a copy of your IIE03 and name it IIE03C. Now get your program to work using Scanner and System.out to operate exclusively via the console area of Eclipse (IIE03C should not have any mentions of GTerm or JOptionPane). You must only use
Scanners .nextLine() method to take inputs as Strings first and then covert them to relevant primitive types using the wrapper classes (e.g. Integer.parseInt, etc.). Do not use .nextInt(), .nextDouble(), etc. Are you stuck? Please ask your friendly tutor by creating a post in the relevant IIE forum.
- [Optional] Make a copy of the Week 1 Template project and name it IIE03-Optional. Independently investigate how to obtain random numbers in Java. Next, use Random numbers with using GTerms .setXY, .setColor methods to experiment with different types of outputs that you can create. Use scenario 1 type loops to repeat your random effects.
Reviews
There are no reviews yet.