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

  Prompt the user to enter a positive integer

Create a project called Daily8. Add a C source file to the project named daily8.c. Write a program that  will prompt the user to enter a positive integer.

  Write a recursive public method

Write a recursive public method in our BST class that returns a reference to the information in the node containing the smallest value in the tree. The signature of the method is

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

  Write and run a java program

Write and run a Java program which allows the user to input two doubles and outputs the greater of the two?

  Wa program that takes 10 values represent

Using a loop, write a program that takes 10 values represent in exam grades (between 0 and 100) from the keyboard and outputs the minimum value, maximum value, and average value of all the values entered.

  Program that counts the number of occurrences of lowercase

Write a program that counts the number of occurrences of lowercase and uppercase vowels in entered lines of text. Use a two-dimensional array to store the vowel counts. The array's first column holds the counts for the lowercase vowels, and the secon..

  Write a program which adds two matrices

Write a program which adds two matrices together and displays the sum - Two arrays will contain user input, and the third array will be used to contain the sum of the two arrays.

  Including four sets of quadruplet andsevwn sets of triplets

Mrs. Bernard Scheinberg of Austria had sixty-nine children. Including four sets of quadruplet, sevwn sets of triplets, and sixten of twins. after Mrs. scheinberg died at the age of 56, her husband remarried. during his remaining years, he fathered an..

  1 give the big o for the followinga n2 6n 32b n 6c

1 give the big o for the followinga. n2 6n 32b. n 6c. analyze the code below for integer n

  Write the code1 one argument used to justify the fact that

write the code1. one argument used to justify the fact that the stack data structure in the standard library does not

  Implement a sorting algorithm for inclusion in a package

Prepare a targeted plan in which you present your detailed strategies to recruit and select 20 Engineers to hire (full-time or part-time) within 8 months - Implement a sorting algorithm for inclusion in a package for a lucrative client.

  Determine java application on web and structure functions

Determine the Java application on Web and explain how program structure functions. Explain the application in as much detail as possible.

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