In Java please!! Please create a binary tree OR java graph data structure in order to make a functional questionaire terminal program. The program should proceed to first ask the user if they use...


In Java please!!



Please create a binary tree OR java graph data structure in order to make a functional questionaire terminal program. The program should proceed to first ask the user if they use Tobacco (Yes/No). If they user specifies yes, then it will ask questions "Tobacco quantity?" and "Tobacco duration?", recording each of the users inputs. The program will then proceed to ask the user if they use Alcohol (Yes/No). If yes, the program will follow up with questions "Alcohol quantity?" and "Alcohol duration?". The next question to be asked is Drugs (Yes/No). If yes, it will ask the "duration of drug use", and also "drug type?". The final two questions have no route, just a simple "Blood type?" and "Rh Factor?". All inputs should be stored in separate strings, ex: String alcohol = "Yes", String alcQuantity = "1 beer a week", etc. The question answers should then be printed after the questionaire had finished.


Thank you!


Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here