Questions
Your company owns a bus to transport workers to field work. The brakes fail on a...

Your company owns a bus to transport workers to field work. The brakes fail on a journey and the bus runs into a shop front injuring two of your employees travelling on the bus as well as a customer in the shop.

a) What are your company's potential direct and indirect losses from the incident?

b)Which of the potential losses are related to ergonomics? How can your prevent them?

In: Economics

Using JavaScript You must submit a file called, called pass.js pass.js: Validator of passwords Your task...

Using JavaScript

You must submit a file called, called pass.js


pass.js: Validator of passwords

Your task this week will be to program a valid password validator.

A password is safe only if it satisfies the following constraints:

- It has from 5 to 10 characters (inclusive)
- It contains at least one lowercase letter, at least one capital letter and at least one number
- The first character is different from the last

Once the password is entered and validated, the user is asked to copy it again to validate.

Course of the program

More precisely :

1. Ask the user to enter a password with:

      prompt ("Please choose a password");

2. Check if the password matches the requirements

   2a. If the password is invalid, display "Invalid password" and end the program (the rest of the program runs only if this step was done correctly)

   2b. If the password is correct, go to step 3

3. Ask the user to enter the password again with:

      prompt ("Please enter the password a second time to confirm");

4. Check if both passwords are the same

   4a. If the passwords do not match, show "You did not enter the same password twice" and ask to start again
   4b. If the two entered passwords match, go to step 5

5. Once the password is valid and entered twice correctly, display "Password saved!"

Here is an example of the execution of the program :

Please choose a password
> the user enters "abc"
Invalid password

Another example :


Please choose a password
> the user enters "l33th4xx0r"
Please enter the password a second time to confirm
> the user enters "abc"
You have not entered the same password twice
Please enter the password a second time to confirm

> the user enters "l33th4xx0r"
Password saved!

Your program must be complete, with comments that
indicate the name of the file, the author (your name), a brief
description of the usefulness of the program. There must also be
comments that explain what each variable corresponds to,
and the operation of the program. Use statements of
appropriate loop, correct indentation, and block statements
in the body of if and loops. Your program should avoid
redundant and repetitive calculations.

In: Computer Science

For a closed economy – i.e. an economy in which there are no international transactions –...

For a closed economy – i.e. an economy in which there are no international transactions – GDP is $12 trillion, consumption is $7 trillion, taxes are $3 trillion, and the government runs a deficit of $1 trillion. (Assume transfer payments are zero.)

a) It follows that private saving is ________.

b) National saving is __________.

In: Economics

Design a circuit that takes two strings of binary digits and outputs 1 (True) if the...

Design a circuit that takes two strings of binary digits and outputs 1 (True) if the strings “partially” match, and 0 otherwise. To keep this manageable assume the two strings are three bits long, that is a1a2a3 and b1b2b3 where each ai or bi is a one or a zero. The strings are a perfect match if for all i, ai = bi;. The strings are a partial match if at most one i, ai is not equal to bi. A perfect match can be considered a partial match.

In: Electrical Engineering

TotsPoses, Inc., a profit-maximizing business, is the only photography business in town that specializes in portraits...

TotsPoses, Inc., a profit-maximizing business, is the only photography business in town that specializes in portraits of small children. George, who owns and runs TotsPoses, expects to encounter an average of eight customers per day, each with a reservation price shown in the following table. Assume George has no fixed costs, and his cost of producing each portrait is $25.

Customer Reservation price ($ per photo)
1 50
2 46
3 42
4 38
5 34
6 30
7 26
8 22

a. Suppose George is permitted to charge two prices. He knows that customers with a reservation price above $30 never bother with coupons, whereas those with a reservation price of $30 or less always use them. At what level should George set the list price of a portrait? At what level should he set the discount price? How many photo portraits will he sell at each price?

List price of a portrait: $__   

Number of portraits to be sold at the list price: __portraits

Discount price of a portrait: $__   

Number of portraits to be sold at the discounted price: __portraits

b. In this case, what is George’s economic profit and how much consumer surplus is generated each day?

Economic profit: $__   

Consumer surplus: $__

In: Economics

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected...

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 7,300 copies. The cost of one copy of the book is $14. The holding cost is based on an 17% annual rate, and production setup costs are $160 per setup. The equipment on which the book is produced has an annual production volume of 20,500 copies. Wilson has 250 working days per year, and the lead time for a production run is 17 days. Use the production lot size model to compute the following values:

Minimum cost production lot size. Round your answer to the nearest whole number. Do not round intermediate values.

Q* =   

Number of production runs per year. Round your answer to two decimal places. Do not round intermediate values.

Number of production runs per year =   

Cycle time. Round your answer to two decimal places. Do not round intermediate values.

T =   days

Length of a production run. Round your answer to two decimal places. Do not round intermediate values.

Production run length =   days

Maximum inventory. Round your answer to the nearest whole number. Do not round intermediate values.

Maximum inventory =   

Total annual cost. Round your answer to the nearest dollar. Do not round intermediate values.

Total annual cost = $    

Reorder point. Round your answer to the nearest whole number. Do not round intermediate values.

r =  

In: Math

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected...

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 7,700 copies. The cost of one copy of the book is $13. The holding cost is based on an 20% annual rate, and production setup costs are $170 per setup. The equipment on which the book is produced has an annual production volume of 22,500 copies. Wilson has 250 working days per year, and the lead time for a production run is 12 days. Use the production lot size model to compute the following values:

  1. Minimum cost production lot size. Round your answer to the nearest whole number. Do not round intermediate values.

    Q* =   
  2. Number of production runs per year. Round your answer to two decimal places. Do not round intermediate values.

    Number of production runs per year =   
  3. Cycle time. Round your answer to two decimal places. Do not round intermediate values.

    T =   days
  4. Length of a production run. Round your answer to two decimal places. Do not round intermediate values.

    Production run length =   days
  5. Maximum inventory. Round your answer to the nearest whole number. Do not round intermediate values.

    Maximum inventory =   
  6. Total annual cost. Round your answer to the nearest dollar. Do not round intermediate values.

    Total annual cost = $    
  7. Reorder point. Round your answer to the nearest whole number. Do not round intermediate values.

    r =  

In: Statistics and Probability

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected...

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 6,800 copies. The cost of one copy of the book is $12.5. The holding cost is based on an 19% annual rate, and production setup costs are $150 per setup. The equipment on which the book is produced has an annual production volume of 25,000 copies. Wilson has 250 working days per year, and the lead time for a production run is 17 days. Use the production lot size model to compute the following values:

  1. Minimum cost production lot size. Round your answer to the nearest whole number. Do not round intermediate values.

    Q* = ___
  2. Number of production runs per year. Round your answer to two decimal places. Do not round intermediate values.

    Number of production runs per year = ___
  3. Cycle time. Round your answer to two decimal places. Do not round intermediate values.

    T = ___ days
  4. Length of a production run. Round your answer to two decimal places. Do not round intermediate values.

    Production run length = ___ days
  5. Maximum inventory. Round your answer to the nearest whole number. Do not round intermediate values.

    Maximum inventory = ___
  6. Total annual cost. Round your answer to the nearest dollar. Do not round intermediate values.

    Total annual cost = $___   
  7. Reorder point. Round your answer to the nearest whole number. Do not round intermediate values.

    r = ___

In: Statistics and Probability

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected...

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 6,800 copies. The cost of one copy of the book is $12.5. The holding cost is based on an 19% annual rate, and production setup costs are $150 per setup. The equipment on which the book is produced has an annual production volume of 25,000 copies. Wilson has 250 working days per year, and the lead time for a production run is 17 days. Use the production lot size model to compute the following values:

  1. Minimum cost production lot size. Round your answer to the nearest whole number. Do not round intermediate values.

    Q* = ___
  2. Number of production runs per year. Round your answer to two decimal places. Do not round intermediate values.

    Number of production runs per year = ___
  3. Cycle time. Round your answer to two decimal places. Do not round intermediate values.

    T = ___ days
  4. Length of a production run. Round your answer to two decimal places. Do not round intermediate values.

    Production run length = ___ days
  5. Maximum inventory. Round your answer to the nearest whole number. Do not round intermediate values.

    Maximum inventory = ___
  6. Total annual cost. Round your answer to the nearest dollar. Do not round intermediate values.

    Total annual cost = $___   
  7. Reorder point. Round your answer to the nearest whole number. Do not round intermediate values.

    r = ___

In: Statistics and Probability

Problem 10-13 (Algorithmic) Wilson Publishing Company produces books for the retail market. Demand for a current...

Problem 10-13 (Algorithmic)

Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 7,400 copies. The cost of one copy of the book is $13. The holding cost is based on an 19% annual rate, and production setup costs are $140 per setup. The equipment on which the book is produced has an annual production volume of 27,000 copies. Wilson has 250 working days per year, and the lead time for a production run is 17 days. Use the production lot size model to compute the following values:

  1. Minimum cost production lot size. Round your answer to the nearest whole number. Do not round intermediate values.

    Q* =
  2. Number of production runs per year. Round your answer to two decimal places. Do not round intermediate values.

    Number of production runs per year =
  3. Cycle time. Round your answer to two decimal places. Do not round intermediate values.

    T =  days
  4. Length of a production run. Round your answer to two decimal places. Do not round intermediate values.

    Production run length =  days
  5. Maximum inventory. Round your answer to the nearest whole number. Do not round intermediate values.

    Maximum inventory =
  6. Total annual cost. Round your answer to the nearest dollar. Do not round intermediate values.

    Total annual cost = $  
  7. Reorder point. Round your answer to the nearest whole number. Do not round intermediate values.

    r =

In: Statistics and Probability