To Lecture Notes

LSP 121 -- 11/11/10

 

Review Questions

  1. List possible properties and methods for a SavingsAccount object.

    Ans: Properties: Balance, OwnerID, InterestRate, BankId.

    Properties: AcceptDeposit, MakeWithdrawal, AddInterest, CloseOutAccount.

  2. How do you save an Alice World?

    Ans: File >> Save As >> Save to MyDocuments.

  3. How do you reopen an Alice World?

    Ans: Invoke the Alice IDE >> File >> Open. You can't open an Alice File (a2w extension) by double clicking on the file in the Windows Explorer.

  4. How do you add a property to an Alice object?

    Ans: Select the object in the Object Tree Window >> Select the Properties Tab for the object in the Details Window >> Create New Variable.

 

Algorithms and Control Structures