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.
In: Operations Management
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.
Sebastian the Husky is 5 years
old.
$45.56 adoption fee
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.
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 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. (4 marks each)
Answer
Answer
Answer
Answer
Answer
In: Economics
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:
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):
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:
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:
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.
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):
If the first letter is a consonant (treat the letter "y" as a consonant):
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 (. ! ? , ;)
In: Computer Science
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
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:
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.
In: Statistics and Probability
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 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