Solve the javascript program

Assignment Help Computer Engineering
Reference no: EM1338294

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: EM1338294

Questions Cloud

Explain financial forecasting : Explain Financial Forecasting and Financial forecasting is important because it adds discipline to the way an entrepreneur thinks about the venture.
Strategic control from operating control : Distinguish strategic control from operating control.
Each demand curve must eventually hit the quantity : Each demand curve must eventually hit the quantity axis because with limited incomes there is always a price so high that there is no demand for the good.
Importance of artistic and intellectual activities : What is the importance of artistic and intellectual activities in a civilization?
Solve the javascript program : solve the javascript program.
Factors to determine whether a project-s beta higher-lower : What factors determine whether a project's beta will be higher or lower when calculated against a domestic stock index versus a world stock index?
Explain why do we have such extreme diversity : Explain why do we have such extreme diversity in pay in the US-port stars, actors, others making very high salaries while others make much less.
Factors explaining end of roman empire : What did the Republic's government structure contribute to later nations? What were the benefits of the Republican form of government?
Describe the concept of economics of scale : Describe the concept of economics of scale and how long run costs curves shape the economic structure of industries.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Make a table in microsoft word

build a table in Microsoft Word or Excel that lists the strengths and challenges of each of the following four system development life cycles presented in the text.

  Find out a website with obvious usability issues

define addressing why you think the site you selected is usable or not. Be sure to include the URL of the website you are referring to.

  Developing uml one state diagram

How the system responds to the external and/or internal events by developing a UML ONE State Diagram.

  How inheritance improve a programmer''s productivity

define the difference between robustness and reliability and how design affects these characteristics.

  Intermediate programming

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  Cross-validation and percentage split

Comparing the accuracies received utilizing the three "test options": "Utilize the training set", "cross-validation" and "percentage split".

  Calculate and show the mortgage payment amount

Write down the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. Allow th..

  Analyzing the database schema

OrderLine (OrderNum, PartNum, NumOrdered, QuotedPrice), Part (PartNum, Description, OnHand, Class, Warehouse, Price), On the basis of code above, list the number and name of all the customers.

  Wordpad application

Whenever you select the print from WordPad application. Which printer among the three starts to print? Why? Explain is it possible to state which printer to print from the WordPad or any other application? Explain why?

  Describe the development of network architectures

explain the development of network architectures and its subsequent consolidation over past 20 years. Include topologies and the TCP/IP, Internetwork Packet Exchange/Sequence Packet Exchange (IPX/SPX), Network Basic Input Output System (NetBIOS), ..

  What are the kinds of information systems

What are the kinds of information systems

  Describe the term tco

Describe the term TCO

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