You are on page 1of 2

START

Rooms← 85
Guests← 0
Companypayment←0
Repeat
Print “Enter your company name”
Read cname
Until (cname = "STOP")
While (name <> stop) DO
Print “Enter your name”
Read n
Print “Enter if you are a early bird yes or no”
Read E
Print “Enter your Package”
Read P
Print “Enter If you are International or Local”
Read S
Print “Enter your Duration of stay at the hotel”
Read DOS
Guests← Guests+1
IF (S = "local") THEN
Cost←18,000 *DOS
ELSE
Cost←(157*142)*DOS
IF (E = "yes")THEN
D←.3*Cost
Else
IF (P= "BRZ") THEN
D← 3/100* Cost
ElseIF (P="GLD") THEN
D← 5/100* Cost
ElseIF (P="SLV") THEN
D←7/100* Cost
Else
D←10/100 * Cost
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
Fcost←Cost-D
Companypayment = Companypayment + Fcost
Guests←Guests + 1
Rooms←Rooms - Guests
ENDWHILE
Print "company name is", cname
Print "company payment is",Companypayment
Print "Name is",n
Print "cost is",cost
Print "discount amount is",D
Print "final cost ",Fcost
Print "number of registered guest are",Guests
print "number of available rooms are",Rooms
Rooms← 85
Guests← 0
Companypayment←0
STOP

You might also like