Question: In Swift Problem Write a YMCA body fat calculator for iPhone 11. The application should provide an interface (as in Figure 1) to allow the

In Swift

In Swift Problem Write a YMCA body fat calculator for iPhone 11.

Problem Write a YMCA body fat calculator for iPhone 11. The application should provide an interface (as in Figure 1) to allow the user to o Enter the name, the first letters of which should be automatically capitalized o Specify the gender and units of measurement o Enter the weight and waist, using the Number Pad as the keyboard type. According the user's input, when clicking the button Get Report, the application should generate a report for the user, as shown in Figure 2. . Carrier 2:37 PM Carrier 2:49 PM Name: Enter your name here Name: Bob Tyler Gender: Male Female Gender: Male Female Units of Measurement: Units of Measurement: Pounds Kilograms Inches Centimeters Pounds Kilograms Inches Centimeters Weight: Waist: Waist: Weight: 170 80 Get Report Get Report Hi, Bob Tyler, thank you for using this body fat calculator. Your body fat percentage is estimated to be 10.85%, according to the YMCA method. Figure. 1 Figure. 2 The YMCA formulas for calculating body fat (http://www.doithome.com/help_inside3.html) are as follows: Men's %Fat =(-98.42 + 4.15*waist - 0.082 * weight) / weight Women's %Fat = (-76.76 + 4.15 * waist - 0.082 * weight) / weight Problem Write a YMCA body fat calculator for iPhone 11. The application should provide an interface (as in Figure 1) to allow the user to o Enter the name, the first letters of which should be automatically capitalized o Specify the gender and units of measurement o Enter the weight and waist, using the Number Pad as the keyboard type. According the user's input, when clicking the button Get Report, the application should generate a report for the user, as shown in Figure 2. . Carrier 2:37 PM Carrier 2:49 PM Name: Enter your name here Name: Bob Tyler Gender: Male Female Gender: Male Female Units of Measurement: Units of Measurement: Pounds Kilograms Inches Centimeters Pounds Kilograms Inches Centimeters Weight: Waist: Waist: Weight: 170 80 Get Report Get Report Hi, Bob Tyler, thank you for using this body fat calculator. Your body fat percentage is estimated to be 10.85%, according to the YMCA method. Figure. 1 Figure. 2 The YMCA formulas for calculating body fat (http://www.doithome.com/help_inside3.html) are as follows: Men's %Fat =(-98.42 + 4.15*waist - 0.082 * weight) / weight Women's %Fat = (-76.76 + 4.15 * waist - 0.082 * weight) / weight

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!