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:40
Consider the following generator matrix: g= (1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 1 1 0) find all the codewords generated by this generator matrix. determine the number of errors that this code will detect. determine the number of errors that this code will correct. prove that a linear code's minimum weight is equivalent to its minimum distance. that is, where c is a linear code, dist(c) = wh(c)
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
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
Mathematics, 14.02.2021 05:40
question
History, 14.02.2021 05:40
question
Mathematics, 14.02.2021 05:40
Questions on the website: 13722367