1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
rodikova [14]
3 years ago
10

Modify the FitnessTracker class, created in Chapter 4 Programming Exercise 3AB, so that the default constructor calls the three-

parameter constructor. Use TestFitnessTracker2 to test the new version of the class.
FitnessTracker2.java:
import java.time.*;
public class FitnessTracker2 {
String activity;
int minutes;
LocalDate date;
public FitnessTracker2() {
}
public FitnessTracker2(String activityParam, int minutesParam, LocalDate dateParam) {
}
public String getActivity() {
}
public int getMinutes() {
}
public LocalDate getDate() {
}
}

TestFitnessTracker2.java:
import java.time.*;
public class TestFitnessTracker2
{
public static void main(String[] args)
{
FitnessTracker2 exercise = new FitnessTracker2();

System.out.println(exercise.getActivity() + " " + exercise.getMinutes() +
" minutes on " + exercise.getDate());

// code to test constructor added for exercise 3b

LocalDate date = LocalDate.of(2020, 8, 20);
FitnessTracker2 exercise2 = new FitnessTracker2("bicycling", 35, date);

System.out.println(exercise2.getActivity() + " " + exercise2.getMinutes() +
" minutes on " + exercise2.getDate());
}
}
Computers and Technology
1 answer:
Ivenika [448]3 years ago
5 0

Answer:

Is this coding?

Explanation:

You might be interested in
What is the device that converts the signals to and from the wires so that the data can be sent and received by the computer?
netineya [11]

Answer:

E. Modem

Explanation:

A network comprises of two or more interconnected devices such as computers, routers, switches, smartphones, tablets, etc. These interconnected devices avail users the ability to communicate and share documents with one another over the network.

In order for a network to exist or be established, the devices must be turned (powered) on and interconnected either wirelessly or through a cable (wired) connection.

In Computer Networking, a node is the physical device that make up a network and are capable of sending, receiving, creating and storing data in communication.

Examples of network nodes are routers, hubs, computer, switches, smartphone, printers, modem, etc.

A modem is a networking device that converts the signals to and from the wires such as a telephone line, so that the data can be sent and received by the computer.

Basically, a modem is an abbreviation for modulator and demodulator and as such it is designed to convert signal from one network device to signals that another network device such as a computer can understand or read.

When sending a signal (data) over a network, a modem converts (modulate) digital data signal to an analogue signal and transmits it over a telephone line or other communication lines. Also, when receiving an analogue signal, a modem converts (demodulate) the signal to a digital data signal.

8 0
3 years ago
The ____ contains buttons that provide different views of the document window, and some common operations related to viewing and
alexandr402 [8]
I think it is called a document tool bar
8 0
3 years ago
The Scientific Method is a/an
ser-zykov [4K]

Answer:

It's a method used in science to ask questions, research, observe, hypothesize, experiment, analyze data, and make conclusions.

Explanation:

5 0
3 years ago
Read 2 more answers
A laptop computer belonging to a company database administrator (DBA) and containing a file of production database passwords has
Ronch [10]

They should move the database to a new one since the old one has been compromised.

Hope this helps.

5 0
3 years ago
When you take action independent of direct instruction, you are showing _____. power power insubordination insubordination coura
Anarel [89]

Leadership qualities are the traits that define a person's ability to guide and organize. Independent action without any direct instruction is called initiative.

<h3>What is an initiative?</h3>

An initiative is an act of performing and executing the task independent of any instruction or guidance from someone. It is based on self-motivation rather than following commands given by others.

Insubordination is a refusal or disobedience in obeying any command, power is the ability to have an influential behavior and courage means bravery to do something without fear.

Therefore, independent actions without instructions are option D. initiative.

Learn more about the initiative here:

brainly.com/question/21106998

#SPJ1

8 0
2 years ago
Other questions:
  • You can clear a log file simply by redirecting nothing into it. true or false?
    13·1 answer
  • To adjust the height of cells, position the pointer over one of the dividing lines between cells. When the pointer changes to th
    5·1 answer
  • Which of the following is a hardware component used to hold the BitLocker encryption key and ensures encrypted data is not acces
    5·1 answer
  • Recent advances in information technologies (IT) have powered the merger of online and offline retail channels into one single p
    10·1 answer
  • A letter of application should be written on:
    13·1 answer
  • In the graph shown here, by what percentage are the number of people in computer occupations in general projected to increase?
    10·2 answers
  • Program Convert Measurements:
    15·1 answer
  • In this assignment, you will implement an online banking system. Users can sign-up with the system, log in to the system, change
    14·1 answer
  • How does a fully integrated Data and Analytics Platform enable organizations to convert data into consumable information and ins
    15·1 answer
  • 4.8.4 Better Sum
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!