Doctors use "mind maps" to help remember the overwhelming amount of information they have to cover. Write a C++ program in a file called smoking.cpp to implement the attached mind map

  • Starting at the left, prompt user for one of the labels of the lines to the next column
  • Based on the response, prompt for one of the labels that lead to the column after that
  • If you reach the right side, output the text. (As this is an aid to memory, it is purposely brief. Of course a smoker may end up with none, one or more than one of these effects.)
  • On invalid inputs, output "The mind map does not have info for that response"

Sample run:

This is an example start to a mind map. It is based on part of the mind map at https://en.wikipedia.org/wiki/User:Madhero88/MindMaps#/media/File:Smokingheltheffect.gif (all effects indicate a greater risk, but of course not a guaranteed outcome)

Are you interested in smoking's effects on 'senses' or the 'rs' (respiratory system)? [Enter senses or rs] senses
Are you interested in vision, smell or taste? taste
reduced sense of taste

comments - Include a brief description of the program in a comment at the top of the file

proper naming - name any constants (and use them), plus give appropriate names that describe the purpose of each constant or variable. Abbreviations are ok, but avoid single letter names.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.