Create a constant to hold the desired duration of workout

Assignment Help JAVA Programming
Reference no: EM13889547

LiFiUnit6.java

Provide a driver class that has the following items:

  • Creates an instance of the FiFiWorkout.java class.
  • Gets input for first name.
  • Create a constant to hold the desired duration of workout. Set it to 30.
  • Create a constant to hold the desired number of reps. Set it to 20.
  • Use a looping structure to get input until either "M' or 'W' are entered. Accept M or m and W or w. Use the string class to convert it to upper case.
  • Use a switch structure to work with either the 'M' or 'W'.
  • If M or Machine is selected:
    • Get input for the machine name such as "elliptical" or "treadmill".
    • Get the duration in minutes of the workout performed.
  • If W or Weights is selected:
    • Get input for the weight in integer.
    • Get input for the number of reps performed.
  • After the input has been accepted above:
  • If the workout duration or reps are equal to or above the desired, then output "Good Job" as shown in the sample, including the duration, reps, machine, desired duration, or desired reps. See sample for exact output.

60%

LiFiWorkout.java

Provide a workout class to hold instance variables as required by the driver.

Include accessor and mutator methods for each even if they aren't required by the driver.

Sample output is provided below. Be sure to mimic it exactly except for values entered.

30% 

NOTE: Complete your activity and submit it by clicking "Submit Assignment"

 

Total Percentage

100%

Sample

Reference no: EM13889547

Questions Cloud

Context of the definition of externalities : Is it a good idea for the government to require automobile manufacturers to include pollution control devices, and certain safety devices (i.e. air bags) in every car sold in the U.S.? Explain from the context of the definition of externalities.
Survey of economic impact of operating system security : Survey of economic impact of operating system security violations
Similarities or differences in ets and its affect : Carbon Tax/Emission Trading scheme – Compare Australia with one of these countries or group of countries like Europe,USA and China/India and discuss the similarities or differences in ETS and its affect on the economy
What are the current issues of retailers and merchants : Definition and origin of Omni-channel retailing: What is Omni-channel retailing? Current issues in Omni-channel retailing: What are the current issues of retailers and merchants
Create a constant to hold the desired duration of workout : Creates an instance of the FiFiWorkout.java class. Gets input for first name. Create a constant to hold the desired duration of workout. Set it to 30.
Identify a diversity situation or cultural dilemma : Identify a diversity situation or cultural dilemma that is prevalent in today's society. a.Provide an analysis of the topic, including historical perspective and current day situation.
Provides a random sample of the unit values : 1.Southern Markets, Inc., is considering the use of ABC analysis to focus on the most critical SKUs in its inventory. Currently, there are approximately 20,000 different SKUs with a total dollar usage of $10,000,000 per year.
Calculate the item''s eoq : 1.Your firm uses a periodic review system for all SKUs classified, using ABC analysis, as B or C items. Further, it uses a continuous review system for all SKUs classified as A items.
Current business leader that exemplifies positive service : i) Working in pairs, choose a current Business Leader that exemplifies positive service culture and innovation. ii) Use Layton's 6 S's as a vehicle to guide your analysis and presentation. iii) Find examples of What lessons did you learn from your Le..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd