subject

Create the following user-defined functions: body mass index (bmi) is a measure of obesity. in english units it is calculated by the formula is: w bmi 703 н2 where w is weight in (lb) and h is height in (in.) in metric units it is calculated by the formula is: w bmi= не where w is weight in (kg), and h is height in (meter). the obesity classification is: вмі classification underweight below 18.5 normal 18.5 to 24.9 25 to 29.9 30 and above overweight obese a) write a user-defin ed function that calculates the bmi of a person as a function of his or her weight (lb) and height ( for the function name and arguments use bmi- bmi_e (w, h) b) write a user-defined function that calculates the bmi of a person as a function of his or her weight (kg) and height (m). for the function name and arguments use bmi bmi_m (w, h) t 2. create a script file as the main program where: you should use a menu command to allow the user to choose an option, then invoke the correct function

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
File account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since it’s an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
You know the right answer?
Create the following user-defined functions: body mass index (bmi) is a measure of obesity. in engl...
Questions
question
Mathematics, 20.10.2021 01:10
question
Mathematics, 20.10.2021 01:10
question
Law, 20.10.2021 01:10
question
Mathematics, 20.10.2021 01:10
Questions on the website: 13722362