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
Lady bird [3.3K]
3 years ago
12

A. Modify the FitnessTracker class that includes data fields for a fitness activity, the number of minutes spent participating,

and the date. The class includes methods to get each field. In addition, create a default constructor that automatically sets the activity to running, the minutes to 0, and the date to January 1 of the current year. Create an application that demonstrates each method works correctly.
b. Create an additional overloaded constructor for the FitnessTracker class you created in Exercise 3a. This constructor receives parameters for each of the data fields and assigns them appropriately. Add any needed statements to the TestFitnessTracker.java application to ensure that the overloaded constructor works correctly, save it, and then test it.


An example of what it should look like:

running 0 minutes on 2021-01-01

bicycling 35 minutes on 2020-08-20


What's done:

import java.time.*;

public class FitnessTracker {

String activity;

int minutes;

LocalDate date;

// constructor for 3a

public FitnessTracker() {

}

// constructor for 3b

public FitnessTracker(String a, int m, LocalDate d) {

}

public String getActivity() {

}

public int getMinutes() {

}

public LocalDate getDate() {

}

}
Computers and Technology
1 answer:
Elenna [48]3 years ago
5 0

Answer:

It keeps saying servers fully loaded

Explanation:

You might be interested in
What is wrong with a MOV BL, CX instruction?
bagirrra123 [75]

Answer:

The MOV bl , cx instruction is wrong because the contents of cx are to big for bl .

I think this is the answer.

8 0
3 years ago
What is the process called if you are erasing data on your hard drive from a MAC
exis [7]
If the requirement is to erase all the data from the hard disk drive on the Mac, then it's best to use a tool known as the Disk Utility. This will delete all the files and volumes on the hard drive. The Disk Utility offers four options:
1. Don't erase data2, Zero out Data3. 7-Pass Erase4. 35-Pass Erase
On the other hand, if the requirement is to delete individual files, then the best thing to do is to highlight the file you want to delete, right-click on it and "Move to trash".
4 0
3 years ago
What are the three fundamental principals of mnemonics??
olasank [31]
The three fundamental principles underlying the use of mnemonics are imagination, association and location
4 0
3 years ago
Read 2 more answers
For which is a chart legend used?
ruslelena [56]
All of the time is a type of chart legend using....
7 0
3 years ago
PLEASE HELP
Alborosie
The_____ feature of the spreadsheet will enable Susan to highlight the records.
FORMAT CELLS
3 0
3 years ago
Read 2 more answers
Other questions:
  • What will be displayed if code corresponding to the following pseudocode is executed? Set Number = 4 Repeat Write 2 * Number Set
    12·1 answer
  • Acrynom for wys or wyg
    10·1 answer
  • Regional culture has been affected by technology in these ways. Select all that apply. decreased educational opportunities impro
    9·2 answers
  • . Dеclarе a onе-dimеnsional array of 30 doublеs (on thе stack) namеd rainfall
    11·1 answer
  • Nicole wants to create a database to collect information about videos in her video rental store. She would like to use the datab
    9·1 answer
  • Examples of language translator
    12·2 answers
  • Caitlyn's Crafty Creations computes a retail price for each product as the cost of materials plus $14 multiplied by the number o
    10·1 answer
  • Write a program that uses a loop to read 10 integers from the user. Each integer will be in the range from -100 to 100. After al
    10·1 answer
  • You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it???
    7·1 answer
  • I’m not very good at using word because this is my second time using it lol
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!