Homework Answers

Math 58880 52480
Physics 50710 47629
Chemistry 44357 42759
Programming & Computer Science 34330 30918
Economics 34267 33209
English 12729 11462
Biology 9425 8734
Management 8270 7078
Engineering 8082 6895
History 4259 3853
Psychology 2611 2287
Geography 2457 1903
Sociology 2387 2125
Law 2080 1463
Other 2007 1890
Marketing 1915 1605
Philosophy 1405 1148
Political Science 1107 1010
French 565 528

Questions: 281 843

Answers by our Experts: 258 976

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. Let p and q be propositions


p: 4 is a rational number


q: 3 is an irrational number.



Express each of these propositions as an English sentence:


1. ¬p =


2. p v q =


3. p ^ q =


4. p→q =


5. p ↔q =




It is claimed that the average weight of babies at birth is 3.4 kg. The average weight of a random sample of 30 newly born babies was determined. It was found out that the average weight was 3.1 kg. Is there a reason to believe that the average weight of babies at birth is not 3.4 kg? Assume that the population standard deviation is 1.1 kg. Use 0.05 level of significance. 


Discuss how you would use each of the following three approaches to teach reading to




senior phase learners:




2.1. The psycholinguistic approach (15)




2.2. The functional communicative approach (15)




2.3. The broad communicative approach (15)




Diana proposed an algorithm for parsing complex mathematical expressionsspecified in an infix notation is one where an operator is present between two operandse.g.(2+5.This algorithm is also used in compiler creation in the parsing phase to generate abstract syntax treeand postfix notations.The algorithm also involves parsing expressions including parenthess and power operations.the algorithm is basically,stack based.

It is a simple example of shunting yard algorithm:

input:3+4 Add 3 to the output queue(whenever a number is read,it is add to the output).push ‘+’ onto the operator stack .Add 4 to the output queue.After readind the expression ,pop the operators off the stack and add them to the output. In these case,there only one operator,’+’.The resulting postfix notation is ‘34+’.

Your friend has requested you to help him in implementing this algorithm as he has to solve large mathmatical expressions given in infix notations

Note:the characters in the input are seperated by spaces

Ex :

i/p1:10+2*6

o/p:22


Suppose a population consists of the values 6, 7, 8 and 9 and the sample size two are drawn from this population.

a. List all possible sample size two, with replacement, and compute the sample mean in each case.

b. Construct the sampling distribution of the sample mean.

c. Construct the probability histogram of the sampling distribution of the sample mean.


Write a C++ program that creates an array “A” having 5 elements (in the main function). Then, the


program asks the user to enter values in this array. After that, the program should replace each array


element which is divisible by 3 with new value (by adding 1 to it). In the end, the main program (“main”)


shows the updated array elements in ascending order.

Write a C++ program that creates two one dimensional arrays “A” and “B” of size 20 elements each. The main


program should get the input in the array “A” from the user and initialize array “B” with values “0”. Your


program should calculate the (number -2) of each element of array “A” and should store in the square value


in corresponding positions (index) in the array “B”. In the end, the main program (main function) prints the


calculated values of array “B”. Also display the values in array B which are Odd (if any).

There are two types of fishes in a pond, A and B.there are N fishes of type A numbered from 1 to N and M.the following two methods are adopted by the fishes of type A to satisfy their hunger.

1)E1:Fish of typeA(n1) eats the fish of type B(n2).

2)E2:Fish of type A(n1) eats the fish of type A(n2) if size(n1)>size(n2).

In the above mentioned context,E1and E2 denote the respective methods and n1 and n2 are the fishes belonging to these types and Size(X) denotes the total number of fish within X.

Example:if size(L)=3 and size(K)=2 and L eats K then the resulting size(L) will be5.

It is feeding time now and the fishes are hungry.theyeat as per the given method and satiate their hunger.your task is to find and return an array defining whether which type A fishes do All type B fishes fall under.

Note: the size of all fishes initially is the same i.e,1

In case the fish is is still Alive,then the ith element should be -1.

Ex1:

i/p1:2

i/p2:3

i/p3:4

i/p4:{{1,1,1},{1,1,2},{1,2,3},{2,1,2}}

o/p:{1,1,1}


random variable X has this probability distribution:


x 0 1 2 3 4 5


P(X=x) 0.1 0.2 0.05 0.1 ? 0.3


Find f(4)



The principal of a school wants to speak with some of the students to assess their over all development including studies,most of the teachers were selecting the toppers of their classes but Mr,sam thought of an idea to select the bunch of students who did not have much difference in their marks so that he gains the reputation of a teacher who teaches well to the whole class and not just to a bunch of brilliant students.

Your are required to help mr,sam in selecting K students that can speak with principle from his class .you need to return an integer array representing the marks of the selected students sorted in ascending order.

I/p1:An integer value denoting the number of students in Mr.sam’s class.

I/p2:An integer array of size input1representing the marks of each student

I/p3:An integer K denoting the number of representatives to be

O/p:return an integer array containing the marks of K selected students sorted in ascending order.

Ex:

I/p1:10

I/p2:{950,477,55,602,881,302,859,438,551,382}

I/p3:1

O/pt:{950}


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS