No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

SellingHouses

Lisez d'abord l'énoncé, et essayez de résoudre l'exercice. Ensuite vous pouvez utiliser la boîte de sélection afin d'afficher le code correspondant.

Enoncé

Un agent immobilier nous demande de l'aider à automatiser son travail.

  • Pour une maison, nous devons pouvoir déterminer
    • le nombre de pièces.
    • la surface totale de la maison.
    • le prix total.
    NB :
    • chaque pièce connaît sa surface.
  • Un type particulier de maison est la villa.
    Pour une villa, nous devons pouvoir déterminer
    • le nombre de pièces.
    • la surface totale.
    • le prix total.
    • si la villa possède un grand jardin.
    NB  
    • prix total : prix par unité * surface
    • si la villa possède un grand jardin, +10%
    • astuce : nous pouvons utiliser un type Collection pour stocker les pièces de la villa.
  • Un autre type particulier est le loft
    • un loft ne possède pas de jardin, mais peut posséder un balcon.
    • un loft ne comporte qu'une seule pièce.
    NB :
    • prix total : prix par unité * surface
    • si le loft possède un balcon, +5%

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 15/05/2005, last modified the 08/08/2019
Source of the printed document:https://www.gaudry.be/en/javaex-rf-SellingHouses.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.