1- Create a menu to choose which of the problems below to solve. Your menu should have the following options: a. Information about the two programs b. BMI calculator c. Point on cartesian plane locater d. Exit option Use a switch statement to create the menu. Consider a case where the option any user selects isn't on the menu. 2- For one case of the switch statement, write a program that calculates the user's body mass index (BMI) and categorizes it as underweight, normal, overweight, or obese, based on the following table from CDC. Print the output with the calculated BMI as well as the weight status for the user. BMI Weight Status Below 18.5 Underweight 18.5-24.9 Normal 25.0-29.9 Overweight 30.0 and above Obese To calculate BMI based on weight in pounds and height in inches, use this formula (rounded to tenths): 703 x weight(lb) BMI (height(in))² 3- For another case of the switch statement, write a program that takes the x- y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. Sample lines of output: (-1.0, -2.5) is in quadrant III (0.0, 4.2) 1s on the y-axis (0.0, 0.0) is on the origin QIV

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
1- Create a menu to choose which of the problems below to solve. Your menu should have the following
options:
a. Information about the two programs
b. BMI calculator
c. Point on cartesian plane locater
d. Exit option
Use a switch statement to create the menu. Consider a case where the option any user selects isn't on
the menu.
2- For one case of the switch statement, write a program that calculates the user's body mass index
(BMI) and categorizes it as underweight, normal, overweight, or obese, based on the following table
from CDC. Print the output with the calculated BMI as well as the weight status for the user.
BMI
Weight Status
Below 18.5
Underweight
18.5-24.9
Normal
25.0-29.9
Overweight
30.0 and above
Obese
To calculate BMI based on weight in pounds and height in inches, use this formula (rounded to tenths):
703 x weight(lb)
BMI
(height(in))²
3- For another case of the switch statement, write a program that takes the x- y coordinates of a point
in the Cartesian plane and prints a message telling either an axis on which the point lies or the
quadrant in which it is found.
Sample lines of output:
(-1.0, -2.5) is in quadrant II
(0.0, 4.9) is on the y-axis
(0.0, 0.0) is on the origin
QII
QIV
Transcribed Image Text:1- Create a menu to choose which of the problems below to solve. Your menu should have the following options: a. Information about the two programs b. BMI calculator c. Point on cartesian plane locater d. Exit option Use a switch statement to create the menu. Consider a case where the option any user selects isn't on the menu. 2- For one case of the switch statement, write a program that calculates the user's body mass index (BMI) and categorizes it as underweight, normal, overweight, or obese, based on the following table from CDC. Print the output with the calculated BMI as well as the weight status for the user. BMI Weight Status Below 18.5 Underweight 18.5-24.9 Normal 25.0-29.9 Overweight 30.0 and above Obese To calculate BMI based on weight in pounds and height in inches, use this formula (rounded to tenths): 703 x weight(lb) BMI (height(in))² 3- For another case of the switch statement, write a program that takes the x- y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. Sample lines of output: (-1.0, -2.5) is in quadrant II (0.0, 4.9) is on the y-axis (0.0, 0.0) is on the origin QII QIV
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education