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

  What is resource monitoring in windows server 2012

What is Resource Monitoring in Windows Server 2012

  Visits the federal trade commission''s

Focus on Technology - Phishing scams also victimize businesses. Visits the Federal Trade Commission's Website to learn how businesses can deal with this problem and discuss recommendations for marketers who face this threat.

  Intellectual capital - undervalued or taken for granted

Intellectual Capital - Undervalued or taken for Granted and What would you do to increase your organization's intellectual capital?

  Change in the traditional accounting information system

Describe the need for change in the traditional accounting information system architecture using examples that you have encountered through your work experience.

  Supply chain management question

Supply Chain Management (SCM) has been a popular buzzword since the mid 1990s, and has had many variations of definition by many experts.

  Swot analysis of a large technology company

Look at your organization (or one similar to it) and perform a SWOT analysis. For any reason you cannot use your organization, do a SWOT analysis of a large technology company such as Google, Microsoft, Oracle, Cisco and Apple. C

  Discuss challenge that network forensics investigations pose

Provide a statement of clarification or a point of view with the rationale. Draw comparisons between the responses to the challenges you provided and the responses to the challenges submitted by your peers.

  Accounting information systems explained in this solution1

accounting information systems explained in this solution1. how can ais reports be used to provide strategic

  Show where you believe both small and large companies

show where you believe both small and large companies havdiscuss where you believe both small and large companies have

  How the submission engine plan will handle submissions

Explain how the submission engine plan will handle submissions in other languages, including Portuguese and Mandarin. Explain how you will use technologies to help alleviate the concerns that the content is biased toward technology professionals and..

  Show the change management and technology demands

I would like to know how large firms and short firms utilize change management concepts to meet growing technology demands.

  Deviational analysis and anomaly detection

data mining, including association rule mining, classification, cluster analysis, and neural networks; deviational analysis and anomaly detection; geospatial and temporal analysis;

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