Write a visual C# program that asks the user to input mass in pounds and heights in inches, and calculate body mass index (BMI) for a population with specific ranges in mass and heights. Use two-dimensional array to store BMI index value for different ranges of mass and heights. Discuss your insights based on BMI index values. The sample output format is as follows:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a visual C# program that asks the user to input mass in pounds and heights in inches, and calculate body mass index (BMI) for a population with specific ranges in mass and heights. Use two-dimensional array to store BMI index value for different ranges of mass and heights. Discuss your insights based on BMI index values.

The sample output format is as follows:

Please enter the mass in lbs:
160
Please enter the height in inches:
70
Height: 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
Mass(lbs)
11 11 10 10 10 10 10 9 9 9 9 9 8 8 8 8 8 8 8 7 7 77 7777 6 6 6
|23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 14 14 14 13 13 13 13 12 12 12 12 11 11
160.0
161.0
162.0
23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 11 11
|23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 11 11
23 22 22 21 21 20 19 19 18 18 18 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 12 11
23 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 14 14 14 14 13 13 13 12 12 12 12 11
23 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 11
23 23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 11
24 23 22 22 21 21 20 19 19 18 18 18 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 12
24 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12
|24 23 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12
24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12
24 23 23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12
24 24 23 22 22 21 21 20 19 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12
24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 13 12 12
25 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12
163.0
164.0
165.0
166.0
167.0
168.0
169.0
170.0
171.0
172.0
173.0
174.0
175.0
176.0
25 24 23 23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 14 13 13 13 12 12
25 24 24 23 22 22 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12
25 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 13 12
|25 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12
25 25 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 14 13 13 13 12
25 25 24 23 23 22 22 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12
26 25 24 24 23 22 22 21 21 20 19 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 13
|26 25 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13
26 25 24 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 14 13 13 13
|26 25 25 24 23 23 22 21 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13
|26 25 25 24 23 23 22 22 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13
177.0
178.0
179.0
180.0
181.0
182.0
183.0
184.0
185.0
186.0
Transcribed Image Text:Please enter the mass in lbs: 160 Please enter the height in inches: 70 Height: 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 Mass(lbs) 11 11 10 10 10 10 10 9 9 9 9 9 8 8 8 8 8 8 8 7 7 77 7777 6 6 6 |23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 14 14 14 13 13 13 13 12 12 12 12 11 11 160.0 161.0 162.0 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 11 11 |23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 11 11 23 22 22 21 21 20 19 19 18 18 18 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 12 11 23 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 14 14 14 14 13 13 13 12 12 12 12 11 23 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 11 23 23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 11 24 23 22 22 21 21 20 19 19 18 18 18 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 12 24 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 |24 23 23 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 12 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 24 23 23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 12 24 24 23 22 22 21 21 20 19 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 12 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 13 12 12 25 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 12 163.0 164.0 165.0 166.0 167.0 168.0 169.0 170.0 171.0 172.0 173.0 174.0 175.0 176.0 25 24 23 23 22 22 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 14 13 13 13 12 12 25 24 24 23 22 22 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 12 25 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 13 12 |25 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 12 25 25 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 14 13 13 13 12 25 25 24 23 23 22 22 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 12 26 25 24 24 23 22 22 21 21 20 19 19 19 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 13 |26 25 24 24 23 22 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 13 13 13 13 26 25 24 24 23 23 22 21 21 20 20 19 19 18 18 17 17 17 16 16 15 15 15 14 14 14 14 13 13 13 |26 25 25 24 23 23 22 21 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 |26 25 25 24 23 23 22 22 21 20 20 19 19 18 18 18 17 17 16 16 16 15 15 15 14 14 14 13 13 13 177.0 178.0 179.0 180.0 181.0 182.0 183.0 184.0 185.0 186.0
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY