subject

Write function calls so that: A $70 item receives a 30% discount and the tax is 5% given variable: var price;
given function
function applyDiscount(cost, percentDiscount){
var temp = 100 - percentDiscount;
temp = temp/100;
cost = cost*temp;
return cost;
}

given function
function applyTax(cost, percentTaxed){
var temp = 100 + percentTaxed;
temp = temp/100;
cost = cost*temp;
return cost;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
question
Computers and Technology, 24.06.2019 16:30
Pressing the backspace key deletes the text to the of the insertion point. the left or the right?
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
You know the right answer?
Write function calls so that: A $70 item receives a 30% discount and the tax is 5% given variable:...
Questions
question
Mathematics, 18.03.2021 01:40
question
Mathematics, 18.03.2021 01:40
question
Geography, 18.03.2021 01:40
question
Health, 18.03.2021 01:40
Questions on the website: 13722367