S2-A.pdf - COMSATS University Islamabad Lahore Campus SII...

This preview shows page 1 - 2 out of 2 pages.

COMSATS University Islamabad, Lahore Campus SII Examination FALL 2020 Course Title: Object Oriented Programing Course Code: CSC241 Credit Hours: 4(3,1) Course Dr. Shahbaz Akhtar Abid Programme Name: BCS Semester: 3 rd Batch: FA19-BCS , Section: A Date: 04-12-2020 Time Allowed: 80 Minutes Maximum Marks: 30 Student’s Name: Reg. No. CUI - - - /LHR Important Instructions / Guidelines: Consider java language for all answers and return question papers at the end of exam. Problem Statement Medicine Billing Doctor -medID: int -medName: String +<<constructor>>Medicine (medName:String, quantity: int, price: double) +getmedQuantity (): int +getPricePerUnit () : double +getPaymentAmount(): double +toString(): String -medQuantity: int -medPricePerUnit: double -billID: int +<<constructor>>Billing (docInfo:Doctor, pInfo:Patient, medList: List<Medicine>, medTest:List<MedicalTest>) -docInfo: Doctor -pInfo: Patient -docName: String -docID: int -docFee: double +setDocID (id:int) +getDocID () : int +toString(): String +<<constructor>>Doctor (docName:String, docID:int, docFee:double) <<Interface>> Payable +getPaymentAmount(): double

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture