Define a Python function named matches that has
two parameters. Both parameters will be lists of ints. Both lists
will have the same length. Your function should use the
accumulator pattern to return a newly created list. For
each index, check if the lists' entries at that index are
equivalent. If the entries are equivalent, append the literal True
to your accumulator. Otherwise, append the literal False to your
accumulator.
Hint: Since you must use the same index with each list,
only write one loop in your function. The loop should use
the built-in range function as its collection, since that
will assign our loop variable to each index and, in the loop body,
we can use the loop variable to get each input's entry at that
index.
In: Computer Science
Describe Hunter's Algorithm for building decision trees. Build a decision out of the following ("training") dataset. The goal is to determine if a person is a defaulted borrower given values for the first four attributes. How do you deal with the attribute Annual Income with real values? For a person with values for the first four attributes 11, No, Single, 180K, is this person a defaulted borrower or not according to your newly built decision tree?
ID Home Owner Marital Status Annual Income Defaulted Borrower
1 Yes Single 125K No
2 No Married 100K No
3 No Single 70K No
4 Yes Married 120K No
5 No Divorced 95K Yes
6 No Married 60K No
7 Yes Divorced 220K No
8 No Single 85K Yes
9 No Married 75K No
10 No Single 90K Yes
In: Computer Science
The cos(x) function can be represented in a Taylor series shown below:
Write a Matlab program, and use a while loop, to calculate cos(150) (the input is in degrees) by adding terms of the series and stopping when the absolute value of the term that was added last is smaller than 0.0001.
Make sure to make the required degree <-> radian conversions.
Use fprintf to print the cos(150) (up to 2 decimal places) and the number of terms used to calculate it. Also, calculate and print the cos(150) using matlab's built-in function cosd. (Your code and the cosd function should return the same values).
In: Computer Science
Create a Python program that includes each feature specified below.
In: Computer Science
R-Studio (R Programming Language)
4. Let the data x be given by
`x <- c(1, 8, 2, 6, 3, 8, 5, 5, 5, 5)`
Use R to compute the following functions. Note, we use X1 to denote
the first element of x (which is 1) etc.
1. `(X1 + X2 + . . .+ X10)/10` (use sum)
2. Find log10(Xi) for each i. (Use the log function which by
default is base e)
3. Find `(Xi - 4.4)/2.875` for each i. (Do it all at once)
4. Find the difference between the largest and smallest values of
x. (This is the range. You can use `max` and
`min` or guess a built in command.)
```{r}
#insert your code
```
In: Computer Science
Write a small section of Python code that defines a function called check_even(value) - the function takes a numerical value as input and returns True or False based on whether the provided argument is divisible by 2 (i.e. is it odd or is it even). If the argument provided is not a number (as determined by built-in the isdigit() function - which only works on string data) then rather than crashing, the function should raise an exception which is caught outside the function (i.e. in the block of code calling the function). Provide three calls to the function: - One with an even value where the function should return True, - Another with an odd value where the function should return False, and - One with non-numerical data which should raise an exception that will be caught and displayed in the block of code that calls the function.
In: Computer Science
In the decimal system (base 10), a natural number is represented as a sequence dndn−1 . . . d0 of (decimal) digits, each of which is in the range 0..9. The value of the number is d0 ×100 +d1 ×101 +···+ dn ×10n. Similarly, in the binary system (base 2), a natural number is represented as a sequence bnbn−1 · · · b0 of (binary) digits, each of which is 0 or 1. The value of the number is b0 ×20 +b1 ×21 +···+bn ×2n. For example, the value of the number whose binary representation is 101is: 1×20+0×21+1×22 =1+0+4=5.
Without using any built-in functions for converting numbers, write a function that takes as input the binary representation of a positive integer n and returns its decimal representation.
In: Computer Science
1. Due to the COVID-19 pandemic, and the stay at home order handed out by the Governor and the President we have had to use MIS more. Tools like Zoom have become widely popular and have seen increased users. However, they have also had some challenges. What are some of the challenges that Zoom has faced in the last few weeks? How would you recommend solving them?
2. Companies like Microsoft, Amazon AWS and Google have built their platform for situations like what we are experiencing. How has cloud computing evolved over the years to allow us some form of continuity? Do you believe there will be a rise in companies moving to the cloud and will there be new entrants to the cloud landscape with companies offering Saas? What are some examples of SaaS?
In: Operations Management
QUESTION 1
Which one of the following types of costs is excluded from the cost of inventory that is routinely manufactured?
|
interest |
||
|
raw materials |
||
|
normal spoilage |
||
|
insurance |
QUESTION 2
On July 1, Maxwell Company had 40 units of inventory at a cost of $6 per unit. July purchases and sales were as follows:
|
Purchases |
Sales |
|||
|
July 5 |
10 units @ $8 |
July 4 |
20 units |
|
|
12 |
20 units @ $10 |
20 |
12 units |
|
|
25 |
10 units @ $16 |
|||
The cost of goods sold during July was $272. Maxwell must use:
|
FIFO |
||
|
LIFO perpetual |
||
|
weighted average |
||
|
LIFO periodic |
QUESTION 3
Exhibit 7-1
Edwards Co. purchased raw materials with a cost of $95,000 on March
2, 2014. Credit terms of 3/20, n/60 applied. If Edwards pays for
the purchase on March 18, 2014, calculate the amount recorded for
inventory on March 2, 2014, using the method given.
Refer to Exhibit 7-1. Edwards uses a perpetual inventory system and
the net price method.
|
$42,000 |
||
|
$76,000 |
||
|
$92,150 |
||
|
$95,000 |
QUESTION 4
Eller Company uses a periodic inventory system. Relevant inventory information for the year follows:
|
1-Jan |
Beginning inventory | 20 units @ $170 per unit |
|
23-May |
Purchased | 20 units @ $135 per unit |
|
5-Nov |
Purchased | 400 units @ $185 per unit |
|
18-Nov |
Purchased | 100 units @ $195 per unit |
At year-end, 50 units remain in inventory. What is the cost of the
ending inventory on a LIFO basis?
|
$7,950 |
||
|
$7,100 |
||
|
$8,750 |
||
|
$8,450 |
QUESTION 5
Near the end of 2015, Spruce Co. made the following purchases. The months involved in all cases are December 2015 and January 2016.
|
Date |
Date |
Date |
Date |
||
|
Goods |
Invoice |
Goods |
Invoice |
||
|
Amount |
FOB |
Shipped |
Mailed |
Rec'd |
Rec'd |
|
$1,575 |
Destination |
12/29 |
1/2 |
1/5 |
1/4 |
|
2,430 |
Shipping Point |
1/2 |
12/29 |
1/4 |
12/30 |
|
1,890 |
Shipping Point |
12/28 |
1/2 |
1/3 |
1/4 |
|
2,700 |
Destination |
12/29 |
12/27 |
1/2 |
12/28 |
What amount of the above purchases should be included in Spruce’s
inventory at December 31, 2015?
|
$1,575 |
||
|
$1,890 |
||
|
$4,320 |
||
|
$4,575 |
In: Accounting
Case Study #2
Background:
Nicky’s Carpet Cleaning Company
You run Nicky’s Carpet Cleaning Company which cleans carpets for commercial businesses. On average one carpet cleaner can clean six offices in a seven hour shift, Monday through Friday. You have 100 cleaners currently working for you, and they work 250 days per year. A recent analysis of the rework that must be done finds that, on average, one in every 6 carpets cleaned is not up to your standards. Because of Nicky’s “Satisfaction Guarantee” when a carpet does not meet the standards it is redone immediately at no extra cost to the customer.
The profit on cleaning each office is $25. You pay your cleaners $15 per hour. ($105 per day) When you have to re-clean a carpet you lose $20 in employee time.
Your training manager has done a needs assessment regarding this issue at your request and has identified the cause as being a lack of KSA’s. The training manager proposes a training program that he estimates will reduce the re-cleaning by 50%. The training would take 4 hours and they could train 25 employees per session. Training could therefore be completed for all 100 employees over two Saturdays, by running two four hour sessions on each Saturday.
Costs Associated With Training
Postage to mail out pre-training materials to all employees $300
20 days of training manager’s time for creation $3,200 of training program
Training Facilitator Costs ($325 per day) $650
Training Facility Rental
AV Equipment Rental for 2 Days ($1000 per day) $2,000 Refreshments
for employees $600
Employee Wages (Nicky decides to conduct training on a $8000
Saturday and pay his employees an extra $5 per hour as
overtime) $20 per hour per employee
Cost of Facilitators Hotel Room/Expenses $600
Clerical Support to assist training manager in creating
Program- (20 hrs @ $10 per hr.) $200
External Consultant Fees associated with reviewing
Training Program created by training manager $800
Photocopying costs to produce brochure for all employees
with training information sent out prior to training. $200
Administrative support to prepare attendee lists/schedules $120 for training dates ( 10 hrs. @ $12 per hour)
Cost to purchase new LCD projector for training
department to share as old one no longer works $2000
$1000
Case Study Questions
In reviewing the related costs associated with the training program please identify which ones falls into the following categories:
Development Costs, Direct Costs, Indirect Costs, Trainee Compensation, Overhead Costs
How much do the re-cleanings cost Nicky each year? Show all mathematical calculations.
After the training is complete, what is the estimated annual cost savings each year? Show all mathematical calculations.
What is the total cost of conducting the training?
If training was cancelled the day before, what would the training costs then be? (assume no cancellation fees would apply) Please list items, show related costs and provide a final total.
In: Accounting