Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Management Information System Expert

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.

Management Information System, Management Studies

  • Category:- Management Information System
  • Reference No.:- M91977196
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Management Information System

In a three-page well-written page answer the following

In a three-page, well-written page answer the following question: You all work in or know of people who work in enterprise IT environments Maintaining the enterprise security posture, legal risk, and security is constant ...

Discussionnbsp 300 words with 2 referencesyou have been

Discussion  : 300 Words with 2 references You have been working for four years in a bank branch located in the front section of a large grocery store. For the last two years, the branch has been underperforming and a poo ...

Case study technology amp product review for endpoint

Case Study : Technology & Product Review for Endpoint Protection Solutions Case Scenario: Sifers-Grayson(the "client") hasrequested that your company research and recommend an Endpoint Protection Platform, which will pro ...

Assignment capabilities proposal you are a 10 million

Assignment : Capabilities Proposal You are a $10 million consulting company responding to a Capabilities Proposal for a prospective client. The client seeks an analysis of its existing network in anticipation of a large ...

Team leadershipmanagement stylepart 1 according to the

Team Leadership/Management Style Part 1: According to the Sarin and O'Connor (2009) article, certain style and goal structures of team leaders have a strong influence on internal team dynamics. Based on your research wit ...

Answer the following question 1describe why projects need

Answer the following Question : 1. Describe why projects need to be planned and typical planning problems. 2. Discuss Schedule planning in detail 3. Why is Estimating difficult? What are good estimating practices? 4. Dis ...

Choose your roadmap to certification part 2 federal

Choose Your Roadmap to Certification Part 2: Federal Information Security Modernization Act (FISMA) Compliance In this assignment, students will review the federal work sector requirements and executives/organizations pr ...

Question suppose we have the following measurement

Question : Suppose we have the following measurement: Frequency of floating point(FP) operations is 25%, average CPI of FP operations is equal to 4.0. Average CPI of other instructions is equal to 1.33. Calculate the ove ...

Linux is the best-known and most-utilized open source

Linux is the best-known and most-utilized open source operating framework. As an operating framework, Linux is programming that sits underneath the greater part of the other programming on a PC, getting demands from thos ...

Suppose we have the following context-free grammar which

Suppose we have the following context-free grammar which accepts a list of variable initializations. Goal ::= single | Goal single single ::= VAR "=" exp ";" exp ::= VAR | INT | exp + exp Here each V AR terminal can be m ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As