Homework Answers

Math 51397 50414
Physics 44335 44333
Chemistry 40988 40988
Economics 30646 30644
Programming & Computer Science 26878 26876
English 10084 10084
Biology 8111 8109
Management 6239 6239
Engineering 6056 6056
History 3490 3489
Psychology 2129 2129
Sociology 1858 1858
Geography 1574 1574
Marketing 1443 1443
Philosophy 1001 1001
Political Science 892 891
Law 876 876
French 438 438
Other 199 199

Questions: 238 634

Answers by our Experts: 237 641

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

A 9N force F1 and a 10N force F2 act in the same direction 2i+j-2k and 4i-3j respectively.


a) Find the resultant of the two forces


b)find the total work done if the forces make the object move 2m along the vector S=i+j+k


c)what is the maximum work done that can be achieve if the forces displace the object by 1m?


d)what is unit vector along which the object will move to achieve maximum work done?


f) find F1.F2


g) find F1*F2


The owner of a restaurant that serves continental food wants to study characteristics of his customers. He decides to focus on two variables: the amount of money spent by customers and whether customers order dessert. The results from a sample of 60 customers are as follows: • Amount spent: X=$38.54, S= $7.26 • 18 customers purchased dessert. a. Construct a 95% confidence interval estimate of the population mean amount spent per customer in the restaurant.



Question:1

It is claimed that an automobile is driven in the average less than 20,000 km /year. To test this claim, a random sample of 100 auto-mobiles owners are asked to keep a record of the kilometers, they travel. Would you agree with this claim if the random sample showed an average of 23,500 kilometers and a standard deviation of 3900 kilometers. Use a 0.01 level of significance.


Question: 2

Test the hypothesis that the average content of containers of a particular lubricant is 10 liters if the contents of a random sample of 10 containers are 10.2, 9.7, 10.1, 10.3, 10.1, 9.8, 9.9, 10.4, 10.3, and 9.8 litters.

Use a 0.01 level of significance and assume that the distribution is Normal.


consider the invert_dict function from Section 11.5 of your textbook. 

# From Section 11.5 of: 

# Downey, A. (2015). Think Python: How to think like a computer scientist. Needham, Massachusetts: Green Tree Press. 


def invert_dict(d):

   inverse = dict()

   for key in d:

      val = d[key]

     if val not in inverse:

        inverse[val] = [key]

     else:

        inverse[val].append(key)

   return inverse 


Modify this function so that it can invert your dictionary. In particular, the function will need to turn each of the list items into separate keys in the inverted dictionary. 

Run your modified invert_dict function on your dictionary. Print the original dictionary and the inverted one. 

Include your Python program and the output in your Learning Journal submission. 



Python Program


Write a program to print the following, Given a word W and pattern P, you need to check whether the pattern matches the given word.The word will only contain letters(can be Uppercase and Lowercase). The pattern can contain letters, ? and *.


? : Can be matched with any single letter.

* : Can be matched with any sequence of letters (including an empty sequence).


If the pattern matches with the given word, print True else False.


Sample Input1

3

Hello *l?

Hell He?ll

Hell ?*

Sample Output1

True

False

True


Sample Input1

3

Hello Hell*

Hell He*ll

Hell hell*

Sample Output1

True

True

False


Write a program that declares a structure to store BookID, price and pages of a book. It defines two structure variables and inputs values. It displays the record of most costly book.


b. Use the fraction structure from Part a, implement four-function fraction calculator. It uses


functions for each of the four arithmetic operations. They can be called fadd(), fsub(), fmul(), and


fdiv(). Each of these functions should take two arguments of type struct fraction, and return an


argument of the same type.

Search Game

A grid of letters may contain a word hidden somewhere within it. The letters of the word may be traced from the starting letter by moving a single letter at a time, up, down, left or right. For example, suppose we are looking for the word BISCUIT in this grid:

0 1 2 3


0 B I T R


1 I U A S

2 S C V W


3 D O N E

The word starts in the top left corner, continues downwards for 2 more letters, then the letter to the right followed by 2 letters moving upwards, the final letter at the right of the penultimate one.

Write a program in which we give target word and a grid of letters as input returns a list of tuples, each tuple being the row and column of the corresponding letter in the grid (numbered from 0). If the word cannot be found, output the string Not present

input1:

after

4

a b c d

f e f g

t e r r

a b i j

Output: [(0, 0),(1, 0),(2, 0),(2, 1),(2, 2)]


input2:

search

4

s e a c

r c c c

h e e e

h e e e

output: Not Present


soap and detergents are good cleansing agents. Now research says that they microbes too. How can it be done?


 A 6.6 x 10 -6 M solution of nitric acid




LATEST TUTORIALS
APPROVED BY CLIENTS