Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program for a biologist that calculates and prints metabolic power. 1. Include a void function, called GetData, that takes six arguments and

image text in transcribed

Write a C++ program for a biologist that calculates and prints metabolic power. 1. Include a void function, called GetData, that takes six arguments and inputs the mass, ambient temperature, chamber pressure, concentration of ambient air (pre-animal), concentration of ambient air (post-animal), and the rate in which oxygen is pumped into the chamber. 2. Include a void function, called CalcVOC, that takes four parameters and determines voc. 3. Include a value-returning function, called CalcSTP, that takes three parameters (voc, cp, at) and calculates stp. 4. Include a value-returning function, called CalcMP, that takes two parameters (stp, mass) and calculates mp. 5. Include a function, called PrintMetPower, that takes seven parameters and prints an appropriate concluding message on the screen. Demonstrate that your program works using the squirrel example above. This program computes the metabolic power of mammals and reptiles. Please input the mass of the animal: 30 Please input the ambient temperature: 5 Please input chamber pressure: 756 Please input concentration of oxygen in ambient air (pre-animal): 0.2095 Please input concentration of oxygen in ambient air (post-animal): 0.2092 Please input the rate of oxygen: 6000 The mass of the animal is 30 grams. The ambient temperature is 5 degrees. The chamber pressure is 756 mmHG. The concentration of ambient air (pre-animal) is 0.2095 The concentration of ambient air (post-animal) is 0.2092. The rate of oxygen is 6000 mL/hr. The metabolic power for this mammal or reptile is 0.414055. Write a C++ program for a biologist that calculates and prints metabolic power. 1. Include a void function, called GetData, that takes six arguments and inputs the mass, ambient temperature, chamber pressure, concentration of ambient air (pre-animal), concentration of ambient air (post-animal), and the rate in which oxygen is pumped into the chamber. 2. Include a void function, called CalcVOC, that takes four parameters and determines voc. 3. Include a value-returning function, called CalcSTP, that takes three parameters (voc, cp, at) and calculates stp. 4. Include a value-returning function, called CalcMP, that takes two parameters (stp, mass) and calculates mp. 5. Include a function, called PrintMetPower, that takes seven parameters and prints an appropriate concluding message on the screen. Demonstrate that your program works using the squirrel example above. This program computes the metabolic power of mammals and reptiles. Please input the mass of the animal: 30 Please input the ambient temperature: 5 Please input chamber pressure: 756 Please input concentration of oxygen in ambient air (pre-animal): 0.2095 Please input concentration of oxygen in ambient air (post-animal): 0.2092 Please input the rate of oxygen: 6000 The mass of the animal is 30 grams. The ambient temperature is 5 degrees. The chamber pressure is 756 mmHG. The concentration of ambient air (pre-animal) is 0.2095 The concentration of ambient air (post-animal) is 0.2092. The rate of oxygen is 6000 mL/hr. The metabolic power for this mammal or reptile is 0.414055

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago