Questions
Instructions This posting should be a minimum of one short paragraph and a maximum of two...

Instructions

This posting should be a minimum of one short paragraph and a maximum of two paragraphs. Word totals for this post should be in the 100–200-word range. Whether you agree or disagree, explain why with supporting evidence and concepts from the readings or a related experience. Include a reference, link, or citation when appropriate.

Preparation

To attract the best talent, many employers have expanded their employee incentives and benefits offerings. You read about some of the perks Google offers, such as free food and haircuts, on-site gyms and medical facilities, and more. Some other benefits that have been the topics of recent news stories include paid parental leave and unlimited vacation policies.

While the Family Medical Leave Act guarantees 12 weeks of unpaid leave to new parents, there are no US laws guaranteeing any paid leave. But many companies in the tech sector and beyond have expanded their paid parental leave policies in recent years, including Netflix, Microsoft, Ikea, and Nike. Other companies, such as Apple and Facebook, even offer egg freezing and IVF benefits to employees.

Another benefit some companies are trying out is an unlimited vacation time policy. While the idea that you can take off as much time as you like is appealing to many job-seekers, some evidence suggests that employees at these companies actually take less time off than those at companies with more traditional vacation policies.[1] Advocates of unlimited time-off policies cite trust between employees and managers as a key factor in making them work.

For Discussion

Choose ONE of the following questions to respond to in your initial post.

  1. What benefits and incentives do you think are most appealing to employees, and why?
  2. What challenges do benefits like extended parental leave and unlimited paid time off present to managers? How might managers address these challenges?
  3. Research some other unique employee benefits or incentives. Share what you discover, and include a link to the article or site. Do you think these incentives would be attractive to employees? Why or why not?
  4. If you were working as an HR manager, what benefits and incentives would you recommend that the company offer? Why?

In: Operations Management

Programming language to be used: Java Exercises Part 1) The Dog Class In the first part...

Programming language to be used: Java

Exercises

Part 1) The Dog Class

In the first part of the lab, we are writing a class to represent a Dog. It should not have a main method.

  1. Dog needs fields for price (to purchase the dog), breed, name, and age. Use appropriate data types
  2. The class should have the following two kinds of Constructors:
    1. Constructor 1: Write a constructor that accepts a value for each of the fields
    2. Constructor 2: Write a constructor that accepts no arguments and sets default values of your choice
  3. The Dog class requires:
    1. Setters and getters for all fields
    2. A toString() method, which
      1. Returns String
      2. Returns a String describing the dog, such as

Sebastian the Husky is 5 years old.
$45.56 adoption fee

  1. Please note that the dollars must be formatted that way

Part 2) The Sales Class

In the second part of the lab, we are writing a class to represent the buying of a Dog or multiple Dogs. Let’s not consider the logistics of buying Dogs in bulk.

  1. The Sales class has the following fields – a PrintWriter for a file being used (as well as any other fields you decide you want to help with that) and a double holding the total price of dogs purchased
  2. A Sales class has one constructor – it should take a file name to save the output to
  3. The Sales class needs the following functions
    1. An addDog method, which saves a new dog to the file (using the toString to get the String representation) and adds the price to the total double
    2. A finalizeReport method, which closes the file after adding a bottom line (“----“) and printing the total price below that line, properly formatted

Part 3) The DogMarket Class

This class should get a file name from the user. It should use the file to create a Sales class object. Then, it should prompt the user for details of the dogs they want to buy. Use a while loop, which uses the word “quit” to not buy a dog and the word “buy” to buy a dog – other words should be ignored, but should not quit the program. If the user says “buy”, ask them for all of the dog’s info, then make a new Dog object and save it to the file using the Sales object. Once the user is done buying dogs, the program should exit, being sure to use finalizeReport() on the sales object

In: Computer Science

in Python3 The ord function in Python takes a character and return an integer that represents...

in Python3

The ord function in Python takes a character and return an integer that represents that character.
It does not matter what the integer representing the character actually is, but what matters is this:

ord('a') is 1 less than ord('b'), so that:

x=ord('a')
thisLetter = x+1 # thisLetter is the ord('b')

This is a powerful fact that is used in encryption techniques, so data transferred over the web is 'ciphered so it is unreadable to others.

To decipher data, we take a string and change it into another string by adding a constant (called the key) to each of its letters' ord value.
See the book's Case study: word play.

To cipher and decipher data, we need two functions: one to take a string, and change it to something else. For this we need to use the ord function, and add the 'key' to result in a new string. For example, say x is one letter to be ciphered, and the key is 3. We can use:

Newx=ord(x)+3

Newx will be an integer. To find out what letter that integer represents you can use the chr function as in:
actualLetter = chr(x)

Write a function named cipher that takes a string.
The function returns that string in a ciphered form by using the ord of the first letter of the string to cipher each letter including the first letter. Hence for abc, use the ord of 'a', and add it to the ord of 'a' and convert that result to a character use the chr function. This character should be concatenated to the same action on the letter b and so on. Hence the function returns:

chr(ord('a')+ord('a')) + chr(ord('a')+ord('b')) + chr(ord('a')+ord('c')).
Obviously you need a loop to iterate on each letter.

Write another function to decipher (do the opposite of the previous function), given a string and returns the deciphered string. Obviously, the first letter's ord is halved to find the first letter, and that value is used to decipher the remaining letters.

From main, write code to get a string, as input, then call the cipher function and print its output.
Then call the decipher function and display its output. The decipher output should match the original string.

For help on this see the book's Case study: word play.

Add comments as needed but make sure to add top level comments.

In: Computer Science

For each short answer, the word limit is 100 words. You need to make assumption clear, reasonable and explicit if making any. The quality and logic of arguments determine your marks.

 

For each short answer, the word limit is 100 words. You need to make assumption clear, reasonable and explicit if making any. The quality and logic of arguments determine your marks. (4 marks each)

  1. Donald Trump promised a more aggressive fiscal policy with a large increase in spending and significant tax cuts leading to a much larger government (budget) deficit. The US economy was at near the full employment (the unemployment rate in the US was low below 5%), what do you expect will be the response of the US Central Bank in terms of changes to the cash rate? Explain.

Answer

 

 

  1. The Central Bank of New Zealand has a higher inflation target than the Reserve Bank of Australia. Does this tend to depreciate or appreciate the New Zealand dollar against the Australian dollar? Explain

Answer

 

  1. What are the reasons for increasing convergence between emerging economies (defined as countries with lower GDP per capita but growing rapidly) and advanced economies (countries with high GDP per capita but lower growth)? Explain.

Answer

 

 

 

 

 

 

 

  1. You have successfully secured the mortgage of worth in $1,000,000 from the Bank to purchase a house. After the contract has been written, inflation in the economy turned out to lower than what was expected. Who gained and lost from this development? Explain.

 

Answer

 

  1. The government (and the central bank) has an easier job of dealing with the macroeconomic impacts of consumers and investors being pessimistic about the future of the economy than the period of stagflation. Do you agree? Explain

 

Answer

 

In: Economics

Instructions Complete the program below. The program should be turned in as a .py file. Please...

Instructions

Complete the program below. The program should be turned in as a .py file. Please turn in the .py file itself (do not take a picture of it or copy/paste it into another program). Please also turn in the output for your program. The output should be in a different file. You may find the easiest way is to take a screenshot of your output. You can use the snipping tool on Windows or the grab tool on a Mac to take pictures of your output. You may want to put all of your output pictures in a single Word file.

Criteria for Success

Please view the rubric to ensure you are completing everything you need. You are required to use functions. In addition, make sure the output examples you turn in show a variety of test cases. You can create a test() function in your program to prove the majority of your code works.

Password Validator

When users create a new account on a website, they are often asked to create a new password. Many websites then test the password to make sure it is strong enough before allowing a user to save it. If it's not strong enough, the user needs to create a new password.  

In this program, you will ask a user for a username/password combination and test for password strength according to the following rules:

  • Must be at least 8 characters and less than 21 characters (20 characters is OK, 21 is not)
  • Must contain both an upper and lowercase letter
  • Must contain a digit (0-9)
  • Must contain a punctuation mark (!+.@$%*)
  • Must ONLY consist of letters (A-Z), (a-z), digits (0-9) and !+.@$*.

Your program will prompt for a username. Then, it will prompt for a password. Your program should check the password. If the password is OK, print "Good Password!" and end the program. If the password is NOT OK, print the appropriate message to the user. Continue reprompting until the user successfully picks a good password.

If there are multiple problems with the password, you only need to report one.

Consider: Is this the most user-friendly approach?

No. It's not. But it does seem some websites continue to hassle the user this way, while others let the user know up front what is expected... And give better error messages than these, often reincluding what is required. I prefer those sites. However, I want you to write the code that can give specific errors.

Obvious Password

Rule: If a password contains 1 or more of the following Strings (ignore case):

  • password
  • 1234
  • 111111
  • Qwerty123
  • Abcd99
  • football
  • dragon
  • letmein
  • iloveyou
  • admin
  • login
  • welcome
  • flower
  • zaq1
  • Password1

Message to user: Don't use common passwords

Too Short Password

Rule: Password must be at least 8 characters long

Message to user: Password must be at least 8 characters long

Too Long Password

Rule: Password must be less than 21 characters long

Message to user: Password must be less than 21 characters

Low Complexity Password

Rule: The password must contain at least 1 character each of:

  • lowercase letter
  • uppercase letter
  • digit
  • punctuation mark (!+.@$%*)

Message to user: Passwords must contain both upper and lower case letters, at least one digit and at least one punctuation mark (!+.@$%*)

Unrecognized Character

Rule: Your company's back-end systems don't like certain characters. Therefore, the password must only contain:

  • Letters (A-Z) or (a-z)
  • Digits (0-9)
  • Punctuation (!+.@$%*) (no parentheses)

Message to user: Password contains an Invalid Character

Other Issues

Rule: If the password has one of the following issues, alert the user of the issue and have them choose a new one.

  • Password contains the username (ignoring case)
  • Password is the same as the username spelled backwards (ignoring case)

Message to User: Passwords can't contain a variation of the username

Pig Latin Translator

Write a program that asks the user for a sentence and converts it to Pig Latin. The below explains how to convert to Pig Latin:

If the first letter is a vowel (a, e, i, o, u):

  • Add "way" to the end of the word.

If the first letter is a consonant (treat the letter "y" as a consonant):

  • Remove the first letter and place that letter at the end of the word. Then append the string "ay" to the end of the word

Words that have their first letter capitalized, should continue to have the (possibly new) first letter capitalized.

Sentences end with a period (.), an exclamation point (!) or a question mark (?). Make sure the punctuation continues to stay at the end of the sentence.

English Pig Latin
sleep leepsay
the hetay
python ythonpay
computer omputercay
pig igpay
Latin Atinlay
if ifway
other otherway
only onlyway
apple appleway

Sentences occassionally have other punctuation such as commas (,) and semicolons (;). Make sure these punctuation marks stay put.

For example:

Original sentence: Hello World!
Right: Ellohay orldway!
NOT: elloHay orld!Way

Original sentence: To be, or not to be?
Right: Otay ebay, orway otnay otay ebay?
NOT: oTay e,bay orway otay e?bay

You only have to deal with the 5 punctuation marks mentioned (. ! ? , ;)


PUTHON PROGRAM

In: Computer Science

Describe how your own personal skill sets render you to have both Absolute and Comparative Advantages...

Describe how your own personal skill sets render you to have both Absolute and Comparative Advantages in certain areas. Yes, brag here…I want you to identify your absolute talents, then expound on what areas where you possess a comparative advantage-they should be less than Absolute.

Finally, identify how your comparative advantage skill set will help you in defining what career (job is a dirty word) choices are available to you.

Note: We strive for “career” security not necessarily “job” security. The former is portable, assuming one has a plethora of skills that are applicable in many different areas (i.e. read “employability”) Jobs are great, but often they are more specialized in nature (which can be a good thing) but the tasks performed and human capital investment required sometimes have little premium in a global environment of business. “Grey hair” talking :)

Finally, answer what are the various types of Elasticity measurements utilized by economists?

In: Economics

The Waikiki Enterprise Corporation produces two types of computers at its manufacturing plant in Torrance, California.

Topic: Economic Order Quantity


Determine the Economic Order Quantity in Excel for:
Price of Product: $150
Savings Rate: 12%
Annual Usage: 16240
Cost of transportation: $200/order
Cost of PO preparation: $60/order
Warehouse Rental: $8/piece

Topic: Linear Programming


Develop problem 1 of chapter 8 using excel or by hand. You need to present the objective and constraints equations. No need to solve it.

The Waikiki Enterprise Corporation produces two types of computers at its manufacturing plant in Torrance, California. Profit on computers A is $900 per unit and for computer B it is $600. The manufacturing plant can produce not more than 50 of computer A and 100 of computer B a day. The following table displays the capacity for the manufacturing plant.

a) What are the decision variable?

b) What is the objective function?

c)What are the constraints?

d)What are the non-negativity assumptions?

Spreadsheet Modeling for Business Decisions Third Edition Revised for Excel 2010 byJohn F. Kros. Chapter8.2

Word and Excel

In: Operations Management

Please solve using graphing calculator. Include what is typed into calculator in your explaination. For example:...

Please solve using graphing calculator. Include what is typed into calculator in your explaination. For example:

First, type the data under L1, then go to STAT --> TESTS -->TInverval.

Inpt: Data (highlight the word Data)

List: L1

Freq: 1

C-level .98

Calculate--> (3.54, 4.29)

Show as much work as you can to support answer.


In a Pew Research Center poll 745 randomly selected adults, 589 said that it is morally wrong not to report all income on tax returns. Assume all requirements are satisfied. You can use a calculator function.

  1. Construct a 90% confidence interval estimate of the proportion of all adults who said that it is morally wrong not to report all income on tax returns.
  2. Construct a 99% confidence interval estimate of the proportion of all adults who said that it is morally wrong not to report all income on tax returns.
  3. Compare the confidence intervals from part 1 and part 2 and identify the interval that is wider. Explain why it is wider.

In: Statistics and Probability

show all workings please. TIA 1) a) Write down the augmented matrix for the following system...

show all workings please. TIA

1) a) Write down the augmented matrix for the following system of linear equations and solve the system.

3x1 − 7x2 + 4x3 = 10

−x1 − 2x2 + 3x3 = 1

x1 + x2 + 2x3 = 8

b) Jason invested $30 000, splitting it between the three companies Acorn Industries, Balderdash Bank and Chester Challenge. The interest rates were respectively 5%, 6% and 7% per annum. The total annual income (i.e. the sum of the interest payments) was $1700. The income from the investments with Balderdash and Chester was $200 more than the income from the Acorn investment.

Begin by letting the investments with Acorn, Balderdash and Chester be $a, $b and $c respectively

i) Write equations representing three facts about the investments. Discuss your equation as to why it should be this.

ii) Solve this system of equations using an augmented matrix.

iii) How much did Jason invest with each company? Write an answer in words. (Answers to word problems should always be given in words).

In: Advanced Math

Use MIPS assembly language program to swap two of the integers in an integer array. The...

Use MIPS assembly language program to swap two of the integers in an integer array. The program should include the Swap function to swap the integers and the main function to call the Swap function.

The main function should:

• Pass the starting address of the array in $a0.

• Pass the indices of the two elements to swap in $a1 and $a2.

• Preserve (i.e. push onto the stack) any T registers that it uses.

• Call the Swap function.

The Swap function should:

• Swap the specified elements in the array.

• Preserve any S registers it uses.

• It does not return a value to main.

.text          
   .globl main      

main:   la $t0, intA    # load the starting address of the integer array into $t0

               # Specify your name and the date in the comments above.
               # Insert the code for the main function here.

       nop       # put breakpoint at this line to end program without warning/error.
  
swap:
               # insert the code for the Swap function here.
  
  
   .data 0x10010000  
intA:   .word       # Specify an array of integers here.

In: Computer Science