Java script (cis 101) | Computer Science homework help

 Write a JavaScript program that calculates the sales tax and total price of an item. Assume a sales tax rate of 8%, which means you will multiply the cost of the item by .08 in order tocalculate the tax amount. Use prompt and parseFloat to ask the user to input the item’s cost and convert it to a numeric format. Declare a variable salesTax and use the formula above to calculate the sales tax amount. Declare a variable totalCost, add the item’s cost plus the sales tax amount, and store it in totalCost. Output the Item cost, tax amount, and total cost on separate lines in the form of a receipt. Use document.write to display your output.Note:  This assignment requires you to use document.write to display the output. Do not use console.log!!! If the tutoring center tells you to use console.log, you have to refuse it. You need to show you know how to use document.write.  You will lose points for using console.log. I didn’t teach console.log and you should not use it.  If your excuse is that tutoring center told you to use console.log, you will lose points for not using document.write.  If the tutor says “it is ok to submit it” you will still lose points. The tutoring center is the help you meet the requirements for the homework, not creating new requirements.

Personalize the page with your photo on the top.

FTP/Publish the file to the webpage.pace.edu server and submit the link on Blackboard.

If you don’t FTP/Publish you will get a zero.

If you did FTP/Published and you don’t submit the http:// link to your assignment, you will get a zero also. (Because I won’t know if you published it or not and I need a direct link to your assignment.) 

Rules are the same as HTML assignments.

Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!
%d bloggers like this: