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 down a program to input widths of both hallways

Write down a program which prompts user to input widths of both hallways. The program then outputs length of longest pipe.

  Write down the conditions which are not satisfied in program

Sequential program consists of the following five statements, S1 through S5. Considering each statement as separate process. Specify which of the three conditions is not satisfied.

  Write program to accept long integer number

Write down the program which contains function calories() which is to accept long integer number total and address of integer variables pizza, chips apples and mustard.

  Validation case using regexp

The user must enter a valid IPV4 number in the range 0.0.0.0 to 255.255.255.255(decimal numbers). The number in each category must be between 0-255.

  Create a script that requires o accept terms and conditions

create a script that requires yours visitors to accept your terms and conditions before proceeding, by selecting a check box.

  Produce a store procedure to accept parameters

Produce a store procedure named spBalanceRange which accepts three optional parameters. Procedure returns the result set consisting of VendorName,

  What was the highest grade on test two

Write a method that takes in a teacher's last name and exam number via parameters. Ask the teacher (using her name) to tell you the highest score on that exam.

  What''s the significance of the programming language

What are you going to recommend and why - again with reference to his remarks

  Write pseudocode statements to declare four integers

Write Pseudocode statements to Declare 4 Integers. You can decide on the variables names of each of the integers.

  Unit 1 Programming Assignment

Unit 1 Programming Assignment Help and Solution, BTEC Higher National Diploma (HND) in Computing - Assessment Writing Service - Definition of algorithm

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

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