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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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