Top Banner
Thursday Sept . 14 Lecture 3
10

Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

Jun 27, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

Thursday Sept .

14

Lecture 3

Page 2: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

offiuehaurs

13:30 - 15:20

M. Tus Th

.

Page 3: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

Numherdir=Jaa1-71117-2

If both the and 1-72are integers s the result .

is quotient .

Otherwises

result With precision .

Page 4: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

pnntlslz ) .@prntCE1z)4.0 (2+3)*4print (912) 4

seen :

print (9/2.0) 4.5 9.012- =4iE

Tnt i. 9 ;

aes.tt#foEYnEEdEEBaaoIfs

�2� print

#doublet#

)

Page 5: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

2/3 0

2013double)Cyg )

FaeI / J quotient X

I. # (double ) Ily ✓

double)⇒ ly ✓

Page 6: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.
Page 7: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

print ( CU .

radius ) 100 0 tntdl -

. CU

.ge#ahispratIn(dl

) ; 20

-

BWpmtlnccu . gettin ) )bo

go# 2

[email protected],)µno so * 2*3.t¥FF#ea-

di :at:

Page 8: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

of,o€t{;

.io#getAreaCradtusI*gnd#Faye t aamrsupplier

supplier will3 EYogtdgee¥

Page 9: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

class Myott {

stage.

.EdmY*t§cats a. 43 7

class Myutetpp {

,

"NH.m(h9g€jk,

Page 10: Sept 14 Thursday - eecs.yorku.cajackie/teaching/lectures/2017/F... · Numherdir=Jaa 1-71117-2 If both the and 1-72 are integers s the result is quotient Otherwise s result With precision.

Gunter :

0 c- value <3 Reg .

wedTnwenentc ) {Tread : When should we throw a

Illegal Argument Exception ?value + t 5 3 3

]D value > HIGX]

Tnapteoprfatfalnfffx