Computer Science, asked by Anonymous, 6 months ago

Hello strangers!
↑Help me now :)
-------------------------------------
plagiarism and spamming is not allowed.(◠ᴥ◕ʋ)
best of luck!:D​

Attachments:

Answers

Answered by valeriy69
4

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def calc_net_amount(name, amount, device_type):

amount = float(amount)

if amount <= 25000:

if device_type == "L":

return amount

if device_type == "D":

return amount - (amount * .05)

if 25001 <= amount <= 50000:

if device_type == "L":

return amount - (amount * .05)

if device_type == "D":

return amount - (amount * .075)

if 50001 <= amount <= 100000:

if device_type == "L":

return amount - (amount * .075)

if device_type == "D":

return amount - (amount * .1)

if device_type == "L":

return amount - (amount * .1)

if device_type == "D":

return amount - (amount * .15)

name, amount, device_type = input("enter name, amount & device: ").split()

print(f"{name}: {calc_net_amount(name, amount, device_type)}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by Anonymous
15

Explanation:

this is answer of your question

Attachments:
Similar questions