Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Case uitwerking

Algorithm and programming exercise

Beoordeling
-
Verkocht
-
Pagina's
18
Cijfer
A
Geüpload op
23-02-2023
Geschreven in
2021/2022

its alpro exercise with answer on it (python). hope it will help you guys

Instelling
Vak

Voorbeeld van de inhoud

1. Imagine a ridesharing application that helps its drivers to find customers and rewards
them based on their service.
What are the variables involved to calculate the total reward (earning) that will be
received by the driver of this ridesharing application from one transaction? (list out all
possible variables and the data type for each variable)
Jawab :
jarak integer
kenyamanan integer
reward integer
totalReward integer
2. Imagine there is an application that tracks and calculates the monthly expenses of a
university student.
What are the variables needed to create that application? (list out all possible
variables and the data type for each variable)
Jawab :
pendapataninteger
pengeluaran integer
barang string
hargaBarang integer
totalPengeluaraninteger
3. In order to ascend a skyscraper and see the city view from a height, each visitor is
required to purchase an entrance ticket. The price of this entrance ticket is vary based
on several conditions as follow:
If the visitor is a student, then the visitor will get a 20% discount from the total price
of an entrance ticket.
If the visitor is going to ascend the skyscraper on a weekend or a holiday, then the
ticket price is 20% more expensive than the regular one.
What are the variables needed to create a program that could calculate the total ticket
price that must be paid by a visitor of this skyscraper? (list out all possible variables
and the data type for each variable)
Jawab :
hargaTiket  integer
jumlahTiket integer

, tipeCustomerstring
discount integer
waktuPergi string


4. Provided below are user input variables:
a. QTS (int)
b. midTerm (int)
c. QAS (int)
d. finalTerm (int)
Create an application to calculate the Final Score.
nts = 35% QTS + 65% midTerm
nas = 35% QAS + 65% finalTerm
finalScore = 40% nts + 60% nas




5. Provided below are user input variables:

, price (int)
payment (int)
Create an application to calculate the Change Money.
changeMoney = payment – price




6. Provided below are user input variables:
totalItem (int)
price (int)
Create an application to calculate the Total Payment.
totalPayment = price * totalItem

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
23 februari 2023
Aantal pagina's
18
Geschreven in
2021/2022
Type
Case uitwerking
Docent(en)
Ms
Cijfer
A

Onderwerpen

$8.31
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
celinlevina1303

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
celinlevina1303 universitas surabaya
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
16
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen