package Assignment3;
import javax.swing.JOptionPane;
public class Assignment3 {
public static void main(String[] args) {
//Variables
String gen1, gen2, gen3, gen4, gen5;
int age1, age2, age3, age4, age5;
String loc1, loc2, loc3, loc4, loc5;
double ins1, ins2, ins3, ins4, ins5;
String avalue, gvalue, Ivalue;
String pat1, pat2, pat3, pat4, pat5;
String doc1, doc2, doc3, doc4, doc5;
//Patient Name Dialog Boxes
pat1 = JOptionPane.showInputDialog(null,"Enter 1st Patients Name: ", "Name", JOptionPane.QUESTION_MESSAGE);
pat2 = JOptionPane.showInputDialog(null,"Enter 2nd Patients Name: ","Name", JOptionPane.QUESTION_MESSAGE);
pat3 = JOptionPane.showInputDialog(null,"Enter 3rd Patients Name: ","Name", JOptionPane.QUESTION_MESSAGE);
pat4 = JOptionPane.showInputDialog(null,"Enter 4th Patients Name: ","Name", JOptionPane.QUESTION_MESSAGE);
pat5 = JOptionPane.showInputDialog(null,"Enter 5th Patients Name: ","Name", JOptionPane.QUESTION_MESSAGE);
//Age Dialog Boxes
avalue = JOptionPane.showInputDialog(null,"Enter Age For: "+pat1,"Age", JOptionPane.QUESTION_MESSAGE);
age1 = Integer.parseInt(avalue);
avalue = JOptionPane.showInputDialog(null,"Enter Age For: "+pat2,"Age", JOptionPane.QUESTION_MESSAGE);
age2 = Integer.parseInt(avalue);
avalue = JOptionPane.showInputDialog(null,"Enter Age For: "+pat3,"Age", JOptionPane.QUESTION_MESSAGE);
age3 = Integer.parseInt(avalue);
avalue = JOptionPane.showInputDialog(null,"Enter Age For: "+pat4,"Age", JOptionPane.QUESTION_MESSAGE);
age4 = Integer.parseInt(avalue);
avalue = JOptionPane.showInputDialog(null,"Enter Age For: "+pat5,"Age", JOptionPane.QUESTION_MESSAGE);
age5 = Integer.parseInt(avalue);
//Gender Dialog Boxes
gen1 = JOptionPane.showInputDialog(null,"Enter Gender For: "+pat1,"Gender", JOptionPane.QUESTION_MESSAGE);
gen2 = JOptionPane.showInputDialog(null,"Enter Gender For: "+pat2,"Gender", JOptionPane.QUESTION_MESSAGE);
gen3 = JOptionPane.showInputDialog(null,"Enter Gender For: "+pat3,"Gender", JOptionPane.QUESTION_MESSAGE);
gen4 = JOptionPane.showInputDialog(null,"Enter Gender For: "+pat4,"Gender", JOptionPane.QUESTION_MESSAGE);
gen5 = JOptionPane.showInputDialog(null,"Enter Gender For: "+pat5,"Gender", JOptionPane.QUESTION_MESSAGE);
//Location Dialog Boxes
loc1 = JOptionPane.showInputDialog(null,"Enter Location For: "+pat1,"Location", JOptionPane.QUESTION_MESSAGE);
loc2 = JOptionPane.showInputDialog(null,"Enter Location For: "+pat2,"Location", JOptionPane.QUESTION_MESSAGE);
loc3 = JOptionPane.showInputDialog(null,"Enter Location For: "+pat3,"Location", JOptionPane.QUESTION_MESSAGE);
loc4 = JOptionPane.showInputDialog(null,"Enter Location For: "+pat4,"Location", JOptionPane.QUESTION_MESSAGE);
loc5 = JOptionPane.showInputDialog(null,"Enter Location For: "+pat5,"Location", JOptionPane.QUESTION_MESSAGE);
//Insurance Dialog Boxes
Ivalue = JOptionPane.showInputDialog(null,"Enter Insurance Amount For: "+pat1, JOptionPane.QUESTION_MESSAGE);
ins1 = Double.parseDouble(Ivalue);
Ivalue = JOptionPane.showInputDialog(null,"Enter Insurance Amount For: "+pat2, JOptionPane.QUESTION_MESSAGE);
ins2 = Double.parseDouble(Ivalue);
Ivalue = JOptionPane.showInputDialog(null,"Enter Insurance Amount For: "+pat3, JOptionPane.QUESTION_MESSAGE);
ins3 = Double.parseDouble(Ivalue);
Ivalue = JOptionPane.showInputDialog(null,"Enter Insurance Amount For: "+pat4, JOptionPane.QUESTION_MESSAGE);
ins4 = Double.parseDouble(Ivalue);
Ivalue = JOptionPane.showInputDialog(null,"Enter Insurance Amount For: "+pat5, JOptionPane.QUESTION_MESSAGE);
ins5 = Double.parseDouble(Ivalue);
//Doctor Dialog Boxes
doc1 = JOptionPane.showInputDialog(null,"Enter Doctor's Name For: "+pat1,"Doctor's Name", JOptionPane.QUESTION_MESSAGE);
doc2 = JOptionPane.showInputDialog(null,"Enter Doctor's Name For: "+pat2,"Doctor's Name", JOptionPane.QUESTION_MESSAGE);
doc3 = JOptionPane.showInputDialog(null,"Enter Doctor's Name For: "+pat3,"Doctor's Name", JOptionPane.QUESTION_MESSAGE);
doc4 = JOptionPane.showInputDialog(null,"Enter Doctor's Name For: "+pat4,"Doctor's Name", JOptionPane.QUESTION_MESSAGE);
doc5 = JOptionPane.showInputDialog(null,"Enter Doctor's Name For: "+pat5,"Doctor's Name", JOptionPane.QUESTION_MESSAGE);