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, 21.06.2019 17:20
What do you need to know & understand about global expansion.
Answers: 2
question
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
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, 25.11.2020 21:30
question
Mathematics, 25.11.2020 21:30
question
English, 25.11.2020 21:30
Questions on the website: 13722360