subject
Computers and Technology, 22.10.2020 16:01 julih74

A drug loses decayrate percent of its potency every month. Also, a drug is considered expired if it loses more than 50% potency. Your goal is to write a boolean function IsExpired(months, decayrate) that returns True if the drug has expired and False if it has not. Please note that use of while loops is not allowed in writing the solution to this problem. Example 1: IsExpired(10,10) should return True. Explanation: The drug loses 10% potency every month. After 1st month the potency is 90%, after 2nd month its 81%. In this way, after 7th month the potency is 47.83%. Example 2: IsExpired(15,4) should return False. Explanation: After 15th month the drug has 54.21% potency.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:00
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u.s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
Answers: 1
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
question
Computers and Technology, 24.06.2019 20:20
3. write assignment statements that perform the following operations with the variables a, b, and c: a. adds 2 to a and assigns the result to b b. multiplies b times 4 and assigns the result to a c. divides a by 3.14 and assigns the result to b
Answers: 2
You know the right answer?
A drug loses decayrate percent of its potency every month. Also, a drug is considered expired if it...
Questions
question
English, 27.05.2021 01:00
question
Mathematics, 27.05.2021 01:00
Questions on the website: 13722363