subject

Define the missing method. licenseNum is created as: (100000 * customID) + licenseYear. Sample output: Dog license: 77702014

Here is the code already in the program:

// Code from file DogLicense. java
public class DogLicense {
private int licenseYear;
private int licenseNum;

public void setYear(int yearRegistered) {
licenseYear = yearRegistered;
return;
}

// FIXME: Write createLicenseNum()

/* Your solution goes here */

public int getLicenseNum() {
return licenseNum;
}
}
// end

// Code from file CallDogLicense. java
public class CallDogLicense {
public static void main (String [] args) {
DogLicense dog1 = new DogLicense();

dog1.setYear(2014);
dog1.createLicenseNum(777);
System. out. println("Dog license: " + dog1.getLicenseNum());

return;
}
}
// end

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
You know the right answer?
Define the missing method. licenseNum is created as: (100000 * customID) + licenseYear. Sample outpu...
Questions
question
Mathematics, 28.06.2019 00:00
question
Mathematics, 28.06.2019 00:00
question
Chemistry, 28.06.2019 00:00
question
Mathematics, 28.06.2019 00:00
Questions on the website: 13722360