Professional Documents
Culture Documents
Oop CSL-210
Oop CSL-210
import java.util.Scanner;
weight=data.nextDouble();
height= data.nextDouble();
BMI=calculateBMI(weight,height);
findStat(BMI);
return BMI;
return null;
} //class
Wasif Hassan Niazi 02-235221-012
Q2)
class PatientInfo {
String name;
int age;
String doctorName;
int time;
doctorName = d;
time = t;
void displayAppointment () {
name = n;
age = a; }
void displayInfo() {
}}
patient.name = input.nextLine();
patient.age = input.nextInt();
patient.doctorName = input.next();
patient.time = input.nextInt();
patient.insertInfo(patient.name, patient.age);
patient.displayInfo();
patient.displayAppointment();
}}
Wasif Hassan Niazi 02-235221-012