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

  Material planning push pull systemi have the following task

material planning push pull systemi have the following task and i need some help getting started write a 2 page paper

  How big are the transistors in the nand-based flash

Read the ComputerWorld article " Micron shrinks NAND 28% in upcoming flash drives" (http://www.computerworld.com/article/2931557/data-storage-solutions/micron-shrinks-nand-28-in-upcoming-flash-drives.html) and answer the following questions: How b..

  Service request for riordan manufacturingthis document

service request for riordan manufacturingthis document needs to be 4 to 6 pages in length and it needs to discuss the

  Show how a software framework facilitates reuse

Software reuse - show how a software framework facilitates reuse

  Carrefour''s business model vs. other models

Carrefour's Business Model vs. Other Models - They operate as mini-markets, automotive centers, supermarkets, and warehouse stores.

  Outsourcing and offshoring - viable business strategies

Outsourcing and Offshoring and solution discusses management's role in risk management with regards to outsourcing. The cultural, ethical, and mitigating issues are thoroughly discussed.

  Discuss the is system

Discuss the IS system that you would recommend for management to use to obtain this information for each scorecard component

  How can ehr systems reduce cost and increase quality of care

How can EHR systems reduce cost and increase quality of care and Why has EHR adoption been so slow? Why did the early systems fail

  Different sources can be usefully aggregated

What are the different ways in which data from different sources can be usefully aggregated?

  How would you evaluate the effectiveness of your activities

What Sector-Specific Agency would be responsible for providing institutional knowledge / and specialized expertise for your CIKR? Conduct a risk assessment by identifying the threat (natural and manmade), vulnerabilities and consequence to your CIK..

  Information systems cannot solve every business challenge

Show the Information systems cannot solve every business challenge.

  How do you plan to recover loss of current ad ds

How do you plan to recover from these types of loss of current AD DS and other critical information. What utilities might you investigate to help accomplish your plan.

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