If the user answers “Sedentary” then increase the calculated BMR by 20 percent. If the user answers “Somewhat active” then increase the calculated BMR by 30 percent. If the user answers “Active” then increase the calculated BMR by 40 percent. Finally, if the user answers “Highly active” then increase the calculated BMR by 50 percent. Output the number of chocolate bars based on the new BMR value.
Repeat Programming Project 10 but in addition ask the user if he or she is:
A. Sedentary
B. Somewhat active (exercise occasionally)
C. Active (exercise 3-4 days per week)
D. Highly active (exercise every day)
This project requires additional logic and user input from Programming Project 2.8
See the code in CandyCalculator3.java.
You might also like to view...
Unix does not use drive names in paths because
A. the colon is a legal character in a filename B. separate disks are mounted as subdirectories
When printing a document, the comments do not normally appear
Indicate whether the statement is true or false
The pv argument in the PMT function represents the ________ of the loan
A) payment amount B) loan amount C) percentage rate D) percentage value
Which of the following should not be considered a security best practice?
a. Warning users not to encrypt files b. Avoiding infections from emails c. Installing and updating antimalware apps d. Removing personally identifiable information.