Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The project needed in C++ only -------- C++ Programming Project ----------- Outbreak of Ginjuk on the Planet Qwork The planet Qwork is currently experiencing an

The project needed in C++ only

image text in transcribedimage text in transcribedimage text in transcribed

-------- C++ Programming Project -----------

Outbreak of Ginjuk on the Planet Qwork The planet Qwork 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 (IAS) 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 BMI. The Biximent Metabolic Index (BMI) value can be estimated very accurately by using the Smithfield formula: Weight * BL * 0.375 BMI 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 0.77 Sors 0.25 Tort 0.53 A comprehensive battery of tests has been administered to all citizens. They reliably determine the level of Biximent 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 (r, s, 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 is 20 cycles old and weighs 150 kilograms with a reported Biximent Level of 30, the Biximent Metabolic Index is 109.58 and medication treatment is recommended. Biximent Metabolic Index Report Gender: R Age: 20 cycles Weight: 150 kilograms Biximent Level: 30 BMI: 109.58 Recommended treatment: Medication Remember to add an additional line of output when the Biximent Metabolic Index (BMI) value for an inhabitant is greater than 195.00. Biximent Metabolic Index Report Gender: s Age: 20 cycles Weight: 100 kilograms Biximent Level: 31 BMI: 232.50 Recommended treatment: Ultraviolet Inhabitant is Highly Contagious. Your program should execute repeatedly allowing multiple citizens to be evaluated and have their treatment recommended

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions