Jump to content

Newb needs help

- - - - -

  • Please log in to reply
1 reply to this topic

#1
sd023

sd023

    Newbie

  • Members
  • Pip
  • 1 posts
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

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
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.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users