Computers and Technology
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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:20, manny2085
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, magicalunicorns47
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
image
Computers and Technology, 23.06.2019 19:00, nayo2006
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
image
Computers and Technology, 24.06.2019 15:30, sonyfan
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
Answers: 1
Do you know the correct answer?
A drug loses decayrate percent of its potency every month. Also, a drug is considered expired if it...

Questions in other subjects:

Konu
Mathematics, 15.07.2020 04:01
Konu
Mathematics, 15.07.2020 04:01