Write a paper that discusses the seven global privacy principles that most companies have included in their self-regulation for data privacy. Why do companies include them? Is this enough? Why or why not?
In: Operations Management
Identify and briefly explain any three key features, a distance vector protocol must incorporate in order to make it loop free? (100 words)
In: Computer Science
QUESTION 1
A disk (radius 13.5 cm] rotates about a fixed axis through its center of mass and perpendicular to the disk. At t = 0 the disk is rotating at frequency 6.64 Hz, and it accelerates uniformly to frequency 27.6 Hz after spinning through 60.4 revolutions. Find the angular acceleration of the disk, in rad/s2.
QUESTION 2
The wheel of a cart has radius 64.6 cm. How many revolutions will it make if the cart goes 6.45 km?
In: Physics
Draw a single graph in Python showing the performance of both algorithms against the number of elements (100,000). Consider the worst case scenario. In the graph we want to see: labeling of the axes, a legend, a title and the graphs for both linear and binary search, again correctly labeled. Explain what you see.
In: Computer Science
Below is a small part of the phone list of B. Obama. The phone numbers and addresses have been left out here.
a) Show with binary search how you would look up the person Casy in this list (manually).
b) Explain that linear search, in this case, is faster than binary search.
Phone List (1) Allen (2) Baley (3) Boyer (4) Casy (5) Davis (6) Davison (7) Glen (8) Greer (9) Haley (10) Hanson (11) Harrison (12) Lister (13) Mendel (14) Morgenstern (15) Patton (16) Perkins (17) Quinn (18) Reed (19) Schmidt (20) Woolf
In: Computer Science
Write a JAVA application that asks elementary students a set of 10 math problems
In: Computer Science
July 2019 Transactions
Date Description of the Transaction
July 1 Borrow $35,000.00 from 1st Bank by signing a 24 month note.
(As an example of how to journalize and post a transaction -- this transaction has already been entered into the General Journal and posted to the General Ledger.)
July 1 Receive $66,900.00 cash from new investors, and issue $66,900.00 of Common Stock to them. July 1 Purchase $36,000.00 of new mowing equipment, paying cash to the mower dealer.
” July 1 Pay $500.00 cash for the July truck rental.
July 3 Invoice a new customer $3,560.00, for a completed mowing job — customer will pay in 10 days.
July 5 The Board of Directors declares a cash dividend. The total amount of the dividend is $26,000.00. The Date of Record is set as July 15. The Date of Payment is set as July31“
Jul 7. Pay the employees $6,500.00 for work performed during the 1st week of July.
_ July 10. Complete a mowing job for a new customer — customer pays $915.00 cash for the job.
July 12. Collect $3,500.00 cash from the golf course for special rush mowing job completed on May 31.
July 1.4 Pay the employees $5,000.00 for work performed during the 2nd week of July.
July 15 . Purchase $880.00 of supplies from the mower dealer. The supplies are consumed immediately.
Lenny’s will pay the mower dealer for the supplies in about 2 weeks.
July 15 Collect $3,560.00 on account. The cash that is received is from the new customer for the job
that was completed on July 3.
. July 17 One of the original mowers purchased in January of 2018 broke down and is repaired by the mower deaIer. The cost of the Mower Repair job is $895.00. Lenny’s will pay the mower dealer in 30 days.
July 19. Purchase for cash $31,000.00 of supplies. These supplies will be consumed over the next 12 months.
July 20 Collect $30,000.00 from the property management company for work performed in June.
July 21. Pay the employees $4,850.00 for work performed during the 3rd week of July.
July 23. Receive a $23,250.00 advance payment from the university. The advance payment is for 6 months of work which will be performed from August 1, 2019 to January 31,2020.
July 25. Complete a special mowing job for the golf course. The total price for the mowing job is $7,050.00. The golf course pays $1,000.00 cash on this date and will pay the remainder on August 25.
July 27. Complete a mowing job for a new customer — customer pays $400.00 cash for the job. July 27 Pay $880.00 cash to the mower dealer for the supplies purchased on account on July 15. July 28 Pay the employees $5,300.00 for work performed during the 4th week of July.
July 31. Invoice the property management company $25,500.00 for July mowing work. The property management company will pay the invoice on the 20th of next month.
July 31. Pay the cash dividend which was declared on July 5.
Additional Information
Equipment: The $48000.00 beginning balance in the Equipment account relates to the mowing equipment which”was purchased on January 2, 2018. For information related to this mowing equipment see Page 70 in the Solid Footing book. This equipment continues to be used and should be depreciated for the month of July.
The following information relates to the new equipment which was purchased on July 1, 2019:
- The new equipment was placed into service on July 1, 2019 and should be depreciated for the month of July.
-The estimated useful life of the new equipment is 5 years.
- At the end of 5 years, the new equipment will have no future value and will be scrapped. The new equipment will be depreciated using the straight-line method.
Supplies: At the end of July there are $28,150.00 supplies on-hand.
Mowing service at the University:
The monthly mowing service was provided to the university per the contract signed on April 1, 2019.
Wages due the Employees: The last wage payment was made to the employees on July 28, 2019. The employees worked on
July 29, 30, and 31. For these three days of work the employees earned $3,175.00 of wages. These three days of wages will be paid to the workers during the first week of August.
Bank Loan: The interest on the loan from 1st Bank will be paid every three months. The first interest payment
to the bank will be made on September 30, 2019. Lenny's calls the bank on July 31 and the bank indicates that the interest on the loan for July is $860.00.
I NEED A GENERAL JOURNAL FOR THIS INFORMATIONS.
In: Accounting
You will need to write a library of functions that uses pointers. Your functions must follow the headers below.
int intDivide(int numerator, int denominator, int *quo_ptr, int *rem_ptr); |
Create a function to do integer division that gives the division result and remainder via output parameters, quo_optr and rem_ptr.
Additionally, the function must return an int representing the success/failure of the function. The function should return 0 if it succeeds and -1 if there is a divide by zero error. (Note that you should not actually do the division if there will be a divide by zero error. Simply return -1.)
In: Computer Science
A mass weighing 19lb stretches a spring 8in. The mass is attached to a viscous damper with damping constant 4lb⋅s/ft. The mass is pushed upward, contracting the spring a distance of 2in, and then set into motion with a downward velocity of 7in/s. Determine the position u of the mass at any time t. Use 32ft/s2 as the acceleration due to gravity. Pay close attention to the units. Answer must be in inches
In: Advanced Math
1. The amount of uncollectible accounts at the end of the year is estimated to be $25,000 using the aging of accounts receivable method. The balance in the Allowance of Doubtful Accounts account is an $8,000 credit before adjustment. Assuming no accounts are written off during the period, what will be the amount of bad debts expense for the period?
2. plasma inc. has net credit sales of $500,000 during the year. Based on historical information, Plasma estimates that 2% of net credit sales result in bad debts. At the beginning of the year, Plasma has a credit balance in its Allowance for Doubtful Accounts of $4,000. What amount of bad debt expense should Plasma recognize for the year, assuming no specific customer accounts were written off?
3. Total doubtful accounts at the end of the year is estimated to be $25,000 using the aging of accounts receivables method. If the balance for the Allowance for Doubtful Accounts is a $7,000 debit before adjustment, what will be the amount of bad debt expense for the period?
Please explain thoroughly - I do not understand the relationship between bad debt expense and allowance for doubtful accounts
In: Accounting
Write a complete and
syntactically correct Python program to solve the following
problem:
Write a program for your professor that allows him to keep a record
of the students’ average grade in his class. The program must be
written in accordance with the following specs:
1. The input must be interactive from the keyboard. You will take
input for 12 students.
2. You will input the students’ name and an average grade. The student cannot enter an average below zero or above 100. Your program must raise and handle an exception should this occur.
a. The exception should cause the program to return and get a new grade
3. Write all output to a file named grades.txt
4. Close the output file.
5. Open the file grades.txt for input.
6. Your program will raise and handle an exception if the file is not found.
a. I will
test this aspect by changing the file name and looking for your
exception
code (your exception should cause program to ask for correct file
name).
7. Read all the records from the file and display them.
Please help me to finish this code:
name,grade=input().split()
grade=int(grade)
if grade <0 or grade>100:
exceptioncheck()
def execptioncheck():
name,grade=input().split()
In: Computer Science
Assume that your father is now 50 years old, plans to retire in 10 years, and expects to live for 25 years after he retires - that is, until age 85. He wants his first retirement payment to have the same purchasing power at the time he retires as $50,000 has today. He wants all his subsequent retirement payments to be equal to his first retirement payment. (Do not let the retirement payments grow with inflation: Your father realizes that if inflation occurs the real value of his retirement income will decline year by year after he retires). His retirement income will begin the day he retires, 10 years from today, and he will then receive 24 additional annual payments. Inflation is expected to be 5% per year from today forward. He currently has $50,000 saved and expects to earn a return on his savings of 8% per year with annual compounding. The data has been collected in the Microsoft Excel Online file below. Open the spreadsheet and perform the required analysis to answer the question below. Open spreadsheet How much must he save during each of the next 10 years (with equal deposits being made at the end of each year, beginning a year from today) to meet his retirement goal? (Note: Neither the amount he saves nor the amount he withdraws upon retirement is a growing annuity.) Do not round intermediate calculations. Round your answer to the nearest dollar.
Father's current age | 50 | |
Number of years until retirement | 10 | |
Number of years living in retirement | 25 | |
1st retirement payment, same purchasing power today as | $60,000 | |
Inflation rate | 6.00% | |
Current savings at t = 0 | $75,000 | |
Percentage return earned | 4.00% | |
Step 1. Calculate retirement payments, beginning at t = 10 | Formulas | |
Fixed retirement payments | #N/A | |
Step 2. Calculate the value of current savings at t = 10 | ||
Value of current savings, 10 years from today | #N/A | |
Step 3. Calculate the value of the annuity due of retirement payments at t = 10 | ||
Value of annuity due | #N/A | |
Step 4. Calculate the net amount that must be accumulated at t = 10 to receive desired retirement payments | ||
Net amount needed in 10 years | #N/A | |
Step 5. Calculate the value of annual deposit needed to meet desired retirement goal | ||
Value of annual deposit to meet retirement goal | #N/A |
In: Finance
Implement the \void enqueue(int val)" function in the QueueUsingStack.java/QueueUsingStack.h file (ATTACHED BELOW). Here are some hints on how to implement this using two stacks:
- Create a stack \tempStack", which has the same maximum capacity as the mainStack.
- Pop all numbers from mainStack and push them onto tempStack.
- Push the new number onto mainStack.
- Pop all numbers from tempStack and push them onto mainStack.
Implement the \int dequeue()" function in the
QueueUsingStack.java/QueueUsingStack.h le. Recall that this is
nothing but a pop on the mainStack.
Implement the \int getSize()" function in the
QueueUsingStack.java/QueueUsingStack.h le. Recall that this is
nothing but the size of mainStack.
public class QueueUsingStack {
Stack mainStack;
int maxQueueSize;
public QueueUsingStack(int maxQueueSize) {
this.maxQueueSize = maxQueueSize;
mainStack = new Stack(maxQueueSize);
}
public void enqueue(int val) { // complete this function
}
public int dequeue() { // complete this function
}
public int getSize() { // complete this function
}
public String toString() {
if (getSize() == 0) {
return "[]";
} else {
String output = "[";
int n = getSize();
for (int i = 0; i < n - 1; i++) {
int x = dequeue();
output += x + ", ";
enqueue(x);
}
int x = dequeue();
output += x + "]";
enqueue(x);
return output;
}
}
}
In: Computer Science
A block having a mass of0.72 kg is given an initial velocity vA = 1.3 m/s to the right and collides with a spring whose mass is negligible and whose force constant is k = 45 N/m as shown in the figure.
The spring is now mounted vertically on the table, and the mass is dropped downwards, hitting the spring and compressing it. Just before the "collision", the block has a measured velocity of 2.00 m/s downwards. What will be the maximum compression of the spring? (Friction is negligible.)
In: Physics
Python 3
Rewrite KNN sample code using KNeighborsClassifier .
● Repeat KNN Step 1 – 5, for at least five times and calculate average accuracy to be your result.
● If you use the latest version of scikit -learn, you need to program with Python >= 3.5.
● Use the same dataset: “ iris.data ”
● Split your data: 67% for training and 33% for testing
● Draw a line chart: Use a “for loop” to change k from 1 to 10 and check your model accuracy.
Requirements:
scipy | |
numpy | |
pandas | |
matplotlib | |
seaborn | |
sklearn | |
Code:
import csv
import random
import math
import operator
def loadDataset(filename, split, trainingSet=[] ,
testSet=[]):
with open(filename, 'rb') as csvfile:
lines = csv.reader(csvfile)
dataset = list(lines)
for x in range(len(dataset)-1):
for y in range(4):
dataset[x][y] = float(dataset[x][y])
if random.random() < split:
trainingSet.append(dataset[x])
else:
testSet.append(dataset[x])
def euclideanDistance(instance1, instance2, length):
distance = 0
for x in range(length):
distance += pow((instance1[x] - instance2[x]), 2)
return math.sqrt(distance)
def getNeighbors(trainingSet, testInstance, k):
distances = []
length = len(testInstance)-1
for x in range(len(trainingSet)):
dist = euclideanDistance(testInstance, trainingSet[x],
length)
distances.append((trainingSet[x], dist))
distances.sort(key=operator.itemgetter(1))
neighbors = []
for x in range(k):
neighbors.append(distances[x][0])
return neighbors
def getResponse(neighbors):
classVotes = {}
for x in range(len(neighbors)):
response = neighbors[x][-1]
if response in classVotes:
classVotes[response] += 1
else:
classVotes[response] = 1
sortedVotes = sorted(classVotes.iteritems(),
key=operator.itemgetter(1), reverse=True)
return sortedVotes[0][0]
def getAccuracy(testSet, predictions):
correct = 0
for x in range(len(testSet)):
if testSet[x][-1] == predictions[x]:
correct += 1
return (correct/float(len(testSet))) * 100.0
def main():
# prepare data
trainingSet=[]
testSet=[]
split = 0.67
loadDataset('iris.data', split, trainingSet, testSet)
print 'Train set: ' + repr(len(trainingSet))
print 'Test set: ' + repr(len(testSet))
# generate predictions
predictions=[]
k_values = range(10)
for k in k_values:
for x in range(len(testSet)):
neighbors = getNeighbors(trainingSet, testSet[x], k+1)
result = getResponse(neighbors)
predictions.append(result)
accuracy = getAccuracy(testSet, predictions)
print('Accuracy: ' + repr(accuracy) + '%')
main()
In: Computer Science