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

  Design and implement a java program to determine the sum

Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the aver..

  Find the errors in the code

You may assume that the following statements precede those in the table below:

  Concepts of interfaces and inheritance

In this assignment we will work with the concepts of interfaces and inheritance. We will make use of a extends to create an inheritance hierarchy, and use implements to implement an interface that allows properties to be added to objects at run-ti..

  Multiple choice java programming questions

Determine which of the following may be a violation of information hiding if inserted for the comment above?

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  How are java source code files named

What is the purpose of the wait(), notify(), and notifyAll() methods? How are Java source code files named?

  Discussion htmlcssjavascript placementnbspplease respond to

discussion htmlcssjavascript placementnbspplease respond to the followingcompare and contrast the process of adding

  Write an enhanced for loop

Write an enhanced for loop that counts how many numbers in an ArrayList object named list are negative. Print the count after the loop terminates

  Create a graphical application stackdemogui

Create a graphical application StackDemoGUI that provides a button for push and pop from a stack, a text field to accept a string as input for push, and a text area to show the contents of the stack after each operation.

  Better with age

You and your roommates, all at least 21 years of age, have gotten hooked brewing your own beer from kits. You've made quite a few batches, each from a different mix,

  Implement a probability calculator for the standard normal

implement a probability calculator for the standard normal distribution using GUI.

  Design the appropriate accessor and mutator methods

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee 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