MicroContributions - PowerPoint PPT Presentation

About This Presentation
Title:

MicroContributions

Description:

think of how you want the calculator to look - do we want modes? ... organize the buttons and text area to look like a calculator (probably in a table) ... – PowerPoint PPT presentation

Number of Views:64
Avg rating:3.0/5.0
Slides: 11
Provided by: Gre9189
Category:

less

Transcript and Presenter's Notes

Title: MicroContributions


1
MicroContributions
2
spec - an html/javascript calculator todo -
think of some todo items

3
spec - an html/javascript calculator todo -
think of some todo items - think of how you want
the calculator to look - do we want modes? -
think about how to implement that

4
spec - an html/javascript calculator todo -
think of some todo items - think of how you want
the calculator to look - do we want modes? -
think about how to implement that -organize the
buttons and text area to look like a calculator
(probably in a table) done - made some buttons
and a text area
col"20" 1 2/button 3 4 tton5 6 7on 8 9
0 - buttonx /
5
spec - an html/javascript calculator todo -
think of some todo items - think of how you want
the calculator to look -write some CSS - do we
want modes? - think about how to implement
that -organize the buttons and text area to look
like a calculator (probably in a table) done -
made some buttons and a text area
col"20" 1 2/button 3 4 tton5 6 7on 8 9
0 - buttonx /
6
spec - an html/javascript calculator todo -
think of some todo items - think of how you want
the calculator to look -write some CSS - do we
want modes? -define modes - think about how to
implement that -organize the buttons and text
area to look like a calculator (probably in a
table) done - made some buttons and a text area
col"20" 1 2/button 3 4 tton5 6 7on 8 9
0 - buttonx /
7
spec - an html/javascript calculator todo -
think of some todo items - think of how you want
the calculator to look -write some CSS - do we
want modes? -define modes - think about how to
implement that -organize the buttons and text
area to look like a calculator (probably in a
table) - improve the positioning of the
buttons done - made some buttons and a text
area
col"20"
1
2
3
4
5
6
7
8
9
0

-
x
/

8
spec - an html/javascript calculator todo -
think of some todo items make the button have
the effect do the calculation show the
result - think of how you want the calculator to
look -check the result is correct -write some
CSS to change the outlook -align the result to
the correct position - do we want
modes? -define modes - think about how to
implement that -organize the buttons and text
area to look like a calculator (probably in a
table) - improve the positioning of the
buttons done - made some buttons and a text
area
col"20"
1
2
3
4
5
6
7
8
9
0

-
x
/

9
spec - an html/javascript calculator todo -
need to decide on full set of operations (right
now only basic ops) - need to decide reverse
polish notation vs. standard notation - make the
buttons have some effect - do the calculation -
show the result - decide on look feel
(currently minimal) - not sure what the below
items are -check the result is correct
-write some CSS to change the outlook -align
the result to the correct position - do we want
modes? no -organize the buttons and text area to
look like a calculator (probably in a table) -
improve the positioning of the buttons done -
made some buttons and a text area
// TODO state of
calculator // e.g. store previous number when
operation is clicked // TODO functions to
implement calculator function handle(something)
alert(something) // TODO handle the
click area rows"1" col"20"
1
2
3
4
5
6
7
8
9
0

-
x
/ y
10
Michael spec - an html/javascript
calculator todo - need to decide on full set of
operations (right now only basic ops) - need to
decide reverse polish notation vs. standard
notation - make the buttons have some effect - do
the calculation - show the result - decide on
look feel (currently minimal) - pow function to
deal with negative powers - not sure what the
below items are -check the result is correct
-write some CSS to change the outlook -align
the result to the correct position - do we want
modes? no But lots of calculators have temporary
modes, e.g. a 2nd or 3rd function button that
modulates the characters. Maybe we should follow
the typical approach? -organize the buttons and
text area to look like a calculator (probably in
a table) - improve the positioning of the
buttons done - made some buttons and a text
area
// TODO state of
calculator // e.g. store previous number when
operation is clicked // TODO functions to
implement calculator function handle(something)
alert(something) // TODO handle the
click function add(x, y) return x
y function subtract(x, y) return x -
y function pow(x, powNum) if (powNum
0) return 1 else return x (pow(x,
powNum-1)) idcalculator col"20" onclick"handle(1)"1
2
3
4
5
6
7
8
9
0

-
x
/ y
Write a Comment
User Comments (0)
About PowerShow.com