Answered step by step
Verified Expert Solution
Question
1 Approved Answer
RESPOND IN C++ The planet Qwack is currently experiencing an outbreak of Ginjuk, a serious, contagious disease. Inhabitants of the planet Qwork are divided into
RESPOND IN C++
The planet Qwack is currently experiencing an outbreak of Ginjuk, a serious, contagious disease. Inhabitants of the planet Qwork are divided into three distinct genders, identified by the letters: "R", "s", and "T". Each of the three different genders are affected in slightly different ways when they contract Ginjuk. A substance called Biximent, found in their circulatory system, is an important factor in determining appropriate treatment for the inhabitants. Your job as Medical Officer for the Interplanetary Aid Society (LAS) is to recommend treatment for inhabitants who may have contracted Ginjuk. Possible treatments vary from medication and ultraviolet light baths to hospitalization based on gender and several other factors. You must write a computer program that evaluates citizen responses from interview questions, determines the Biximent Metabolic Index (BMI), and recommends an appropriate treatment based on the value of EMI. The Biximent Metabolic Index (BMI) value can be estimated very accurately by using the Smithfield formula: BMI = Weight - BL -0.375 Age GF Where: BMI is the Biximent Metabolic Index (BMI) Weight - weight in kilograms BL Biximent Level Age - age in solar cycles GF - Gender Factor Gender factors for each gender type are as follows: Gender Identification Gender Factor Rorr Sors 0.25 Tort 0.53 0.77 A comprehensive battery of tests has been administered to all citizens. They reliably determine the level of Boximent that is present in the circulatory system of each inhabitant. Weights are reported in kilograms and inhabitants report their age as a number of solar cycles. This table shows which treatment should be recommended based on the value of the Biximent Metabolic Index (BMI) value. Range of BMI Values Recommended Treatment Less than 75 Mild case, no treatment required 75 or greater, but less than 127.5 Serious case, medication treatment 127.5 or greater, but less than 280 Acute case, ultraviolet treatment 280 or greater, but less than 375 Severe case, replacement therapy 375 or greater Extreme case, hospitalization It is important to note that if the Biximent Metabolic Index (BMI) value is greater than 195.00, inhabitants are considered "Highly Contagious" and an additional line of output is required in your recommendation report. Your program should do the following: 1. Prompt the citizen for their weight in kilograms. 2. Prompt the citizen for their age in solar cycles. 3. Prompt the citizen for their gender identification (R, S, or T) 4. Prompt the citizen for their Biximent level. 5. Calculate the Biximent Metabolic Index (BMI) 6. Display the recommended treatment for that level of BMI in a nicely formatted, comprehensive report that: Echoes the input parameters. Displays the Biximent Metabolic Index (BMI) level to 2 decimal places. Recommends treatment appropriate to the BMI level. Identifies a "Highly Contagious condition, if appropriate. Lower-case letters (5, 5, and t) are sometimes used by the clans that inhabit the northern hemisphere of the planet to indicate their gender. These letters should be treated the same as their upper-case equivalents. Your program must guard against bad values by validating all input data. Numeric entries must be nonzero and positive but may be entered as floating point values. For example, a citizen's weight may be entered as 147.25 kilograms. The number of solar cycles can also be reported using values such as 12.5. Biximent values are typically reported using a floating- point format. Remember your training and have confidence. Citizens of Earth are immune to Ginjuk. These people need your help! Here are two examples of what your report for each citizen could look like. For a citizen of gender type R, who as 20 cycles old and weighs 150 kilograms with a reported Biximent Level of 30, the Biximent Metabolic Index is 109.59 and medication treatment 13 recommended. Biximent Metabolic Index Report Gender: R Age: 20 cycles Weight: 150 kilograms Biximent Level: 30 EMI: 109.58 Recommended treatment: Medication Remember to add an additional line of output when the Eiximent Metabolic Index (BMI) value for an inhabitant is greater than 195.00. Biximent Metabolic Index Report Gender: 3 Age: 20 cycles Weight: 100 kilograms Bixement Level: 31 EMI: 232.50 Recommended treatment: Ultraviolet Inhabitant in Highly Contagious. Your program should execute repeatedly allowing multiple citizens to be evaluated and have their treatment recommended. Create a comment containing the student's full name. (5 points) . Prompt the citizen for their age in solar cycles. (5 points) Prompt the citizen for their weight in kilograms. (5 points) Prompt the citizen for their gender identification. (10 points) Use the appropriate gender factor. (5 points) Prompt the citizen for their Biximent Level. (5 points) Correctly echo back all the input parameters. (10 points) Validate all the input values. (10 points) Calculate the BMI value correctly. (10 points) Display the BMI value. (5 points) Determine and display the appropriate recommended treatment. (10 points) Correctly add "Highly Contagious" when BMI value is greater than 195.00. (5 points) Allow the program to repeatedly make BMI estimates. (10 points) Use prompts and error messages that were easy to understand. (5 points) RESPOND IN C++ The planet Qwack is currently experiencing an outbreak of Ginjuk, a serious, contagious disease. Inhabitants of the planet Qwork are divided into three distinct genders, identified by the letters: "R", "s", and "T". Each of the three different genders are affected in slightly different ways when they contract Ginjuk. A substance called Biximent, found in their circulatory system, is an important factor in determining appropriate treatment for the inhabitants. Your job as Medical Officer for the Interplanetary Aid Society (LAS) is to recommend treatment for inhabitants who may have contracted Ginjuk. Possible treatments vary from medication and ultraviolet light baths to hospitalization based on gender and several other factors. You must write a computer program that evaluates citizen responses from interview questions, determines the Biximent Metabolic Index (BMI), and recommends an appropriate treatment based on the value of EMI. The Biximent Metabolic Index (BMI) value can be estimated very accurately by using the Smithfield formula: BMI = Weight - BL -0.375 Age GF Where: BMI is the Biximent Metabolic Index (BMI) Weight - weight in kilograms BL Biximent Level Age - age in solar cycles GF - Gender Factor Gender factors for each gender type are as follows: Gender Identification Gender Factor Rorr Sors 0.25 Tort 0.53 0.77 A comprehensive battery of tests has been administered to all citizens. They reliably determine the level of Boximent that is present in the circulatory system of each inhabitant. Weights are reported in kilograms and inhabitants report their age as a number of solar cycles. This table shows which treatment should be recommended based on the value of the Biximent Metabolic Index (BMI) value. Range of BMI Values Recommended Treatment Less than 75 Mild case, no treatment required 75 or greater, but less than 127.5 Serious case, medication treatment 127.5 or greater, but less than 280 Acute case, ultraviolet treatment 280 or greater, but less than 375 Severe case, replacement therapy 375 or greater Extreme case, hospitalization It is important to note that if the Biximent Metabolic Index (BMI) value is greater than 195.00, inhabitants are considered "Highly Contagious" and an additional line of output is required in your recommendation report. Your program should do the following: 1. Prompt the citizen for their weight in kilograms. 2. Prompt the citizen for their age in solar cycles. 3. Prompt the citizen for their gender identification (R, S, or T) 4. Prompt the citizen for their Biximent level. 5. Calculate the Biximent Metabolic Index (BMI) 6. Display the recommended treatment for that level of BMI in a nicely formatted, comprehensive report that: Echoes the input parameters. Displays the Biximent Metabolic Index (BMI) level to 2 decimal places. Recommends treatment appropriate to the BMI level. Identifies a "Highly Contagious condition, if appropriate. Lower-case letters (5, 5, and t) are sometimes used by the clans that inhabit the northern hemisphere of the planet to indicate their gender. These letters should be treated the same as their upper-case equivalents. Your program must guard against bad values by validating all input data. Numeric entries must be nonzero and positive but may be entered as floating point values. For example, a citizen's weight may be entered as 147.25 kilograms. The number of solar cycles can also be reported using values such as 12.5. Biximent values are typically reported using a floating- point format. Remember your training and have confidence. Citizens of Earth are immune to Ginjuk. These people need your help! Here are two examples of what your report for each citizen could look like. For a citizen of gender type R, who as 20 cycles old and weighs 150 kilograms with a reported Biximent Level of 30, the Biximent Metabolic Index is 109.59 and medication treatment 13 recommended. Biximent Metabolic Index Report Gender: R Age: 20 cycles Weight: 150 kilograms Biximent Level: 30 EMI: 109.58 Recommended treatment: Medication Remember to add an additional line of output when the Eiximent Metabolic Index (BMI) value for an inhabitant is greater than 195.00. Biximent Metabolic Index Report Gender: 3 Age: 20 cycles Weight: 100 kilograms Bixement Level: 31 EMI: 232.50 Recommended treatment: Ultraviolet Inhabitant in Highly Contagious. Your program should execute repeatedly allowing multiple citizens to be evaluated and have their treatment recommended. Create a comment containing the student's full name. (5 points) . Prompt the citizen for their age in solar cycles. (5 points) Prompt the citizen for their weight in kilograms. (5 points) Prompt the citizen for their gender identification. (10 points) Use the appropriate gender factor. (5 points) Prompt the citizen for their Biximent Level. (5 points) Correctly echo back all the input parameters. (10 points) Validate all the input values. (10 points) Calculate the BMI value correctly. (10 points) Display the BMI value. (5 points) Determine and display the appropriate recommended treatment. (10 points) Correctly add "Highly Contagious" when BMI value is greater than 195.00. (5 points) Allow the program to repeatedly make BMI estimates. (10 points) Use prompts and error messages that were easy to understand. (5 points) RESPOND IN C++Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started