Which of the following can be used to record the behavior of classes?A) Javadoc comments

B) Nouns and verbs in the problem description

C) Polymorphism

D) UML notation

Answers

Answer 1
Answer:

Answer:

A) Javadoc comments

Explanation:

It is used for documenting the java source code in HTML and java code documentation. The difference between multi-line comment and javadoc is that ,javadoc uses extra asterisk, For example-

/**

* This is a Javadoc

*/

It is used to record the behavior of classes.There are various tags used in this like @author,{@code},@exception and many more.


Related Questions

An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay.Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage.Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.Below is an example of the program inputs and output:Enter the wage: $15.50Enter the regular hours: 40Enter the overtime hours: 12The total weekly pay is $899.0
Language: JavaYour task is to complete the logic to manage a twenty-four-hour clock (no dates, just time) that tracksthe hours, minutes, and sections, and various operations to adjust the time. The framework for yourclock is in the Time class with the four methods you must complete.1.) advanceOneSecondâ A user calls this method to advance the clock by one second.a. When the seconds value reaches 60, it rolls over to zero.b. When the seconds roll over to zero, the minutes advance.So 00:00:59 rolls over to 00:01:00.c. When the minutes reach 60, they roll over and the hours advance.So 00:59:59 rolls over to 01:00:00.d. When the hours reach 24, they roll over to zero.So 23:59:59 rolls over to 00:00:00.2.) compareTo â The user wants to know if a second time is greater than or less than the timeobject called, assuming both are on the same date.a. Returns -1 if this Time is before otherTime.b. Returns 0 if this Time is the same as otherTime.c. Returns 1 if this Time is after otherTime.3.) add â Adds the hours, minutes, and seconds of another time (the offset) to the current timeobject. The time should ârolloverâ if it exceeds the end of a 24 hour period.4.) subtract â Subtracts the hours, minutes, and seconds of another time (the offset) fromthe current time object. The time should âroll backâ if it precedes the beginning of a 24 hourperiod.________________________________________________________________________package clock;/*** Objects of the Time class hold a time value for a* European-style 24 hour clock.* The value consists of hours, minutes and seconds.* The range of the value is 00:00:00 (midnight) to 23:59:59 (one* second before midnight).*/public class Time {private int hours;private int minutes;private int seconds;/*** Add one second to the current time.* When the seconds value reaches 60, it rolls over to zero.* When the seconds roll over to zero, the minutes advance.* So 00:00:59 rolls over to 00:01:00.* When the minutes reach 60, they roll over and the hours advance.* So 00:59:59 rolls over to 01:00:00.* When the hours reach 24, they roll over to zero.* So 23:59:59 rolls over to 00:00:00.*/public void advanceOneSecond(){}/*** Compare this time to otherTime.* Assumes that both times are in the same day.* Returns -1 if this Time is before otherTime.* Returns 0 if this Time is the same as otherTime.* Returns 1 if this Time is after otherTime.*/public int compareTo(Time otherTime){return 0;}/*** Add an offset to this Time.* Rolls over the hours, minutes and seconds fields when needed.*/public void add(Time offset){}/*** Subtract an offset from this Time.* Rolls over (under?) the hours, minutes and seconds fields when needed.*/public void subtract(Time offset){}
You wrote a list of steps the user will take to perform a task. Which statement is true about this step?You have drawn pictures of what your screens will look like and identified the input-process-output that occurs on eachscreen.O Your app is functioning and ready to test.O You have defined a use case.O In this step, you defined your target audience and main goal.
What is the earliest version of the present day Internet?
Write an if statement that assigns 100 to x when y is equal to 0.

What is a decryption key?​

Answers

Answer:

A decryption key is a digital information used to recover the plain text from the corresponding ciphertext by decryption.

Suppose an array with six rows and eight columns is stored in row major order starting at address 20 (base 10). If each entry in the array requires only one memory cell, what is the address of the entry in the third row and fourth column?

Answers

Answer:

39

Explanation:

Since each of the address occupies only 1 memory cell and the 2-D array is row-major 2-D array.So the elements will be filled row wise.First the first row will be fully filled after that second row and so on.Since we want the address of the element at third row and fourth column.

we can generalize this :

address of the element at ith row and jth column=s + ( c * ( i - 1 ) + ( j - 1 ) ).

s=Starting address.

c=Number of columns in the 2-D array.

address=20+(8*(3-1)+(4-1))

=20+(8*2+3)

=20+16+3

=39

Or you can make a matrix of six rows and eight columns and put first cell with 20.Start filling the elements row wise one by one and look what is the count of 3rd row and 4th column.

Write a JAVA program to sort a given array of integers (1 Dimensional) in ascending order (from smallest to largest). You can either get the array as input or hardcode it inside your program.

Answers

Answer:

import java.util.Arrays;

public class sort{

    public static void main(String []args){

       int[] arr = {2,6,9,1,5,3};

       int n = arr.length;

       Arrays.sort(arr);

       for(int i=0;i<n;i++){

          System.out.println(arr[i]);

       }    

    }

}

Explanation:

first import the library Arrays for using inbuilt functions.

create the main function and define the array with elements.

then, use the inbuilt sort function in java which sort the array in ascending order.

syntax:

Arrays.sort(array_name);

then, use for loop for printing the each sorting element on the screen.

Suppose that a queue is implemented using a circular array of size 12. What is the value of last after the following operations?10 enqueue operations
5 dequeue operations
6 enqueue operations
10 dequeue operations
8 enqueue operations
2 dequeue operations
3 enqueue operations
Last = 10

Answers

Answer:

10

Explanation:

An enqueue operation is a function that adds an element(value) to a queue array. A dequeue operations removes an element from a queue array. Queue arrays follow a first-in-first-out approach, so elements that are first stored in the queue are removed/accessed first(enqueue operations add elements at the rear of the queue array).

The following operations leave 10 elements in the queue of array size 12 after its done:

10 enqueue operations= adds 10 elements

5 dequeue operations= removes 5 elements( 5 elements left in queue)

6 enqueue operations= adds 6 elements(11 elements in queue)

10 dequeue operations= removes 10 elements(1 element left in queue)

8 enqueue operations= adds 8 elements(9 elements in queue)

2 dequeue operations= removes 2 elements(7 elements left in queue)

3 enqueue operations= adds 3 elements(10 elements in queue)

Therefore there are 10 elements in the queue after enqueue and dequeue operations.

Write a C++ program which accepts the quantity of a product purchased and prints the amount to be paid by the customer.​

Answers

Answer:

firstly the exel program is very useful to costumer or to calculate by Microsoft. People use it to company or office. It works for make good commination

Which key do programmers use to end running programs?Num Lock
Scroll Lock
Pause/Break
Backspace

Answers

I would answer backspace because i had some experience with that
Pause/Break   i would say