Write a javascript web application called mycalculator

Assignment Help Management Information Sys
Reference no: EM131221256

Question:

In this assignment, we will write a JavaScript web application called MyCalculator. All 3 files (the .js, .html and .css files should be in the MyCalculator folder and should be called MyCalculator.XXX).

The program should do the following:

- There should be one resultBox in the .html page and one runCalculator button. This should be clicked to run the program.

- Present a menu of 7 choices to the user, using a prompt:

1. Add

2. Subtract

3. Multiply

4. Divide

5. Exponent

6. Mean

7. Quit
- If the user selects anything other than 1-7, the program should print an error message and ask the user to select again. Use a for loop to check this.

- If the user selects 1, the program should ask the user to enter the first number and then the second, and then print out the result in the resultBox. Then it should display the prompt menu again.

- Similar behavior for choices 2,3 and 4: for subtract, subtract the second number from the first, for divide, divide the first number by the second.

- We should do isNAN checks for all numbers. Use a for loop to check that each input is a number.

- For choice 5, the program should ask for the base, and then the exponent, and then print out the answer, using the Math.pow() method or equivalent.

- For choice 6, the program should prompt the user to input a series of numbers. The series ends, when the user enters a "***". At this point, our program should print out the mean value, and then show the main menu prompt again.

- Upload the files to your web server, and email the Professor the URL by the due time.

Verified Expert

This assignment is about the javascript program that performs the following operation: 1. Add 2. Subtract 3. Multiply 4. Divide 5. Exponent 6. Mean 7. Quit

Reference no: EM131221256

Questions Cloud

Jeffrey utility depends on the amount of time spent : Suppose Jeffrey's utility depends on the amount of time spent watching You Tube videos (Y) and theamount of time playing video games (V), and his utility function is equal to
Equation for this constrained maximization problem : Luke only consumes strawberries (S) and turnips (T) each week with his $36 income. The price of strawberries is PS = $3/basket, while the price of turnips is PT = $1.50/turnip. Luke's preferences are given by the following utility function
Write an sql statement to create an sql view named popular : Run an SQL SELECT query in the Microsoft SQL Server Management Studio GUI tools to demonstrate that the view Popular Shows View was constructed correctly.
Draw the budget constraint where chocolate bars : Draw the budget constraint where chocolate bars are on the vertical axis and ice-cream cones are on the horizontal axis. Clearly indicate at what quantities will there be a kink in the budget constraint.
Write a javascript web application called mycalculator : MIS 3023 - Business Programming Concepts and the program should ask for the base, and then the exponent, and then print out the answer, using the Math.pow() method or equivalent.
Derive an equation for the budget constraint : Suppose that Tiffany has an income of $20 per week and she spends it on frozen pizza (P) and beer (B). The price of a bottle of beer (PB) is $1 and the price of frozen pizza (Pp) is $5 per pizza. (a) Derive an equation for the budget constraint.
Responsibility of working with your organization : You have been given the responsibility of working with your organization's CEO to do a competitive market analysis of the potential success of one of their existing products. Select your organization and a product produced by that organization from..
Which country has an absolute advantage in car production : 1. Which country has an absolute advantage in car production? Which country has an absolute advantage in food production? 2. For the American worker, what is their opportunity cost for producing food? What is their opportunity cost for producing ca..
Set the referential integrity properties to cascade deletion : Set the referential integrity properties to cascade deletions when a PICTURE is deleted. Cascade updates to PICTURE. Name.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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