Xtra Care Hospital Bill Generator
1. Xtra care hospital has computerized its billing . A new bill is generated for each patient. The hospital allows four different types of patients take admission. The daily charges are based on the type of patient. The following is the data entry screen used to generate the bill at the time of discharging the patient.
Patient
Type
|
Daily
Charges
|
OPD
|
300
|
ICU
|
4000
|
Private
|
2000
|
Dormitory
|
1000
|
{
String Name = t1.getText();
int rate=0;
int billamount;
int n= Integer.parseInt(t2.getText());
if (rb1.isSelected())
r=300;
else if (rb2.isSelected())
r=4000;
else if (rb3.isSelected())
r=2000;
else if (rb4.isSelected())
r=1000;
ba=n*r;
t3.setText(""+ba);
}
Comments
Post a Comment