Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hospital Premier need a system called Hospital Premier Information System. They need an information of their staff, doctor and patient to be stored in different

Hospital Premier need a system called Hospital Premier Information System.
They need an information of their staff, doctor and patient to be stored in different file. The information needed for every entity is shown as below:
Doctor(DrID,DrName,DrGrade,DrPhone);
Staff(StaffID, StaffName, Position, Department)
Patient(PtNo, PtName,PtWard, Day)
As a programmer, you need to develop a python program to fulfil the requirement below
1. Administrator will key in all the record of doctors, staffs, and patients; and store them in different files.(Minimum five records for every file)
2. The administrator then could view the record of every file.
3. The administrator will key in a new record in Patient file (without delete the existing content) which contains information as below:
PtNo
PtName
PtWard
DrName
StaffName
Day
Total payment
Assume that patient will be charged RM50 per day. 50% discount will be given to patient who age is more than 60 year old.
4. Show the details in patient file.

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

import ReadHospitalExcelSheet import WriteHospitalExcelSheet def AppointmentIndexInDoctorsDataBase patientID for i in DoctorsDataBase for j in DoctorsDataBasei if strpatientID strj0 Appointmentindex D... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
636bedbad4c02_242763.pdf

180 KBs PDF File

Word file Icon
636bedbad4c02_242763.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Statistics Picturing The World

Authors: Ron Larson, Betsy Farber

6th Edition

0321911210, 978-0321911216

More Books

Students also viewed these Programming questions

Question

Gambling by student and professional athletes

Answered: 1 week ago

Question

BPR always involves automation. Group of answer choices True False

Answered: 1 week ago