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

  Implement a thread for each creature representing a task

Implement a threads and a GUI interface using advanced Java Swing classes.

  What is an illustration of a hypothesis test please explain

what is an example of a hypothesis test? please describe the context of the problemissue that you encountered what the

  Algorithm design and development - the graduate designs and

algorithm design and development - the graduate designs and develops algorithms for problem solving and implements

  Guess the number game

The user interface is displayed and the user clicks the "Start Game" button to begin the game - Your application then gets a random number in the range 1-1000 inclusive

  Implement an intrusion detection system in java

You are to implement an intrusion detection system in java. Calculate a threshold for detecting an intrusion. The threshold is 2*(Sums of weights).

  The user enters an invalid value for hours

Write a program that prompts the user to enter time in 12-hour notation. The program then outputs the time in 24-hour notation. Your program must contain three exception classes: InvalidHrExcep, InvalidMinExcep, and InvalidSecExcep. If the user enter..

  Create an interface that includes a group box

Create an interface that includes a group box that contains 3 check box and 3 text box, the three text boxes should be invisible when the application starts

  Write a method called add uneven arrays

Write a method called addUnevenArrays that takes two arrays, a and b, and returns a new array, c, with alength that is the maximum of the lengths of a and b. Each c[i] is the sum of the corresponding elementsof a and b if both elements exist.

  Implementing a relatively simple text-compression scheme

You will be implementing a relatively simple text-compression scheme - It should run from the command line.

  Create a new json view

Add code to your controller to check which view to display.  For this assignment, there will be a URL parameter named "format".  When the value of the "format" parameter is "json" display the JSON view, otherwise display the regular HTML JSP view.

  Create a circle class

create acircle class, which has one field, the radius. the class should contains two constructors: a no-argument constructor that set the radius to zero, and a constructor that takes a parameter to set the radius.

  Implement a threads and a gui interface

Implement a threads and a GUI interface using advanced Java Swing classes - Implement a JTable to also show the contents of the data file. There are lots of options here for extending your program.

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