subject
Computers and Technology, 25.02.2020 18:03 hana560

Suppose you are purchasing something online on the Internet. At the website, you get a 10% discount if you are a member. Additionally, you are also getting a discount of 5% on the item because its President’s Day. Write a function that takes as input arguments the cost of the item that you are purchasing and a Boolean variable indicating whether you are a member (or not), applies the discounts appropriately, and returns the final discounted value of the item. (Note: The cost of the item need not be an integer.) In the program, get the cost of the item from the user in decimal (i. e., float) and the membership as a T or F response. Based on the membership response, set the membership Boolean variable to True or False. Then invoke (i. e., call) the function to get the final cost

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
You know the right answer?
Suppose you are purchasing something online on the Internet. At the website, you get a 10% discount...
Questions
question
Mathematics, 10.01.2020 21:31
question
Mathematics, 10.01.2020 21:31
question
English, 10.01.2020 21:31
Questions on the website: 13722363