Write a javascript program that calculates the sales tax

Assignment Help JAVA Programming
Reference no: EM131752674

Assignment

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 https:// 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.

Reference no: EM131752674

Questions Cloud

Provide a critical analysis of your selected topic : Create a clearly stated thesis, and focus the entire paper around it. Provide specific examples to support this thesis.
Discuss the data provided in the sheet labeled cash flows : Using the data provided in the sheet labeled "Cash Flows" prepare
Prepare a consolidation workpaper at the date of acquisition : Alpha acquired 100% of Beta's common stock for $400,000. Prepare a consolidation workpaper at the date of acquisition based upon the following book values
Innovation and change are centripetal force in organizations : Innovation and change are centripetal forces in organizations. In the global marketplace if an organization is not innovative it frequently ceases to exist.
Write a javascript program that calculates the sales tax : 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 th
What characteristics do they have in common : Do you think the portrayal of scientists in the various forms of media influences how society views people in this profession? Why, or why not?
How do the products compare on various dimensions of quality : Analyze the offerings of two competing firms. How do the products compare on various dimensions of quality?
What is my current ratio : If my Current Assets total $100, my Long-term Debt is $300, my Equity is $250, and my Current Liabilities total $200, what is my Current Ratio?
Discuss somerset global supply chain business needs : Discuss Somerset’s global supply chain business needs. Discuss possible remedies for its supply chain problems.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd