Find the errors in the javascript code

Assignment Help JAVA Programming
Reference no: EM13940155

I get this error when running the Java Script above: JS Error: TypeError: Object #<Object> has no method 'error'
var item1;
var item2;
var item3;
var item4;
var item5;
var subTtl
var tax;
var total;
// get the input values
item1 = Number(prompt("Enter item1: "));
item2 = Number(prompt("Enter item2: "));
item3 = Number(prompt("Enter item3: "));
item4 = Number(prompt("Enter item4: "));
item5 = Number(prompt("Enter item5: "));
// compute
subTtl = item1 + item2 + item3 + item4 + item5
tax = .06 * subTtl
total = tax + subTtl
// display the subTtl, tax, total
println("subTtl is " + item1 + item2 + item3 + item4 + item5 ".);
println("tax is " .06 * subTtl ".);
println("total is " + total ".);

Reference no: EM13940155

Questions Cloud

What is the expected rate of return on a stock with a beta : The risk-free rate of return is 5 percent and the market risk premium is 9 percent. What is the expected rate of return on a stock with a beta of 1.28?
What type of organizational arrangement : What type of organizational arrangement(s) do you see the two firms using in coordinating their worldwide operations?
Considering investing in a project with the cash flows : Suppose your firm is considering investing in a project with the cash flows shown below, that the required rate of return on projects of this risk class is 12 percent, and that the maximum allowable payback and discounted payback statistic for the pr..
Prepare paper summarizes how juvenile justice system operate : Prepare a paper that summarizes how the juvenile justice system operates. Support your viewpoint with local data. Be sure to include the following:- The original reason for the creation of a juvenile justice system.
Find the errors in the javascript code : I get this error when running the Java Script above: JS Error: TypeError: Object # has no method 'error'
What is the depreciation tax shield for this project in year : Your firm needs a machine which costs $250,000, and requires $40,000 in maintenance for each year of its 3 year life. After 3 years, this machine will be replaced. The machine falls into the MACRS 3-year class life category. Assume a tax rate of 35% ..
How should the firm determine its cost of equity : High Adventure is considering a new project that is similar in risk to the firm's current operations. The firm maintains a debt-equity ratio of .55 and retains all profits to fund the firm's rapid growth. How should the firm determine its cost of equ..
How much will the cost of equity increase : Tidewater Fishing has a current beta of 1.08. The market risk premium is 7.9 percent and the risk-free rate of return is 3.2 percent. By how much will the cost of equity increase if the company expands its operations such that the company beta rises ..
Explain the basic deontological aspects of informational : Explain the utilitarian aspects of informational privacy for employeesExplain the basic deontological aspects of informational privacy for employers

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