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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:20, alcantar28eduin
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
image
Computers and Technology, 23.06.2019 03:30, 890777
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, kayelynn003
How many points do i need before i can send a chat
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 in other subjects:

Konu
Mathematics, 11.12.2020 05:30