Specifications Your task is to complete various exercises in BlueJ, using the Java language, and to submit these via the MySCU link created for this purpose.

CSC81002 Assignment 1
Weight: 20% of your final mark
Due: 13 April 2019 11 pm
Specifications
Your task is to complete various exercises in BlueJ, using the Java language, and to submit these via the
MySCU link created for this purpose.
Marking criteria includes:
• Use of correct coding style, including the use of comments;
• Accuracy of coding;
• Use of suitable coding structures;
• Correct submission and naming conventions of assessment items as required.
Getting Help
This assignment is to be completed individually. It is the opportunity to gain an understanding of the
concepts of object oriented programming and coding syntax. It is important that you master these concepts
yourself. You are permitted to work from the examples in the study guide or textbook but you must
acknowledge assistance from other textbooks or classmates. In particular, you must not use online material
or help from others, as this would prevent you from mastering these concepts.
Who can you get help from? Use this diagram to determine from whom you may seek help with your
program.
Need Assignments Hel…
4/2/2020 54231 – CSC81002 Assignment 1Weight: 20% of your final markDue:
https://www.australiabesttutors.com/Recent_Question/54231/CSC81002-Assignment-1Weight-20-of-your-final-markDue 3/6
Lecturer Tutors Online Forums
Relatives Students outside unit Hired coders
Classmates Private Tutors Other
Encouraged
Attribution Required
Ask tutor
Not acceptable
Assignment Q1
To be completed in week 1
Create a word document and call your document username-A1Q1.docx. For example, mine would be
bsmart10-A1Q1.docx
Open the house project from chapter 1 of the book projects.
Open the terminal window and record method calls.
Create a picture with at least six (6) objects (circle, square, triangle, and person), recording all method
calls.
Take a screenshot of your picture and add it to the word document you created earlier. Now copy the list
of method calls needed to create the picture to the word document after the screenshot.
Add your name and student ID in the footer of the word document, as well as -CSC81002 Ass 1 Q1-.
Assignment Q2
To be completed in week 2
Create a new BlueJ project called username-A1Q2. For example, mine would be bsmart10A1Q2.
Click on New Class and give the class a name of Computer. Make sure -Java- and -class- are selected.
Write a description of your new Class in the top comments. Make sure you put in your name as the author
and the date as the version you last worked on this exercise.
Add 2 fields that are suitable for a computer. One field should have a type of int, the other should have a
type of String.
Add a third boolean field called isNew.
Write a constructor for your Computer class that takes two (2) parameters – the first of type int, the second
of type String. Set the initial values of the first 2 fields that you created using the parameters.
Write accessor methods for all 3 of your fields
Write mutator methods for all 3 of your fields
Write a method called printDetails, which prints out all the details of a Computer object.
Please have a look at the ‘Printing’ section in the Topic 2 study guide to see how to do this.
Take into account the isNew status. The printDetails method should have an if-else statement that prints a
line saying that the computer is new, or the computer is not new.
Assignment Q3
To be completed in week 3
Create a new BlueJ project called username-A1Q3. For example, mine would be bsmart10A1Q3.
Create a class called Heater, that contains four fields, temperature, increment, max and min, all of whose
type is double.
Make sure you write a description of your new Class in the comments, with your name as author and date
as the last date you worked on this exercise.
Define a constructor that takes and sets the min, max and sets the temperature to 20.0, and increment to
1.0.
Also define a constructor that takes no parameters. The temperature field should be set to the value of 20.0
in this constructor, increment to 1.0, and maximum and minimum to reasonable amounts.
Define the mutators warmer and cooler, whose effect is to increase or decrease the value of temperature by
the increment respectively. The mutator methods should not let the temperature be set to a value higher
than max, or lower than min.
Add a mutator method that sets the value of the increment. Add a check to make sure that the increment is
not set higher than 3 or lower than 0.
Need Assignments Hel…
4/2/2020 54231 – CSC81002 Assignment 1Weight: 20% of your final markDue:
https://www.australiabesttutors.com/Recent_Question/54231/CSC81002-Assignment-1Weight-20-of-your-final-markDue 4/6
Define an accessor method to return the value of temperature.
Test your work.
Zip the project and include in your assessment files.
Assignment Q4
To be completed in week 4
Create a new BlueJ project called your username-A1Q4. For example, mine would be bsmart10-A1Q4.
Create a class called LotsOfNumbers, that has one ArrayList field called numbers, which holds a
collection of Integers.
Make sure you write a description of your new Class in the comments, with your name as author and give
the version as the date you last worked on this exercise.
Define a constructor that initialises the ArrayList. Note that you can add any other initialisations that you
feel are relevant.
Create methods to add elements, remove elements and get the number of elements in the collection. Make
sure you add tests for errors and sensible error messages.
Create a method called printNumbers. This method should loop through the collection and print out the
elements (each Integer on one line) as determined by the following rules;
• If the Integer is divisible by 3, instead of printing the Integer, it should print divisible by 3
• If the Integer is divisible by 5, instead of printing the Integer, it should print divisible by 5
• If the integer is divisible by both 3 and 5, then it should print divisible by 3 and 5
• If none of the prior criteria are met, then the method should print the Integer element.
For example, if the collection contained the Integers 1, 2, 3, 4, 5, 10, 2, 4, 15, 9, then the printout would
look like:
1
2
divisible by 3
4 divisible by 5 divisible by 5
2 4 divisible by 3 and 5
divisible by 3
Once you have finished your project, open the terminal window in BlueJ and turn on record method calls.
Create a new Numbers object, and then add at least eleven (11) Integers using the add method you wrote.
Make sure you don’t use the same collection as my example. You must have an Integer that is divisible by
3, an Integer that is divisible by 5, and an Integer that is divisible by 3 and 5.
Demonstrate removing an element using the remove method you wrote, and then find the number of
elements using your method. Finally, run your printNumbers method.
Copy all your calls into a text file and save it in your BlueJproject folder.
Assignment Q5
To be completed in week 5
Part A:
Imagine you need to open a standard combination dial lock but don’t know the combination. Write a Java
program in BlueJ with a method that prints all of the possible combinations, so you can print them on a
piece of paper and check off each one as you try it. Assume the numbers on each dial range from zero to
ten and three numbers in sequence are needed to open the lock. For example, the output would look like:
0-0-0
0-0-1
0-0-2
// lots more combinations
10-10-9
10-10-10 Part B:
Suppose the lock isn’t a very good one and any number that’s no more than one away from the correct
number in each digit will also work.
Write another method that takes 3 parameters of type int that are the combination of the lock. The method
Need Assignments Hel…
4/2/2020 54231 – CSC81002 Assignment 1Weight: 20% of your final markDue:
https://www.australiabesttutors.com/Recent_Question/54231/CSC81002-Assignment-1Weight-20-of-your-final-markDue 5/6
will print out a minimal list of combinations you would need to try to guarantee opening the lock.
For example, if the combination is 7-6-3 then 7-5-4, 6-6-2, 8-5-3 and other combinations will also open
the lock. The first combination printed would be 6-5-2 and the last would be 8-74. You will also need to
make sure that no number in the combinations that are printed is less that zero and greater than ten as the
numbers on each dial range from zero to ten.
Submission
You should now have 4 BlueJ projects and 1 word document and a text file. You must zip the projects, the
word document and the text file in into one zip file called usernameA1.zip. For example, mine would be
bsmart10A1.zip
Submit this file via the Assignment 1 link on MySCU by the due date. Please leave enough time for it to

The post Specifications Your task is to complete various exercises in BlueJ, using the Java language, and to submit these via the MySCU link created for this purpose. appeared first on Versed Writers.

Acemyhomework
Calculate your paper price
Pages (550 words)
Approximate price: -
Acemyhomework

Quality Research Papers

We always make sure that our academic writers follow all your instructions precisely. You can choose your academic level and we will assign a writer who has a respective degree.

Acemyhomework

Best Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Acemyhomework

Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document.

Acemyhomework

On time Delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. Otherwise a 100% refund is guaranteed.

Acemyhomework

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. We also promise maximum confidentiality in all of our services.

Acemyhomework

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Homework Market

Place your order

Fill in the order form and provide all details of your assignment.

Homework Market

Proceed with the payment

Choose the payment system that suits you most.

Homework Market

Receive the final file

Once your paper is ready, we will email it to you.

Academic Writing Services

Whether you have an urgent deadline or those that have time. You can take some time and relax after trusting us with your paper. We make sure that we conduct the academic writing services diligently.

Acemyhomework Acemyhomework

Essays

Essay Writing Service

Among the wide variety of academic work, essay writing is one of the simplest a student can ever come across. Usually, it is a task which students encounter and learn how to write whilst in high school. However, the case is quite different when it comes to university and college.

Acemyhomework Acemyhomework

Term Papers

Term Paper Writing

Are you looking for an online writing firm that can offer you reliable custom term paper writing help? Is your wish and desire to get someone who can guide you throughout the process of writing term papers? If yes, then you have come to the right place.

Acemyhomework Acemyhomework

Coursework

Coursework Writing Help

Coursework is essential for every student in order to graduate from college. However, most of it is deadline-centric, and that becomes a challenge to most learners. With the amount of work, learners are receiving every day, finding time to work on every task is not easy.

Acemyhomework Acemyhomework

Homework

Online Homework Help

Online homework help services are an answer to every challenge that students go through. Despite the difference in the needs and levels of learning, all students can benefit from these services. Acemyhomework is one of the best online homework help service companies you can find on the internet.