Programming Essentials Paper - You are the nutritional coach for a local high

Question # 00651001
Subject: Computer Science
Due on: 12/07/2023
Posted On: 12/07/2023 02:40 AM
Tutorials: 1
Rating:
4.9/5
Question Dot Image

University of the District of Columbia Programming Essentials Paper

You are the nutritional coach for a local high school football team. You realize that some of the players are not up to par having returned from summer break. Realizing nutrition plays a key in a productive team, you decide to implement a Body Mass Index Program.

Write a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows:

BMI = Weight *703 / Height^2

Note: Height^2 means, the value of Height raised to the power of 2.

Your program should utilize the following functions:

  • A method to obtain the weight of a player
  • A method to obtain the height of a player
  • A method to calculate the BMI of a player
  • A method to display the height, weight, and calculated BMI

For this project:

  • You will submit your python code in either the original .py file, or copied into a .txt file.
  • A screenshot of your code having been executed (run). How to Take a Screenshot

Tips: Remember, changing a value that has been passed into a function does not change the original value. Data passed into functions are only copies of the original value.

Remember to follow the guidelines of good program design. Make sure to use meaningful variable names, include comments as needed, and provide thoughtful output.

Remember, while you can pass as many arguments into a function as you want, but a function can only return one thing at a time. Ideally, to use a function to modify a variable or object, you will pass that object into the function, along with any other needed information to make the modifications, make the modifications to the new local copy of the object inside of the function, and then return the modified object. Thus, you will overwrite the original object with the returned modified object.

  • example 1: object1 = modifyFunction( object1 ) #returns modified object1
  • example 2: object1 = modifyFunction( object1, newData ) #returns modified object1

Example output:

C:\>python week3.py

Welcome to the BMI Index Calculator.

Please begin by entering the student's name, or 0 to quit: Nathan

Please enter student's height in inches: 70

Please enter student's weight in pounds: 135

Nathan 's BMI profile:

-----------------------

Height: 70"

Weight: 135 lbs.

BMI Index: 19.4

Enter next student's name or 0 to quit: Toby

Please enter student's height in inches: 73

Please enter student's weight in pounds: 310

Toby 's BMI profile:

-----------------------

Height: 73"

Weight: 310 lbs.

BMI Index: 40.9

Enter next student's name or 0 to quit: 0

Exiting program...

Dot Image
Getsolution Posted By :
Questions: 15154 Tutorials: 15153
Tutorials for this Question

Programming Essentials Paper - You are the nutritional coach for a local high

Tutorial # 00649886
Posted On: 12/07/2023 02:41 AM
Feedback Score: Not rated yet!
Purchased By: 2
Getsolution
Posted By:
Questions:
15154
Tutorials:
15153
Report this Tutorial as Inappropriate
Tutorial Preview
The solution of Programming Essentials Paper - You are the nutritional coach for a local high...
Attachments
Programming_Essentials_Paper_-_You_are_the_nutritional_coach_for_a_local_high.ZIP (18.96 KB)

Great! We have found the solution of this question!

Related Questions
Examine the several different types of data insights that occur
Question Examine the several different types of data insights that occur in big data analytics:  ? Offer novel knowledge  ? Provide causation relationships  ? Add a competit …
Computer science - Is virtualisation cost effective
Computer science question Is virtualisation cost effective and does it support green IT? Contents Introduction Is Virtualisation cost effective? Running out of space? Needing Virtualisa …
Studying Computing involves developing both subject
Studying Computing involves developing both subject-specific and transferable skills. Describe the skills you have used prior to university, and discuss how you would expect those skills to develop wh …
Computer Science - Discuss the critical characteristics
Computer Science Question Assignment 1 - Question 1: Discuss the critical characteristics of communication channels in data communications. Explain how bandwidth and communication medium affe …
List and explain two browser add-ons(plug-ins)that improve the security
1- List and explain two browser add-ons(plug-ins)that improve the security of a user’s browser. Why are these features not built-into the browser? 2- What are two security risks associated wi …
How are browsers being used to mine crypto currency
Part A: How are browsers being used to mine crypto currency? (1 pt) Find an example of malvertising. Provide a screen shot of the malvertising. (2 pts) Provide the details on how and where you …
What are the seven categories of cybersecurity functions in the NICE
security awareness What are the seven categories of cybersecurity functions in the NICE Cybersecurity Workforce Framework (https://www.nist.gov/itl/applied-cybersecurity/nice/resources/nice-cybe …
The Computer Mouse - Once a nondescript box perched on a large
The Computer Mouse Once a nondescript box perched on a large ball bearing, today the computer mouse comes in a wide range of shapes with a variety of capabilities. There are cordless mice, ergonomi …
CMSC350 Program that accepts an arithmetic expression
CMSC350 Program that accepts an arithmetic expression The second programming project involves writing a program that accepts an arithmetic expression of unsigned integers in postfix notation and bu …
Week 6 Discussions - Local Security Good Practices
Week 6 Discussions Please respond to at least two main topics  1. Local Security Good Practices Discuss in detail several effective local security practices to harden your Linux distribu …
Recent Questions
Walden NURS4210/NURS4211 All Assignments Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 3 Assignment WINDSHIELD SURVEY/COMMUNITY ASSESSMENT RESOURCES Be sure to review the Learning Resources before com …
Walden NURS4210/NURS4211 Week 6 Assignment Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 6 Assignment ASSIGNMENT RESOURCES Be sure to review the Learning Resources before completing this activity. Cl …
Walden NURS4210/NURS4211 Week 5 Assignment Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 5 Assignment DISASTER PLANNING FOR PUBLIC HEALTH-2 RESOURCES Be sure to review the Learning Resources before comp …
Walden NURS4210/NURS4211 Week 3 Assignment Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 3 Assignment WINDSHIELD SURVEY/COMMUNITY ASSESSMENT RESOURCES Be sure to review the Learning Resources before com …
Walden NURS4210/NURS4211 All Weeks Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 1 Practicum Role of the Nurse Leader in Population Health - Group A  PRACTICUM LEARNING OBJECTIVES Dev …
Walden NURS4210/NURS4211 Week 6 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 6 Practicum PRESENTATIONS Overview: This week, you will present your PowerPoint presentation to the class incorpora …
Walden NURS4210/NURS4211 Week 5 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 5 Practicum PRESENT YOUR POWERPOINT PRESENTATION TO YOUR COMMUNITY MEMBERS This week, you will be presenting your p …
Walden NURS4210/NURS4211 Week 4 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 4 Practicum EVIDENCE-BASED PRACTICE AND EVALUATION OF THE PROJECT THROUGH MEASURABLE GOALS Overview: Dr. Marci …
Walden NURS4210/NURS4211 Week 3 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 3 Practicum POPULATION CULTURAL CONSIDERATIONS AND GENETIC PREDISPOSITIONS Overview: This week, you will ident …
Walden NURS4210/NURS4211 Week 2 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 2 Practicum Role of the Nurse Leader in Population Health - Group A Back to Week at a Glance EPIDEMIOLOGY: …