Question: coding in c++ For this project, you are required to build a personal assistant for those willing to lose/gain weight. The system should present a

 coding in c++ For this project, you are required to builda personal assistant for those willing to lose/gain weight. The system should

coding in c++

For this project, you are required to build a personal assistant for those willing to lose/gain weight. The system should present a welcome message and then ask for a user id and password. This should match a value hardcoded in your program (length of 5 characters at least for both). The program will not start if you don't type the correct information. Create at least 2 users for your program. Next, the system will ask for the user full name, which should be stored in separate variables, as in: first, middle and last name. Each user should have a unique ID specified by your program. This id is composed of: four random numbers from 0 to 9 and one random letter (e.g. 'a' to 'z'). The Program should ask for the user's date of birth (day, moth, year), weight (lb) and height (ft/in). These attributes should be used to calculate the BMI (Body Mass Index - https://en.wikipedia.org/wiki/Body_mass_index) following the World Health Organization (WHO) guidelines, using the metric system. In other words, pounds need to be converted into kilograms (kg) and feet/in to meters/cm to calculate the correct BMI. Do not calculate the BMI using the imperial system. How these values are captured and calculated is up to you, just remember all of them can be any real number. The system must ask if there are any known genetic diseases in the family through a Yes/No question. The user has to actually answer "Yes" or "No" (how your system handle this is up to you). If there is, this should be specified by the user and included in the output as well. Your program should also ask for the gender/sexual orientation identified by as a single character by the user (whatever it is chosen). Once the BMI is obtained, the system should inform the user in which category she/he is, according to Table 01. 15 Table 01: BMI Classification (real numbers). Category BMI (kg/m) from to Very severely underweight Underweght Severely underweight Underweight Normal (healthy Normal weight) Overweight Obese Class (Moderately obese) Obese Class II Overweight Severely obese) Obese Class III (Very 40 - severely obese) Table 01 has two divisions, the first is a major category and the second sub-category. Your program should also provide an action plan/report, so the user can follow and reach out for the "normal" classification, according to Table 01. The action plan message provided by your program should be related to the obtained category. The idea is to encourage the user to reach his/her goals with an easy plan. The final output should display a report as Figure 01 illustrates. ID: user-id Name: Last Name, MI, First Name Age: age Sex/ Gender: x Weight: (pounds and kilograms) each with unit Height: (feet/in and meters/cm) each with unit Diseases: Yes/No - disease (3) BMI: BMI Value - BMI Category : BMI Sub-Category Report: Message with action plan to reduce/gain weight Figure 01: Output example. Note that we are not asking the age, instead we want the date of birth. Your program should calculate the age based on the input. You can either capture the current date from the user, system or hard code it. In addition, MI stands for middle name initial, so in the output we just want the first initial for the middle name. By the end of the report, an exit message should be displayed as well. For this project, you are required to build a personal assistant for those willing to lose/gain weight. The system should present a welcome message and then ask for a user id and password. This should match a value hardcoded in your program (length of 5 characters at least for both). The program will not start if you don't type the correct information. Create at least 2 users for your program. Next, the system will ask for the user full name, which should be stored in separate variables, as in: first, middle and last name. Each user should have a unique ID specified by your program. This id is composed of: four random numbers from 0 to 9 and one random letter (e.g. 'a' to 'z'). The Program should ask for the user's date of birth (day, moth, year), weight (lb) and height (ft/in). These attributes should be used to calculate the BMI (Body Mass Index - https://en.wikipedia.org/wiki/Body_mass_index) following the World Health Organization (WHO) guidelines, using the metric system. In other words, pounds need to be converted into kilograms (kg) and feet/in to meters/cm to calculate the correct BMI. Do not calculate the BMI using the imperial system. How these values are captured and calculated is up to you, just remember all of them can be any real number. The system must ask if there are any known genetic diseases in the family through a Yes/No question. The user has to actually answer "Yes" or "No" (how your system handle this is up to you). If there is, this should be specified by the user and included in the output as well. Your program should also ask for the gender/sexual orientation identified by as a single character by the user (whatever it is chosen). Once the BMI is obtained, the system should inform the user in which category she/he is, according to Table 01. 15 Table 01: BMI Classification (real numbers). Category BMI (kg/m) from to Very severely underweight Underweght Severely underweight Underweight Normal (healthy Normal weight) Overweight Obese Class (Moderately obese) Obese Class II Overweight Severely obese) Obese Class III (Very 40 - severely obese) Table 01 has two divisions, the first is a major category and the second sub-category. Your program should also provide an action plan/report, so the user can follow and reach out for the "normal" classification, according to Table 01. The action plan message provided by your program should be related to the obtained category. The idea is to encourage the user to reach his/her goals with an easy plan. The final output should display a report as Figure 01 illustrates. ID: user-id Name: Last Name, MI, First Name Age: age Sex/ Gender: x Weight: (pounds and kilograms) each with unit Height: (feet/in and meters/cm) each with unit Diseases: Yes/No - disease (3) BMI: BMI Value - BMI Category : BMI Sub-Category Report: Message with action plan to reduce/gain weight Figure 01: Output example. Note that we are not asking the age, instead we want the date of birth. Your program should calculate the age based on the input. You can either capture the current date from the user, system or hard code it. In addition, MI stands for middle name initial, so in the output we just want the first initial for the middle name. By the end of the report, an exit message should be displayed as well

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!