Let's say someone gives you an array that is filled with P numbers. Please next see if there are two numbers whose sum equals a given number S and determine if there is two numbers that do this. Take for example, if I give you the input array to be 8, 2, 1, 7, and our variable S is 15, then the answer would be yes because 8 and 7 add up to S which in this case is 15. You are allowed to use a number twice. To solve this problem, please Give me an O(NlogN) algorithm. (In language C++)
In: Computer Science
Use the distribution below to answer the next 5 questions:
X f
10 8
9 6
8 6
7 7
6 1
40 28
1
n=?
40
5
28
237
4
2.
What is the relative frequency associated with X=7?
Group of answer choices
7
8
.25
.32
1
3.
The mean of the distribution is
Group of answer choices
8.464
5.6
1.429
47,4
8
4.
The median of the distribution is
Group of answer choices
14.5
8
7.5
9
8.5
5.
Which of the following has the largest standard deviation?
Group of answer choices
1 3 5 7 9
11 13 15 17 19
11 11 15 19 19
111 115 115 115 119
1011 1013 1015 1017 1019
In: Statistics and Probability
1. Define the terms "geodetic height", "geoidal height", and "orthometric height", present the equation that expresses the relationship between the geodetic height and orthometric height, and state which one these heights are measured by GNSS survey method.
2. What are the geocentric coordinates in meters of a station which has a latitude of 44°53′52.1918′′ N, a longitude of 68°40′07.3487′′ W and height of 130.405 m (use the WGS84 ellipsoidal parameters)?
3. The geodetic heights of two stations are 324.685 m and 309.879 m, and their orthometric heights are 356.496 m and 341.707 m, respectively. These stations have model-derived geoid heights of −31.828 and −31.836, respectively. What is the orthometric height of a station with a GNSS measured height of 305.645 m and a model-derived geoid height of −31.802 m?
4. A GNSS survey has a reported error of ±(12mm + 2ppm) at a 95% probability. What is the error for a control baseline with a length of 4 miles at the 95% probability?
In: Civil Engineering
62 year old African male mechanic
chief complaint: weakness and lightheadedness of 5 weeks'
duration
previous health and illness : Noncontributory
Present illness: until 1 yr ago, the patient was entirely well. At the time, he had to give up his weekly game of bowling because it made him too tired. During the next 8 months , he noted increasing fatigue, inability to concentrate on his work, and irritability. Five weeks ago, he noted unsteadiness of gait, particularly in the evening , numbness and tingling in his fingers and toes, and burning of the tongue. For the last few weeks his appetite has been poor, and has lost 12 pounds .
physical examination:
temp 99.2o F
P: 100/minute
R:12/minute Blood pressure: 130/88 mm Hg
HEENT: Scleral icterus. Conjunctivalpallor
Redden atrophic tongue
Heart: slightly enlarged to percussion
Regular rhythm: 2/6 apical systolic murmur w/o transmission
Neurological status: Ataxic gait. Positive Romberg test . Loss of
position and vibration sense in the lower extremities
Impairment of recent memory
Diagnosis, Rationale?
Etiology, pathophysiology, prevalence,predisposing factors,
clinical presentation and methods to diagnose.
Treatment plan , adverse effects are possible, patient had to be
aware.
In: Nursing
A) Suppose that in a certain country, males between the ages of 40 and 49 eat on average 102.7 g of fat every day with a standard deviation of 4.35 g. Assume that the amount of fat a person eats is normally distributed.
Find the probability that a man age 40-49 from this country eats
more than 110 g of fat every day.
P(x > 110) =
Find the probability that a man age 40-49 from this country eats
less than 93 g of fat every day.
P(x < 93) =
Find the probability that a man age 40-49 from this country eats
less than 64 g of fat every day.
P(x < 64) =
What daily fat level do 5% of all men age 40-49 from this
country eat more than? Round to one decimal place.
____ g.
B) Suppose a dishwasher has a mean life of 15 years with an estimated standard deviation of 1.22 years. Assume the life of a dishwasher is normally distributed.
Find the probability that a dishwasher will last more than 17
years. Round to four decimal places.
P(x > 17) =
Find the probability that a dishwasher will last less than 8
years. Round to four decimal places.
P(x < 8) =
Find the probability that a dishwasher will last between 10 and
13 years. Round to four decimal places.
P(10 < x < 13) =
A manufacturer of dishwashers only wants to replace free of
charge 5% of all dishwashers. How long should the manufacturer make
the warranty period? Round to the nearest whole number.
______ years
In: Statistics and Probability
River Rosewell is a professional rower who has just been
accepted into the USA athlete in residence program at the Olympic
Training Center in Colorado Springs. He has been team rowing since
the age of 11. He attended Harvard University on a rowing
scholarship is now 21 years old. He has spent the last year after
graduation (graduated with a BS degree in Business) pursuing his
dream of making it on to the USA rowing team for the single skulls
event (heavyweight).
The typical length of a single skulls race is 2 kilometers. He
rowed a practice event at the same course he is going to open the
season at and had an average (average of two race runs) of 7.01
minutes. This placed him 12th out a field of 30 international
qualifiers. This was good enough to qualify him for the actual
rowing event event held 12 weeks later.
Assume that the “actual” race will be carried out under very
similar weather conditions.
He has worked with a personal trainer for the last year, working on
improving his basic strength, strength endurance, power and
mobility, and is ready for more “sport specific training” as he
approaches skulling circuit.
Listed below are some of his current anthropometric and performance
based characteristics
Physical Characteristics
Height 6”2
Weight 195lb
% Body Fat 11%
1RM Back Squat 330lb
1RM Power clean 260lb
1RM Bench press 280lb
Deadlift 450lb
CMVJ height (hands on hips) 27.0 inches
Can perform 20 bodyweight pull ups
Rowing ergometer, based incremental Vo2max 59ml.kg.min
Question: Design a battery of tests that will test
Rivers strength, strength endurance, power, power endurance,
anaerobic and aerobic capacity and sport specific preparedness for
the upcoming rowing event. Please justify why such tests were
selected and were they will be placed in relation to the training
program.
In: Anatomy and Physiology
Create an excel spreadsheet with the following information
Mary Fernandez is a student in the Spring Quarter class of Enterprise Finance. It is now 7:30 AM and she is attending the October meeting of the San Diego Venture Group. There are approximately 300 people attending the meeting: bankers, accountants, lawyers, headhunters and entrepreneurs. Mary is a bit lost and wanders to the back of the room to get a cup of coffee. Looking for the cream for her coffee she stumbles into John Thompson.
John is the son of a doctor who majored in Computer Science while at UCLA. He has relocated back to San Diego and for the last four years he has been a software engineer.
John is an avid waterman. He surfs, swims, paddles and stand up paddles every day and hopes to do so the remainder of his life. John has found that FitBit, the Apple Watch and other devices do not work for him. John needs something that is waterproof, can track his efforts if he is running or biking and calculate his calorie and level of exercise if he is swimming, surfing, paddling, etc. There are devices that handle part of what he is looking for but nothing seems to have it all. John decides to write the programing that will be the basis for the “Iron Fit” that keep track off John’s exercise activities no matter what he is doing.
After a year plus of effort John has written the necessary software and through friends has come up with a product design. After going through a number of prototypes John has finally come up with a product and is looking to roll it out. Friends have told him that the surf and action sport market is where he should first launch the product. John wants to immediately roll out to bicycle shops, running shops and others. The ultimate goal is to sell the product through the major sporting goods retailers and big box stores. The initial reactions to the Iron Fit have been overwhelmingly positive. The next step is for John to raise some money and build a company but he is at a loss as to how to build the financial statements required for presentations to Angel Investors and Venture Capitalists.
Mary tells John that she would be happy to build the model. John mentions that he will need to hire 3 additional engineers to continue to refine and expand the product. Each engineer makes approximately $120,000 per year. In addition, he will need two VPs of marketing. One to sell the product to the action sports industry and one to sell the product to traditional bicycle, running and fitness shops. Each VP will command a salary of $150,000 per year. In addition, they will manage 3 sales people each, six total within the Company, at approximately $80,000 per annum. The marketing budget, for advertising and other materials, will be $350,000 for each marketing group per year or $700,000 for the Company as a whole. Marketing expenses are expected to be spent in an equal amount per month. The initial back office will contain an accountant @ $80,000 and two receptionists/secretaries @ $40,000. Additional salary expenses, including payroll taxes, health insurance and other benefits, are budgeted at 30% of total salaries. John hopes to make a salary of $175,000. Annual office expenses including occupancy are expected to be $25,000. John expects his salary expenses to increase by 5% in the second year and the other expenses to increase by 10%.
Capital expenses include a computer for each individual, $1,000, two network printers, $1,000, telephone, $1,000, two servers, $5,000 each, software, $10,000, and networking, $1,000.
John expects his gross margin as a % of sales to be 50%. The sales price of the Iron Fit will be $125.00 to stores with the retail price being approximately $160.00. John is planning to keep the sale price constant in the second year in order to grab more market share.
Please complete an initial model for John’s company for the first two years. (This will require a month by month analysis.) What is the amount of capital needed? Assuming a required rate of return by investors of 20% per annum and the sale of the company at the end of the second year at seven times Year 2 EBITDA what is the company worth? (Please note that when discounting monthly cash flows you will need to divide the interest rate by 12.) What do you think about this deal? What questions do you need to ask if you were an investor?
Estimated Number of Units Sold
Month Month Month Month Month Month
1 2 3 4 5 6
0 250 500 1,000 5,000 6,000
Month Month Month Month Month Month
7 8 9 10 11 12
7,000 8,000 8,000 8,000 9,000 9,000
Month Month Month Month Month Month
13 14 15 16 17 18
10,000 10,000 12,000 12,000 15,000 15,000
Month Month Month Month Month Month
19 20 21 22 23 24
17,000 17,000 20,000 20,000 20,000 20,000
In: Finance
Use for Questions 1-7: Hector will roll two fair, six-sided dice at the same time. Let A = the event that at least one die lands with the number 3 facing up. Let B = the event that the sum of the two dice is less than 5.
1. What is the correct set notation for the event that “at least one die lands with 3 facing up and the sum of the two dice is less than 5”?
2. Calculate the probability that at least one die lands with 3 facing up and the sum of the two dice is less than 5.
3. What is the correct set notation for the event that “at least one die lands with 3 facing up if the sum of the two dice is less than 5”?
4. Calculate the probability that at least one die lands with 3 facing up if the sum of the two dice is less than 5.
5. What is the correct set notation for the event that “the sum of the two dice is not less than 5 if at least one die lands with 3 facing up”?
6. Calculate the probability that the sum of the two dice is not less than 5 if at least one die lands with 3 facing up.
7. Are A and B independent? Explain your reasoning
In: Math
Question: Professional Experience #1 Due at the end of Week 1 (not eligible for late policy unless an appro...
Professional Experience #1
Due at the end of Week 1 (not eligible for late policy unless an approved, documented exception is provided)
*In the workplace, incomplete work is not accepted. The professional experience assignments are designed to help prepare you for that environment. To earn credit, make sure you complete all elements and follow the directions exactly as written. This is a pass/fail assignment, so no partial credit is possible. Assignments that follow directions as written will be scored at a 22. Assignments that are incomplete or do not follow directions will be scored at a zero.
Steps to Complete Professional Experience One:
Step One: Find an article about effective professional communication that was published in the last 18 months.
Step Two: Read the article and develop a 25 to 50-word summary. Summaries shorter than 25 words and longer than 50 will not receive credit.
Step Three: On the top of the page, there is a Link to One Drive – that link will take you to a document entitled "Professional Communication Table." Locate and click on this link.
Step four: The table requests that you provide a hyperlink to the article, your 25-50 word summary, and your name (in the employee section). Fill in the table with the requested information.
In order to receive your points for completing this task you must do the following:
Provide a viable link (not a URL) to the article.
Ensure your summary is no less than 25 and no more than 50 words.
Fill in the "Employee" section with your first and last name.
Copy the webpage link to the article you summarized and submit it to the Professional Experience 1 link in Blackboard.
In: Operations Management
I need to write a c/c++ code to find the maximum sum in those possible combinations of arrays.
There are N arrays with S elements.
ex2: 4 arrays with 3 elements.We want to find the greater number in the same column of two arrays(may possible be three or four...arrays), and sum those greater number to find the greatest sum in all of the combinations in those 4 arrays, like:
A: [50, 60, 70]
B: [80, 40, 20]
C: [30, 100, 50]
D: [75, 95, 40]
A+B = 80+60+70=210
A+C= 50+100+70=220
A+D= 75+95+70=240
B+C=80+100+50=230
B+D=80+95+40=215
C+D=75+100+50=225
240 is the greatest.
so 240 is the answer.
Is there any smart solution?
(I only have an idea about iterate all arrays to calculate all possible sum and then find the maximum.)
No brutal iteration solution.
In: Computer Science