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, 22.06.2019 08:50
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
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, 21.03.2020 01:37
question
Mathematics, 21.03.2020 01:37
question
Spanish, 21.03.2020 01:37
question
Mathematics, 21.03.2020 01:37
question
Mathematics, 21.03.2020 01:38
question
Mathematics, 21.03.2020 01:38
Questions on the website: 13722361