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

  Code that deals with user inputs via mouse

data.txt is data file with text defining the background picture and the various data items.

  User enter a series of numbers

Design a java program with a loop that lets the user enter a series of numbers. The user should enter - 99 to signal the end of the series. After all the numbers have been enter been entered, the program should display the largest and smallest number..

  Write a program to implement a contact list

Write a program that uses one of the Map classes to implement a contact list. Write a program to store a list of print jobs in a FIFO queue.

  Determine the number of quarters

You have an amount of change (such as 41 cents or 72 cents) and you want to figure out how many quarters, dimes, nickels and pennies that is. Your change will always be an integer value between 0 and 99.

  Create a login form

In this week's lab, we will create a login form, validate a user based on their login name and password, and allow them to access the system or not

  What is wrong with the given snippet of code

What is wrong with the given snippet of code? Rewrite it so it produces the correct output - How many times might the following code print out grape?

  Design - uml diagrams and overall design

Develop a problem-based strategy for creating and applying programmed solutions using an object-oriented paradigm - Use an object-oriented development environment in the development, testing and debugging of an object-oriented application.

  Provide java code for a method

Provide Java code for a method that would perform functionality of your choice. Try to create functionality that is unique - something that you could use. Be sure to include an example call to your method and explain the code you developed.

  Implement a generic stack and queue classes

CMSC 350 Project - Implement a generic stack and queue classes (StackUMUC and QueueUMUC , named to avoid confusion with the classes already defined in the JDK)- Create a set of tests demonstrating that your classes work correctly.

  Create a java class namedtextprocessorgui

Create a Java class namedTextProcessorGUI. Provide a main() function that creates and displays an instance ofTextProcessorGUI. I recommend you write this class as a subclass ofJFrame.

  Implement your pseudocode into actual working java code

Write a pseudocode for method and Implement your pseudocode into actual working java code.

  Calculates and prints the number of students that failed

Calculates and prints the number of students that failed and calculateNumberPassed calculates and prints the number of students that passes

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