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

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...

Posted By :
Questions: 14076 Tutorials: 14076
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
Posted By:
Questions:
14076
Tutorials:
14076
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
IT513-15 - Explain how PDF ensures consistency in document
IT-513-15 Enterprise IT Application and Business Analytics Question A Question 1: Explain how PDF ensures consistency in document output across different types of devices, including printers and …
IT513-15 Part A,B - Storage Hierarchy and Secondary
IT-513-15 Enterprise IT Application and Business Analytics Part A : 1. Question: Storage Hierarchy and Secondary Storage Devices Explain the concept of storage hierarchy in computer systems, an …
IT513-15 Part A,B - Describe the main components of a computer
IT-513-15 Enterprise IT Application and Business Analytics PART-A QUESTION-1 Describe the main components of a computer and their respective functions. Explain the roles of the central proc …
IT513-15 Enterprise IT Application and Business Analytics
IT-513-15 Enterprise IT Application and Business Analytics PART-A The National Prosperity Bank ( NPB) has decided to connect all of its stores in the US. This will allow the bank to improve its …
CSE 545 Software Security Assignment plus final exam
I need help with CSE 545 Software Security Assignment plus final exam …
Data usage and systems - The organization of data into usable
Data usage and systems The organization of data into usable information within a health care setting is a core focus of health care information technology. Information, however, is not enough to ma …
INFS3440 Data Type Summary - You have recently expressed
INFS3440 Data Type Summary You have recently expressed interest in working in health IT in a health system. To improve your familiarity with the data you may encounter, the IT manager has asked …
Falcon Security Case Presentation - For decades, relational databases
Colorado State University Falcon Security Case Presentation For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and reposit …
CY520 Cyber Security Social Engineering Discussion
CY 520 College of Wilmington Cyber Security Social Engineering Discussion Original responses should not be a word for word rehashing of what is stated in the readings, but rather an integration of …
Security and Incident Response - You are the newly hired Chief Technology
Security and Incident Response You are the newly hired Chief Technology Officer at a small marketing firm that employs 25 people. The firm’s CEO has asked you to prepare a report that include …
Recent Questions
Project management assignment
Over the past few weeks, we have learned how to develop the project scope, schedule, and cost baselines. While these are useful exercises, it is important for a pro …
JSM Staffing Services Marketing Plan Paper
Strayer University JSM Staffing Services Marketing Plan Paper Assignment 1: Part A: Your Marketing Plan For this assignment, you will document your hypothetical company’s backgro …
The marketing of services is ever increasing and has
Auburn University Marketing of Tangible Products and Services PAper The marketing of services is ever increasing and has specific differences when compared to the marketing of tangible products. Co …
What are the similarities and differences between the product,
Tarleton State Differences Between Amazon.Com and Big Mac Product Life Cycles Discussion 1. What are the similarities and differences between the product, Big Mac, and retail, Amazon.Com, …
Carmex has been making lip balm since 1937. Nevertheless
Tarleton State University Carmex Marketing Study Case Paper Carmex has been making lip balm since 1937. Nevertheless, in the last five years, it has stressed growth and become more competitive. Dur …
Customers Satisfaction Discussion - Customer satisfaction surveys
UOPX Customers Satisfaction Discussion Customer satisfaction surveys are everywhere, but do they measure loyalty? Review the "Building, Measuring, and Profiting from Customer Loyalty" art …
Wang Tao on Reform Discussion - What arguments did
Read the selection “Wang Tao on Reform.” What arguments did Wang Tao use in his efforts to persuade readers to accept his point of view? Would China’s leaders today find Wang Tao&rsq …
Origins and Aims of Labor Movement & Socialist Politics
San Diego State University Origins and Aims of Labor Movement & Socialist Politics Select any four questions of your choice listed below. Make sure you answer all parts of the question. Minimum …
Part 1,2,3,4,5 -Two political ideologies took center
Part 1 (chapters 1-2): Choose one of the following 3 questions and write a detailed response to it in canvas. Your answer is worth a possible 20 points. (1) Two political ideologies took center sta …
Ethical Decision of Bombing the cities of Hiroshima and Nagasaki Paper
Ethical Decision of Bombing the cities of Hiroshima and Nagasaki Paper On August 6 and 9, 1945, American aircraft dropped atomic bombs on Japan. In 600-1000 words, explain why the decision was made …