Write a program to calculate the body fat of a person

Assignment Help Programming Languages
Reference no: EM13951349

One way to determine how healthy a person is by measuring the body fat of the person. The formulas to determine the body fat for female and male are as follows:

Body fat formula for women:

A1 = (body weight X 0.732) + 8.987
A2 = wrist measurement (at fullest point) / 3.140
A3 = waist measurement (at navel) X 0.157
A4 = hip measurement (at fullest point) X 0.249
A5 = forearm measurement (at fullest point) X 0.434

B = A1 + A2 - A3 - A4 + A5

Body fat = body weight - B

Body fat percentage = body fat X 100 / body weight

Body fat formula for men:

A1 = (body weight X 1.082) + 94.42
A2 = wrist measurement X 4.15
B = A1 - A2

Body fat = body weight - B

Body fat percentage = body fat X 100 / body weight

Write a program to calculate the body fat of a person.

Reference no: EM13951349

Questions Cloud

Prepare a journal entry to close the variance : Prepare a journal entry to close the variance accounts at Bell Computers .Assume that the total variance is not material and is closed to cost of goods sold.
Improvements in technology relevant : Discuss five (5) examples of technology that can help achieve this goal. Include industry examples as part of your discussion.
How are they significant to our personal lives : Astrology is the study that believes and attempts to interpret the powers of heavenly bodies on human affairs. Why do you think astrology is so popular around the world, although it has failed all scientific tests of validity?
Design an advertisement for an anti-smoking campaign : Analyse the appropriateness of each of the four traditional response hierarchy models for a campaign to encourage people to stop smoking - Evaluate the appropriateness of the traditional direct marketing tools and internet¬based direct marketing to..
Write a program to calculate the body fat of a person : One way to determine how healthy a person is by measuring the body fat of the person. Write a program to calculate the body fat of a person.
How fast does the ripple in space-time travel in empty space : The Sun is a low mass star and so will never have the core fusion reactions of massive stars. Yet, the Sun has iron in its atmosphere, as well as gold, silver and other elements much heavier than iron. Why?
Describe the purpose of each of these approaches : Describe the purpose of each of these approaches and explain how each of them can be used to protect property rights in software. Please include any experiences you have had with these approaches.
Identify key external forces : Identify key external forces? Then interview--in person, by phone or whatever means practical--a former or current employer/boss about one (1) force that critically concerns the organization and explain it in a practical manner vis-a-vis opportuni..
Prepare the journal entries to record overhead : Prepare the journal entries to record overhead incurred (you should credit various accounts) and the overhead variances.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a class named rectangle with length and width

To cover that floor with carpet that costs $8 per square foot would cost $960. (12 x 10 x8 = 960.). You should create a class named Rectangle with the following properties:

  Create e-r diagram for sell and buy of antiques

Create E-R diagram for following situation (state any assumptions you believe you have to make to develop diagram): XYZ Antiques buys and sells one-of-a kind antiques of all kinds

  Write sql statements

Write a SQL statement to display the Major of students with no duplications. Do not display student names.

  Design program that stores information of products

You are asked to design a program that stores information of given products. Your program must be menu driven. The program menu must include the following options: Add product information (Ask user to input product id, name and price)

  What is the role of statistical analysis in simulation

How do pseudo-random numbers affect the accuracy of a simulation?

  Give a pseudo-code description of a function

Give a pseudo-code description of a function that uses only D and Q (and no other variables or objects) and results in D storing the elements.

  Write down program to open file and copy file

Write down program which opens the file and copy file to another and for file there must be three columns of floating points for each column get maximum and minimum.

  Write down a program which explores the seating patterns

write a program that explores the seating patterns related to course performance by using an array of student scores.

  Write a statement that prints the message recall

Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. Given a variable modelYear - Write a statement that prints the message "Recall" to standard output if the value of modelYear falls within those two ranges.

  Create new method public to create and return new picture

Create a new method public Picture frame (int frameSize, Color frameColor) this method will create and return a new picture object.

  Create a function named delitm() with a single parameter

Open dan.htm in the browser. Add an item to the cart, then click the View Cart button at the top of the page. View the contents of the shopping cart. Test the functionality for removing items from the cart by clicking the Remove Item link for the ..

  Write pseudo algorithm to input age

Write a pseudo algorithm that inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18.

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