Fakultas Ilmu Komputer UI

Commit 2df432c8 authored by Ahmad Dzikrul Fikri's avatar Ahmad Dzikrul Fikri
Browse files

Tugas Pemrograman 7 - Tahap 3 - 1806196806

parent e9869187
......@@ -7,7 +7,7 @@ def urut_harga_data(huruf):
for line in data:
nama, jumlah = line.split()
lower_nama = nama.lower()
if lower_nama.find(huruf) != -1:
if lower_nama.startswith(huruf) == True:
harga = 16000*int(jumlah)
diskon = 0.1*harga
tagihan = int(harga - diskon)
......
EIFLA 500 7200000
NAWE 499 7185600
LEAH 499 7185600
NAWE 499 7984000
LEAH 499 7984000
ELLIOT 498 7171200
EVA 497 7156800
LAUREN 497 7156800
LAUREN 497 7952000
HARRY 496 7936000
YPPOP 495 7920000
HENRY 494 7113600
ISABELLA 492 7084800
HENRY 494 7904000
ISABELLA 492 7872000
NOSAM 489 7824000
CHARLOTTE 487 7012800
CHARLOTTE 487 7792000
CAASI 485 7760000
SIENNA 485 6984000
SIENNA 485 7760000
YLLOH 481 7696000
BETHANY 480 6912000
BETHANY 480 7680000
AIRAM 478 7648000
MORGAN 478 7648000
LOUIS 477 7632000
YMA 477 7632000
EITAK 477 6868800
YELIAB 476 6854400
ISOBEL 476 6854400
YELIAB 476 7616000
ISOBEL 476 7616000
ADLITAM 474 7584000
YECAL 468 6739200
REBMA 466 6710400
ACCEBER 463 6667200
YECAL 468 7488000
REBMA 466 7456000
ACCEBER 463 7408000
NAIK 463 7408000
ALISHA 457 7312000
AMELIA 456 6566400
AMELIA 456 7296000
EILLOH 455 6552000
NAGOL 453 7248000
NATHAN 453 7248000
FREYA 451 6494400
FREYA 451 7216000
EISOR 450 6480000
YLIME 446 6422400
YELIR 445 6408000
YLIME 446 7136000
YELIR 445 7120000
YAJ 443 7088000
EOZ 442 6364800
HARRIET 437 6292800
HARRIET 437 6992000
YCUL 437 6992000
YLIL 436 6976000
HTEBAZILE 433 6235200
HTEBAZILE 433 6928000
EIMAJ 433 6235200
LUCAS 432 6912000
LOGAN 432 6912000
IMOGEN 428 6163200
IMOGEN 428 6848000
LIAM 428 6848000
COREY 428 6163200
AMME 426 6134400
OWEN 422 6076800
ALICE 419 6033600
BLAKE 418 6019200
COREY 428 6848000
AMME 426 6816000
OWEN 422 6752000
ALICE 419 6704000
BLAKE 418 6688000
NODNARB 415 6640000
LIAGIBA 412 6592000
EILRAHC 410 5904000
SACUL 410 6560000
NORAA 406 6496000
SEMAJ 405 5832000
SEMAJ 405 6480000
LIBBY 404 6464000
REECE 404 5817600
REECE 404 6464000
ZARA 401 6416000
MOHAMMAD 400 6400000
RUBY 396 6336000
BOCAJ 394 6304000
FINLEY 393 5659200
HARVEY 393 5659200
JAKE 392 5644800
FINLEY 393 6288000
HARVEY 393 6288000
JAKE 392 6272000
MUHAMMAD 392 6272000
POPPY 392 6272000
YBOT 392 6272000
MOLLY 390 6240000
RONNOC 390 6240000
BEN 388 5587200
TTELRACS 386 5558400
SIWEL 385 5544000
BEN 388 6208000
TTELRACS 386 6176000
SIWEL 385 6160000
NOSIDAM 384 6144000
WEHTTAM 383 5515200
WEHTTAM 383 6128000
SARAH 382 6112000
NOTHSA 381 6096000
AIVILO 377 6032000
ANNA 377 6032000
CAITLIN 376 6016000
REUBEN 376 5414400
REUBEN 376 6016000
YBUR 374 5984000
MARTHA 374 5984000
AYAM 373 5968000
JASMINE 371 5342400
JASMINE 371 5936000
KAZ 368 5888000
YALNIF 365 5840000
LUCA 360 5760000
SKYE 355 5112000
JOE 352 5068800
SKYE 355 5680000
JOE 352 5632000
DAVID 351 5616000
SEBASTIAN 349 5025600
NEBUER 345 4968000
SEBASTIAN 349 5584000
NEBUER 345 5520000
YLLIB 344 5504000
NAGEM 343 4939200
NAGEM 343 5488000
EILLE 341 4910400
AIGROEG 341 4910400
AIGROEG 341 5456000
HTIAF 340 5440000
DAMMAHOM 340 5440000
JACK 340 5440000
YSIAD 340 5440000
BRANDON 337 5392000
LILY 337 5392000
ISABEL 335 4824000
NYLEVE 334 4809600
ISABEL 335 5360000
NYLEVE 334 5344000
ECNEROLF 334 4809600
SAMOHT 333 5328000
CAMERON 333 4795200
NICOLE 329 4737600
NAES 324 4665600
CAMERON 333 5328000
NICOLE 329 5264000
NAES 324 5184000
EMILY 324 4665600
AIHPOS 321 5136000
JOHN 321 5136000
SOPHIE 320 4608000
ALLEBASI 320 4608000
YENTRUOC 318 4579200
SOPHIE 320 5120000
ALLEBASI 320 5120000
YENTRUOC 318 5088000
LILLY 316 5056000
JOEL 310 4464000
JOEL 310 4960000
TOBY 305 4880000
LEOJ 303 4363200
LEOJ 303 4848000
MADA 303 4848000
ALEX 302 4348800
ALEX 302 4832000
MULLAC 300 4800000
DAISY 299 4784000
YRRAH 298 4768000
SAM 298 4768000
DYLAN 298 4768000
ACUL 296 4736000
MILLIE 295 4248000
NEDYAJ 295 4248000
ALLE 295 4248000
HPESOJ 292 4204800
NIMAJNEB 291 4190400
LEBASI 288 4147200
MILLIE 295 4720000
NEDYAJ 295 4720000
ALLE 295 4720000
HPESOJ 292 4672000
NIMAJNEB 291 4656000
LEBASI 288 4608000
NAGROM 288 4608000
JACOB 285 4560000
RILEY 284 4089600
REBECCA 277 3988800
RILEY 284 4544000
REBECCA 277 4432000
EMILIA 277 3988800
GRACE 277 3988800
GRACE 277 4432000
EKALB 276 3974400
EYKS 275 3960000
ELIZABETH 273 3931200
RACSO 273 4368000
EKUL 273 3931200
NAITSABES 273 3931200
NAITSABES 273 4368000
LOLA 271 4336000
XAM 268 4288000
ELLIS 266 3830400
YBBIL 264 4224000
NIRE 263 3787200
NIRE 263 4208000
ESME 263 3787200
FAITH 262 4192000
YNAHTEB 262 3772800
NEB 261 3758400
BRADLEY 261 3758400
YNAHTEB 262 4192000
NEB 261 4176000
BRADLEY 261 4176000
LAYLA 261 4176000
LUKE 258 3715200
JAYDEN 256 3686400
LUKE 258 4128000
JAYDEN 256 4096000
EKAJ 256 3686400
YLLIT 253 4048000
ACSECNARF 253 3643200
SUMMER 252 3628800
NEDYAH 250 3600000
ACSECNARF 253 4048000
SUMMER 252 4032000
NEDYAH 250 4000000
CONNOR 248 3968000
PHOEBE 248 3571200
PHOEBE 248 3968000
NOSIRRAH 247 3952000
MAISIE 247 3556800
MAISIE 247 3952000
SYHR 247 3952000
OSCAR 245 3920000
MARIA 244 3904000
NAHTE 244 3513600
NAHTE 244 3904000
AARON 243 3888000
TILLY 241 3856000
NOEL 240 3456000
NOEL 240 3840000
EBEOHP 237 3412800
OLIVIA 235 3760000
ECILA 232 3340800
EIDDERF 231 3326400
AILUJ 228 3648000
EDWARD 227 3268800
DRAWDE 225 3240000
BENJAMIN 223 3211200
DRAWDE 225 3600000
BENJAMIN 223 3568000
WILLIAM 220 3520000
ROLYAT 219 3504000
LYDIA 218 3488000
ALEXANDRA 216 3110400
ACISSEJ 215 3096000
FRANCESCA 215 3096000
ROBERT 212 3052800
JESSICA 207 2980800
ALEXANDRA 216 3456000
ACISSEJ 215 3440000
FRANCESCA 215 3440000
ROBERT 212 3392000
JESSICA 207 3312000
EIHPOS 207 2980800
NIAMH 205 3280000
EGROEG 200 2880000
ZACHARY 194 3104000
ARAZ 193 3088000
ZOE 193 2779200
ZOE 193 3088000
EGIAP 191 2750400
HAYDEN 189 2721600
SILLE 187 2692800
ARIEK 178 2563200
YEROC 177 2548800
HAYDEN 189 3024000
SILLE 187 2992000
ARIEK 178 2848000
YEROC 177 2832000
BILLY 176 2816000
ECARG 174 2505600
NOSIDDAM 174 2784000
NAREIK 174 2505600
MICHAEL 172 2476800
NAREIK 174 2784000
MICHAEL 172 2752000
MAILLIW 171 2736000
JULIA 170 2720000
MAYA 169 2704000
HOLLY 168 2688000
IXEL 168 2419200
OEL 167 2404800
AMBER 165 2376000
IXEL 168 2688000
OEL 167 2672000
AMBER 165 2640000
ELYK 164 2361600
MATILDA 163 2608000
AHSILA 163 2608000
LEXIE 162 2332800
LEXIE 162 2592000
EMSE 160 2304000
XELA 160 2304000
XELA 160 2560000
TIA 157 2512000
JAY 155 2480000
ETHAN 155 2232000
EIBBA 152 2188800
ADAM 152 2432000
GRACIE 150 2160000
DANIEL 149 2145600
GRACIE 150 2400000
DANIEL 149 2384000
AIT 147 2352000
JAMES 147 2116800
JAMES 147 2352000
ELEANOR 142 2044800
TAYLOR 142 2272000
KAI 141 2256000
FREDDIE 139 2001600
FREDDIE 139 2224000
AHTRAM 139 2224000
EVIE 137 1972800
MOHAMMED 133 1915200
MOHAMMED 133 2128000
THOMAS 132 2112000
RYAN 125 2000000
COURTNEY 124 1785600
COURTNEY 124 1984000
EVE 123 1771200
TOILLE 122 1756800
TOILLE 122 1952000
AUHSOJ 120 1920000
LEBOSI 119 1713600
LEBOSI 119 1904000
ALSI 117 1872000
FLORENCE 116 1670400
FLORENCE 116 1856000
ALICIA 113 1808000
KIAN 110 1760000
NILTIAC 109 1744000
MAX 107 1712000
YRAHCAZ 107 1712000
NAVE 103 1483200
CHARLIE 101 1454400
NAVE 103 1648000
CHARLIE 101 1616000
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment