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 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 Java files#Write 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.#Write an application that asks a user to enter three integers. Display them in ascending and descending order. Save the file as AscendingAndDescending.java.#a Write an application for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose for a queen bed, for a king, or for a king and a pullout couch. The output echoes the input and displays the price of the room: $ for queen, $ for king, and $ 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 Save the file as ShadyRestRoom.java.b Add a prompt to the ShadyRestRoom application to ask the user to specify a lake view or a 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 ShadyRestRoomjava.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
