ETH Zuerich - Startseite
Professur für CAAD

 


caad d-arch


Caad Teaching
 

 
Bachelor of Architecture: CAAD II ss07

 
Master of Advanced Studies
in Architecture, CAAD


 
DWF-Processing
Programmieren statt Zeichnen


 
Graustufen - Ein Atlas
Schweizer Wohngebäude als XML Daten


 
DWF- Denken in Systemen:
In Collaboration with the Technical University Vienna


 
Seminarwoche:
BlowUp


 
Archiv

 
Caad Projects
 

 
Theory
 
Design
 
Building
 
Practice

 
Related pages
 

 
Swiss Federal Institute of Technology Zurich
 
Institute of Building Technology
 
Faculty of Architecture

 
Other pages

 










hbt d-arch

MAS ETH ARCH/CAAD - 2005/06 - STUDENT PAGES
Master of Advanced Studies in Architecture, Specialization in Computer Aided Architectural Design | 065-0005/6
Supervision: Prof. Dr. Ludger Hovestadt, Philipp Schaerer
Chair of CAAD, ETH Zurich





~Assignment 04-2 configurator
 



Module 04.1 Calculator
Mini Assignment1. click run, on press c, begin

ccalculator.jpg


btn_c.onRelease = function()
{ 
   inputcal = "";
}

btn_1.onRelease = function()
{ 
   inputcal = inputcal + "1";
}

btn_plus.onRelease = function()
{
    x = inputcal;
   inputcal = ""; 
   operation = "+";
}

btn_result.onRelease = function() {
    y = inputcal;
   if (operation == "+") {
      total = Number((x))+Number((y));
   }
   if (operation == "-") {
      total = (x)-(y);
   }
   if (operation == "*") {
      total = (x)*(y);
   }
   if (operation == "/") {
      total = (x)/(y);
   }
   y = "";
   inputcal = total;
}


-- NDSClaudiaFuhr - 23 Feb 2006

Revision r1.3 - 28 Mar 2006 - 22:04 - NDSClaudiaFuhr
Parents: WebHome > NDSClaudiaFuhr
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

This website has been archived and is no longer maintained.