answersLogoWhite

0


Best Answer

i mean unit hospital;

interface

uses crt;

implementation

Var

name:string;

typeofroom,tp,tv:char;

month, day, year, daysstayed,roomcharge,tpcharge,tvcharge,nory1,nory2,totalcharge:integer;

const

pc=125;

sc=95;

Wc=75;

Tvc=3.50;

Tpc=1.75;

begin

//prompting

writeln('please enter the patients''s name':44);

readln(name);

writeln('please enter the number of days stayed in the hospital':63);

readln(daysstayed);

writeln('please write the month':31);

readln(month);

writeln('please write the day':29);

readln(day);

writeln('pelase enter the year':30);

readln(year);

writeln('please enter y or n for which typeofroom you used. P for private, S for semi private, and W for ward':57);

readln(typeofroom);

Case typeofroom of 'P':roomcharge:=(pc*daysstayed);

's':roomcharge:=(sc*daysstayed);

'w':roomcharge:=(wc*daysstayed);

end;

writeln('enter y or n for yes or no if they used the telephone':62);

readln(nory1);

Case tpcharge of 'Y':(tpcharge:=tpc*daysstayed);

'N':(tpcharge:=0);

end;

writeln('enter y or n for yes or no if they used the television':63);

readln(nory2);

Case tvcharge of 'Y':(tvcharge:=Tvc*daysstayed);

'N':(tvcharge:=0);

end;

//computing

Totalcharge:=roomcharge+tvcharge+tpcharge;

//

end.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you solve this pascal Edit my code in pascal i really need come help. here's my code. Sorry but its a bit messy. unit hospital interface uses crt implementation Var namestring typeofroomtptvcha?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

You want complete user interface of hospital management system software?

yes


saket?

multispecialist hospital


What has the author Jean St-Yves written?

Jean St-Yves has written: 'Implementation of a self-medication program (SMP) at the Ottawa Civic Hospital Geriatric Assessment Unit (GAU)' -- subject(s): Self medication, Older people, Geriatric pharmacology, Drug use


How many hospitals are there in Adelaide?

There are 28 total Hospitals in Adelaide rural and metro areas. They are: Ashford Hospital Burnside War Memorial Hospital Calvary Hospital Adelaide Inc. Calvary Wakefield Hospital Glenelg Community Hospital Lyell McEwin Hospital McLaren Vale and Districts War Memorial Hospital Modbury Hospital North Eastern Community Hospital Incorporated The Queen Elizabeth Hospital Repatriation General Hospital Royal Adelaide Hospital St Andrew's Hospital Women's and Children's Hospital Ardrossan Community Hospital Booleroo Centre District Hospital & Health Service Crystal Brook District Hospital Coober Pedy Hospital Cummins And District Memorial Hospital Hawker Hospital Mount Barker Soldiers Memorial Hospital Murray Bridge Soldiers Memorial Hospital Quorn Hospital South Coast District Hospital Tailem Bend District Hospital Tumby Bay Hospital and Health Services Whyalla Hospital and Health Services Woomera Community Hospital


Interface of an X-ray machine?

I had to look this up, but it sounded intriguing. After all, people made X-rays on machines whose "interface" was a knob for the last 100 years. It should be obvious to all that since knobs no longer work for anything, there have to be a billion buttons and a Windows interface on it, right? Turns out there are two kinds of X-ray machines on the market today--digital and analog. A digital X-ray machine is pretty nice if you've got a computerized hospital--you can take a picture of someone in a hospital in Alaska and a radiologist in Seattle, or at the Mayo Clinic, can read the X-ray from the comfort of her own office. Those machines have fancy Windows-based interfaces. Then there are analog machines, which expose film--still a very viable technology because instead of putting a CD containing a patient's X-rays in his record, and hoping the hospital's new computer will read it ten years down the road or the hospital ten miles down the road has a computer that can read the X-ray file format, you put the film in the record and read it by holding it up in front of the window. They still have knobs, or up/down pushbuttons that do the same thing.


What is the highest position of hospital?

Chief of Hospital Hospital Director


advance neuro?

patna


saket hospital jaipur?

best hospital in jaipur


Is Barnes Jewish hospital for profit or a non-profit hospital?

BarnesJewish Hospital is a non-profit hospital.


Where was the 1980s sitcom Only When I Laugh set?

It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.It was set in the ward of a hospital in Britain.


Is there a hospital call Lemavie?

Is there a hospital called Lemavie Hospital in Nigeria


How to measure respiration in hospital chart?

what is a hospital chart??? what is a hospital chart???