subject

Anutritionist who works for a fitness club members by evaluating their diets. as part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consumed in a day. then, she calculates the number of calories that result from the fat, using the following formula:
calories from fat = fat grams x 9
next, she calculates the number of calories that result from the carbohydrates using the following formula:
calories from carbs = carbs grams x 4
create an application that will make these calculations. in the application, you should have the following methods:
fatcalories-this method should accept a number of fat grams as an argument and return the number of calories from that amount of fat.
carbcalories-this method should accept a number of carbohydrates grams as an argument and return the number of calories from that amount of carbohydrates.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Match each vocabulary word to its definition.1. desktoppicture used to represent acomputer application2. domainnetwork protectionsoftware code that can be viewed,3. iconmodified, and redistributed for freethe background screen on acomputer monitor4. url5. blogan online journalthe part of an internet address that6. firewallrefers to a group of computers on anetworkonline database of web pages7. intranetnetwork for use by an individual8. open address of a web page or9. wikiresource
Answers: 2
question
Computers and Technology, 22.06.2019 05:00
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. after the loop terminates, it prints out, on a line by itself and separated by spaces, the sum of all the even integers read, the sum of all the odd integers read, a count of the number of even integers read, and a count of the number of odd integers read, all separated by at least one space. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
You know the right answer?
Anutritionist who works for a fitness club members by evaluating their diets. as part of her evalua...
Questions
question
Mathematics, 23.05.2021 19:20
question
Spanish, 23.05.2021 19:20
question
Mathematics, 23.05.2021 19:20
question
Mathematics, 23.05.2021 19:20
question
SAT, 23.05.2021 19:20
question
Social Studies, 23.05.2021 19:20
Questions on the website: 13722362