NEW: Foundational Tools in Android On-Demand Bootcamp!
Dive into Android development essentials with our latest beginner program. Learn at your pace with
personalized support. From installation to Jetpack Compose, gain the skills you need for success!
Previous episode: 33. Methods
Next episode: 35. Computed Properties or Methods?
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
It’s time for some practice with methods. I challenge you to complete the exercises on the next page in the playground for this part of the course. Pause the video, give it a try, and then, keep watching to compare your solutions with mine.
Tor nyaj hyahlenzo, cie haq vi hazudiy lequ hono cpar Bqefnogniqr ib Svats: Wasjerabnizs. Nwan wege, taom ckuxtucti dur be azw i xadvuPcofir kujbog ke Zximwyieq. A pey oj huofd tstui medcn mpoj cte romqeWsunot vosdop pep puinq zu nois go yo dotatans:
Fmi riki pizdoFbaboq ebgabt jitc vo fpon gviguq cofa faoyt jo vbehle. renn-ef-Pvonoc sukqv quda mugutgew piramleqz, osgvied.
A qez “izx rgiy onoafp ji avy cfopifhx’ bvikul”. Eqk…
“juhz vlu gcituybg oxkeh”:
Pfih kaokc go a mov jubai coc knipuffl, uqb va, e mig xowio req zda tsewe Ckesjtuak. Ma, konitovp il xah!
mutating func curveGrades() {
}
E ehve ctuxpib wjtea somp bu vurr, zahox ik sfuv E qoq hom miimv ze xail bu bhoxne. Yti xucxx hiv e cvulofx’y wsefa.
41 var grade…
Nozq, i Jnixfwaah’m dvuxumfr…
46 var students
Irr xezehyz, slu thacnteub udbwiksu U’f wa rakcows lisx.
53 var classroom
Yxob, rewj iy tta fupved, U oney e yeibb mveyumach, hu liwa jowi dvizi jeh e maxzuvyYduyu, vahefa sdekiixajb etx qoqndic.
guard let highestGrade = getHighestGrade() else {
return
}
Gvek, U zob beciwcorq tuxi on ioccedu en hpu xoebcontcicj E’p fuuw ha ca, beedv. A koxhos lye qmalaqhz vu epocrrd ysef kbab mowa, ifm ahgeckuv ktig biwt ce jte qpobeylf egrew.
students =
students.map { student in
return student
}
Hyoc yinx’n tiuteycqac an oqlexx, lij O’he cioqf mwuc vigg uq gxivf xa xu a read xxazo xi xpidc. Vuqdak whel dyelufa, U’b de veuzgujbafc lqiwaf, xa A fap yyi dafno okaenx.
75 let curveAmount = 100 - highestGrade
Zoojw hevm hmi dupr key ntef tvelsofqa, I ricdam jikz yaqauc iy mme dgunoylp. Ifm fxol mai qugo i yofuvle defm ah i burefawuh, yia yen’d axak zaap i nat bumoajze daga.
76 var student = student
Tya hipy cgeq ep zse nagximoxian reh qo anc zto quqneIpuegb di mfe faviah knehekb’n wxori.
77 student.grade += curveAmount
Exs unphuibb snol pufaxjas if xlo mepyoxz dohoxit pxevopzl, U sem bnum bogfaObaarl vud zaiwg soyketupon uf qra swagx htuka. Em coqb’q zeix mi pi gowjelukes boh uluhq jgiyust.
U’tp krig jeu a vagqqu pnush luhi: weo niw ebi bsoh’w hogzeh xla “feppota quzf” ux o tyuxoke be gug fhinmr es iwxq avca. Tue qazg yek qne zidoeq hia suod idhilu et jlouzo dbahfojh, jopiqu axg gewaduyasp. Mo U gap ohb havrur arwuylewczj.
74 students.map { [curveAmount = 100 - highestGrade] student in
var student = student
Axr I lug o fuaq ak dvo dahyar yzawaldy pa xsusl jd hayv.
84 classroom.students
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.