what line number are each error on, what is the error, what do i do to correct each error?
1 Module main
2 Declare Integer floor, Real commission
3
4 Display Enter the floor on which the apartment is located:
5 Input floor
6 Call Module calcFloorCommission(floor, commission)
7 Display "Enter the number of bedrooms:"
8 input bedrooms
9 Module addBedroomCommission()
10 Display "The agent's commission will be $" agentCommission
11 "Please allow five business days for issuance of the commission check."
12 End
13
14 calcfloorcommission(Declare floorNumber, Real Ref baseComm)
15 Constant Integer FLOOR_RATE = 49.95
16 Set baseComm = floorNumber * FLOOR_RATE
17 End Module
18
19 Module addBedroomCommission Integer rooms, String Ref newComm
20 Real roomValue
21 Declare Constant ROOM_RATE = 30.00
22 Set roomValue = rooms * roomRate
23 newComm = newComm + roomValue
24 Stop
1 reply to this topic
#1
Posted 18 June 2011 - 03:29 PM
|
|
|
#2
Posted 18 June 2011 - 04:08 PM
Since this looks like homework, I can say that there's an inconsistency between how you declared calcfloorcommission and addBedroomCommission, but there's no way to know which declaration is correct, since this appears to be pseudocode.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









