Question: Create a Fitness Tracker class that includes three data fields for a fitness activity: a String for the name of the activity, an int for

Create a Fitness Tracker class that includes three data fields for a fitness activity: a String for the name of the activity, an int for the number of minutes spent participating, and a LocalDate for the date. The class includes methods to get each field. Create a default constructor that automatically sets the activity to running, the minutes to, and the date to January 1 of the current year. Overload the constructor that receives parameters for each of the fields and assigns them appropriately. Save the file as Fitness Trackenjava.b. Create an application that instantiates two Fitness Tracker objects. Prompt the user for values for one object, and pass those values to the three constructor parameters. Retain the default constructor values for the other object. Display the values for each objeet. Save the program as TestFitness Trackerjava.Chapter 5[4 Java files]#1Write an application that asks a user to enter an integer. Pass the integer to a method that determines whether the number is even and returns a Boolean value. Display a statement that indicates whether the integer is even or odd. Save the file as EvenOdd.java.#2Write an application that asks a user to enter three integers. Display them in ascending and descending order. Save the file as AscendingAndDescending.java.#3a. Write an application for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose 1 for a queen bed, 2 for a king, or 3 for a king and a pullout couch. The output echoes the input and displays the price of the room: $125 for queen, $139 for king, and $165 for a suite with a king bed and a pullout couch. If the user enters an invalid code, display an appropriate message and set the price to 0. Save the file as ShadyRestRoom.java.b. Add a prompt to the ShadyRestRoom application to ask the user to specify a (1) lake view or a (2) park view, but ask that question only if the bed size entry is valid. Add SIS to the price of any room with a lake view. If the view value is invalid, display an appropriate message and assume that the price is for a room with a lake view. Save the file as ShadyRestRoom2.java.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!