Explain what is meant by variables and fields in java

Assignment Help Programming Languages
Reference no: EM132674164

COIT20245 Introduction to Programming - Central Queensland University

Assessment - Take Home Test

Question 1
a. In your own words, explain what is meant by variables and fields in Java. Give two examples to illustrate the main difference between variables and fields.
b. In your own words, explain what is meant by a syntax error and a logical error in Java. Give two examples to illustrate your answer and show two syntax errors and two logical errors.

Question 2
a. In your own words, explain what is meant by good programming practice. Give two examples, one with good programming practice and one without good programming practice.
b. In your own words, explain what is meant by an Array and ArrayList. Give two examples that illustrate the main difference.

Question 3
a. Write a program which shows how two-dimensional arrays which contain multiple copies of your id number and age are passed to methods. Explain in your own words each method and class used in the program.
b. Write a program to show the difference between linear search and binary search. Show the input test data for your program and the output produced by your program which clearly show that binary search is faster than linear search.

Question 4
A text file called coit20245.txt consists of N lines each containing a name and a family name as follows. N is largest digit of your student id number.
Example of coit20245.txt file:
Daniel Atkinson Rob Jackson Brian Lara

Write a main() method that reads the rows of coit20245.txt and counts the lines which starts with a first letter of your name. You are to provide class comments that describe what the application does. You are also to provide comments that describe what each significant block of code does.

Question 5
Provide a comprehensive set of test cases for the two programs below. Do not provide actual test data, but rather describe each test. For example, if one of the programs was to search an array, you might include test cases such as search an array that is in ascending order, search an empty array, search for an element not in the array, etc.
a. The program described in Question 4.
b. A bubble sort method that is to sort an array of N student id numbers. N is the largest digit of your student id number.

Reference no: EM132674164

Questions Cloud

What are the benefits of an acquisition of the japanese firm : NorOnt is considering the acquisition of a food company in Japan that produces some similar products but operates on a much smaller scale than NorOnt.
Why is balanced score important to an organization : Why is balanced score important to an organization?
Emphasize skill variety and task identity in jobs : Job analysis is similar to competency modeling insofar as both approaches:
Handling traditional incoming mail for multiple managers : Handling traditional incoming mail for multiple managers. You support six managers. Every day each manager receives at least twenty pieces of mail in addition
Explain what is meant by variables and fields in java : Explain what is meant by variables and fields in Java. Give two examples to illustrate the main difference between variables and fields
Discuss issues relating to the voluntary reporting : Discuss issues relating to the voluntary reporting from the perspective of the usefulness of information to the users.
Describe components that influence individual performance : Describe the three components that influence individual performance. Briefly describe the four motivation theories mentioned in the text.
Analyze the industry and competitive marketplace : Spacey Corporation (SpaceY) is a distribution of exotic steel, aluminium, and titanium alloys to the aerospace industry and to other specialty industries.
Explain in detail the implications of noront proceeding : Recently a major transportation company in Canada approached NorOnt and indicated that they could provide all the organization's transportation needs between.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd