Write a script that asks the user to enter two numbers

Assignment Help Management Information Sys
Reference no: EM132054339

Chapter 6:

Exercises 6.16 and 6.18

Chapter 7:

Exercises 7.12 and 7.13

6.16 Write a script that asks the user to enter two numbers, obtains the two numbers from the user and outputs text that displays the sum, product, difference and quotient of the two numbers. Use the techniques shown in Fig. 6.7.

6.18 Write a script that takes three integers from the user and displays the sum, average, product, smallest and largest of the numbers in an alert dialog.

7.12 Develop a script that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:

a) Account number

b) Balance at the beginning of the month

c) Total of all items charged by this customer this month

d) Total of all credits applied to this customer's account this month

e) Allowed credit limit

The script should input each of these facts from a prompt dialog as an integer, calculate the new balance (= beginning balance + charges - credits), display the new balance and determine whether the new balance exceeds the customer's credit limit. For customers whose credit limit is exceeded, the script should output HTML5 text that displays the message "Credit limit exceeded.

7.13 A large company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9 percent of their gross sales for that week. For example, a salesperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of the items sold by each salesperson. The values of these items are as follows:

Item Value

1 239.99

2 129.75

3 99.95

4 350.89

Develop a script that inputs one salesperson's items sold for last week, calculates the salesperson's earnings and outputs HTML5 text that displays the salesperson's earnings.

Reference no: EM132054339

Questions Cloud

Strategies for criminal justice professionals : ?Describe crisis intervention strategies for criminal justice professionals responding to critical incidents and inter-agency coordination initiatives
How much is the total manufacturing cost per unit : Total materials costs equal $60,000. Equivalent units for materials are 12,000. How much is the total manufacturing cost per unit
Compare the two categories of algorithms : Compare the two (2) categories of algorithms, and determine the major advantages and disadvantages of each.
Problem with using a sample of all college students : What is the problem with using a sample of all college students as participants in a study?
Write a script that asks the user to enter two numbers : Write a script that takes three integers from the user and displays the sum, average, product, smallest and largest of the numbers in an alert dialog.
Example of a study that uses an independent t-test : What is your example of a study that uses an independent t-Test?
How does self-efficacy affect our behavior : How does self-efficacy affect our behavior? How might it affect a person's decision as to whether or not to attend college?
Approximate a normal curve with a mean : Suppose that the burning times of electric light bulbs approximate a normal curve with a mean of 1200 hours and a standard deviation of 120 hours.
The intention of capturing and prosecuting the terrorist : Tthe government has every intention of capturing and prosecuting the terrorist once his hostages are released?

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