Question: make the code for this program. The Florida Dental Association needs a program to record what teeth the members of Florida families have. Different Floridians
make the code for this program. The Florida Dental Association needs a program to record what teeth the members of Florida families have. Different Floridians have different numbers of different types of teeth the program must use this simplified categorization of types of teeth:
Incisors the I teeth
Bicuspids the B teeth
Missing teeth the M teeth
The program must record the teeth for one Florida family. When it starts the program asks how many people there are in the family maximally then for each family member gets their name, a string of tooth types each character in the string represents one tooth for the uppers maximally teeth including missing teeth and a string a tooth types for the lowers maximally teeth including missing teeth eg the string "BMIIBBM" would represent teeth of which two are missing The names are recorded in an array of strings. The tooth information is recorded in a three dimensional array of characters, where each plane corresponds to a person, there are two rows uppers and lowers and each row has a column for each tooth. Once the information is recorded the program must offer a menu of four options:
Print the family's teeth record.
Extract a tooth with a check that there is something there to remove
Report the family's root canal indices, which are the roots of the quadratic equation Ix Bx M where I, B and M are the family's numbers of those types of teeth.
Exit with a smile
The program must be reasonably idiot proof:
Menu options must be accepted in upper and lower case.
Tooth letters must be accepted in upper and lower case.
All input must be checked to be in range, and if not the user must be asked to input again.
You may assume that numeric input will be syntactically correct.
Here's what a sample run should look like with the keyboard input shown in italics
Welcome to the Floridian Tooth Records
Please enter number of people in the family :
Invalid number of people, try again :
Invalid number of people, try again :
Please enter the name for family member : Henrietta
Please enter the uppers for Henrietta : ABCDEFGH
Invalid teeth types, try again : IIIBMBIIIMBBMIII
Too many teeth, try again : BMBIMBM
Please enter the lowers for Henrietta : BBMIIMBB
Please enter the name for family member : Stanley
Please enter the uppers for Stanley : miim
Please enter the lowers for Stanley : bbMMbb
Please enter the name for family member : Raul
Please enter the uppers for Raul : BBIbbbB
Please enter the lowers for Raul : bbiIIBB
PrintExtractRoot eXit : T
Invalid menu option, try again : p
Henrietta
Uppers: :B :M :B :I :M :B :M
Lowers: :B :B :M :I :I :M :B :B
Stanley
Uppers: :M :I :I :M
Lowers: :B :B :M :M :B :B
Raul
Uppers: :B :B :I :B :B :B :B
Lowers: :B :B :I :I :I :B :B
PrintExtractRoot eXit : E
Which family member : Melanie
Invalid family member, try again : stanley
Which tooth layer Upper or Lower : M
Invalid layer, try again : u
Which tooth number :
Invalid tooth number, try again :
Missing tooth, try again :
PrintExtractRoot eXit : P
Henrietta
Uppers: :B :M :B :I :M :B :M
Lowers: :B :B :M :I :I :M :B :B
Stanley
Uppers: :M :M :I :M
Lowers: :B :B :M :M :B :B
Raul
Uppers: :B :B :I :B :B :B :B
Lowers: :B :B :I :I :I :B :B
PrintExtractRoot eXit : R
One root canal at
Another root canal at
PrintExtractRoot eXit : X
Exiting the Floridian Tooth Records :-)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
