Tarea 8 Computer Science Tecmilenio

Páginas: 4 (766 palabras) Publicado: 6 de octubre de 2012
Objective:
Manage the String class and describe the use of reference variables and primitive variables.
Procedure:
1. Consider the Local class with the following attributes and methods:
Localclass
Attributes
Address
Construction company
Space (square meters)
Local cost
Payment form (cash or credit)
Monthly cost
Cost with interest
Amount of months to pay
Cost of the floor (cost ofsquare meter)
Cost of floor with installation
Cost of paint (cost per bucket of 1 liter)
Cost of painter
Methods:
Calculate the cost of floor with installation (multiplying the amount of squaremeters of the local with the cost of floor square meter plus 2000 of the workforce).
Calculate the monthly cost. If the payment form is credit, to calculate the monthly cost consider dividing thecost of the local by the amount of months to pay and multiply it by 1.15.
Calculate the cost with interest. If the payment form is credit, the cost with interest is the same as the cost of theapartment multiplied by 1.15; in case the payment is in cash the cost will be the same as the price of the local.
Calculate the cost of the paint including workforce (multiply the cost of the paint –bucket of 1 liter – by the amount of square meters of the local, and multiply the result by 1.15, adding 2000 to the result for the workforce).
Calculate the final cost (add the cost with interest, plusthe cost of the floor installations, plus the cost of the paint with workforce, plus the cost of gas installation). Display the result on the screen.
Graphically represent the Local class:
Local+adress : String
+construction : String
+costlocal : float
+payment : boolean; //True: Credit, False: Cash
+monthlycost : float
+interestcost : float
+amountmonth : int
+monthlypayment : float+costfloor : float
+costfloorinstalation : float
+costpaint : float
+costpaintworkforce : float
+costgasinstalation : float
+finalcost : float;
+floor_instalation_cost()
+monthly_cost()...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Tarea 8 De Historia Tecmilenio
  • tarea 8 Tecmilenio
  • tarea 8 estructura tecmilenio
  • Tarea 8 quimica 2 tecmilenio
  • Tarea 8 Quimica 2 Tecmilenio
  • Cultura De Calidad Tarea 8 Tecmilenio
  • Tarea 8 Historia de Mexico tecmilenio
  • tarea 8 cultura de calidad tecmilenio

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS