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

  What makes each framework different from the others

Conduct research to locate information regarding the key components of each governance framework. Investigate the key components to determine what makes each framework different from the others.

  Consider a dedicated firewall device

Consider a dedicated firewall device. What is its major advantage when the target is throughput and security? Explain.

  What is project portfolio management

Discuss why many IT professionals may overlook project cost management and how this might affect the ability to complete projects within budget.

  Analyze the medical informatics case study

Analyze the Medical Informatics case study, which portrays a troubled information technology project, a project team experiencing conflict.

  Explain the reasons for disneys adoption of itil

Explain the reasons for Disney's adoption of ITIL. Examine how Disney implemented auditing and compliance in its enterprise architecture.

  Create query that will show members who have same address

Project Description: Matt Davis is a retired baseball player who runs the Baseball Academy, an indoor baseball facility for middle school, high school, and college players

  What are the latest changes in the iso 9000

What is the ISO and List six benefits of international standardization, What are the latest changes in the ISO 9000?

  Describe the data flow process for a mobile order

Recently, a major hot beverage retail competitor established an order entry system whereby customers can place orders on a mobile app in advance of arriving at the retail outlet. Describe the data flow process for a mobile order that will be picked..

  Why erp was a necessary information system solution

Analyze case study titled Vodafone: A Giant Global ERP Implementation. Why ERP was a necessary information system solution to address organization's issues;

  How information systems support business process

Describe the challenges that an organization will face when changing business processes and how information systems support business process

  Describe issues inherent in managing data

Data, information, and knowledge - What are some of the issues inherent in managing data? You must state two issues and provide examples of each.

  What function does the countermeasure serve

What domains do you work with or are familiar with?What countermeasures have you used (or heard of) to secure those domains?What function does the counterme

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