Questions
C PROGRAMMING LANGUAGE Problem title : Bibi's Array Bibi also has an array containing N elements....

C PROGRAMMING LANGUAGE

Problem title : Bibi's Array

Bibi also has an array containing N elements. Like Lili, Bibi wants to know the highest frequency (most occurrences) and all elements which have that frequency.

Format Input

The first line contains an integer T stating the number of test cases. For each test case, the first line contains a single integer N which indicate the number of element in the array. The next line contains N integers Xi (1≤ i ≤ N ) which indicate i^th element in the array.

Format Output

Consist of T lines where each line has the format "Case #X:Y" , where X is the test case number starting at 1 and Y is the highest frequency. Next line contains all elements which have that frequency sorted in ascending order.

Constraints

1T ≤ 20

2N ≤ 20.000

1 ≤ Xi ≤ 2 x 10^5

Sample Input (standard input)

3

8

1 1 2 2 3 4 5 5

8

5 5 4 3 2 2 1 1

4

1 1 1 3

Sample Output (standard output)

Case #1: 2

1 2 5

Case #2: 2

1 2 5

Case #3: 3

1

In: Computer Science

Three independent random samples of community college students were obtained to find out how many hours...

Three independent random samples of community college students were obtained to find out how many hours the students spent each week doing math homework outside of the classroom. The samples were made up of students in pre-algebra, elementary algebra, and intermediate algebra.

PreAlg

ElemAlg

InterAlg

1

5

9

0

2

2

1

3

3

1

3

1

2

2

4

2

3

2

2.5

4

3

3

2

5

0.5

4

7

0

3

3

1

3

4

8

a. How many comparisons would be required to compare the populations two at a time?

b. If we wanted an overall significance of .05 what significance would we use in each test according to the Bonferroni correction?

c. Assuming we meet the requirements, find the p-values for each of the possible two tailed tests. PreAlg and ElemAlg: p-value= PreAlg and InterAlg: p-value= ElemAlg and InterAlg: p-value= d. What is your conclusion?

In: Statistics and Probability

This is python: #Write a function called count_positive_evens. This function #should take as input a list...

This is python:

#Write a function called count_positive_evens. This function
#should take as input a list of integers, and return as
#output a single integer. The number the function returns
#should be the count of numbers from the list that were both
#positive and even.
#
#For example:
#
# count_positive_evens([5, 7, 9, 8, -1, -2, -3]) -> 1
# count_positive_evens([2, 4, 6, 8, 10, 12, 15]) -> 6
# count_positive_evens([-2, -4, -6, -8, -10, 1]) -> 0
#
#0 should be not counted as a positive even number.
#
#Hint: Remember, even numbers are numbers that have a
#remainder of 0 when divided by 2.


#Write your function here!


#The lines below will test your code. Feel free to modify
#them. If your code is working properly, these will print
#the same output as shown above in the examples.
print(count_positive_evens([5, 7, 9, 8, -1, -2, -3]))
print(count_positive_evens([2, 4, 6, 8, 10, 12, 15]))
print(count_positive_evens([-2, -4, -6, -8, -10, 1]))

In: Computer Science

1. At a price of $4, quantity demanded is 100; and at a price of $6,...

1. At a price of $4, quantity demanded is 100; and at a price of $6, quantity demanded is 120. Using the midpoint formula, the price elasticity of demand is ________ and demand is ________.

A) 0.1; inelastic

B) 0.45; inelastic

C) -2.2; elastic

D) -10; elastic

2.  In economics, scarcity means that

A) A shortage of a particular good will cause the price to fall.

B) A production possibilities curve cannot accurately represent the trade-off between two goods.

C) Society's desires exceed resources available.

D) The market mechanism has failed.

3 . To calculate the slope of a line, find the vertical distance between two points and divide it by the horizontal distance between the same two points. TRUE OR FALSE

In: Economics

1. Here is the demand for coconuts: P            3               4             5 

1. Here is the demand for coconuts:

P            3               4             5             6            7            8            9             10           11           12           13

QD          1100      1000      900      800      700      600      500        400        300        200        100

And here is supply

P            3            4            5               6          7            8          9            10           11         12          13

QS           100        200        300        400        500        600        700        800        900        1000       1100

Identify the equilibrium price, quantity, consumer and producer surplus and show them on a graph. The graph should be pretty simple here, the main issue is finding the numbers for consumer and producer surplus. Again, let me reiterate: I WANT NUMBERS FOR CONSUMER AND PRODUCER SURPLUS! Furthermore, I want you to do this the way that I do (in other words, calculate it like it's a bunch of rectangles. Don't do the triangle thing that they do in the videos. Also, when doing this keep in mind that the width of these rectangles will not be 1 so be careful. (What is it....? )

2. Which do you think is more elastic: demand for coffee or demand for Starbucks coffee? Show the demand for both. (Make sure to say which one is more elastic, so I know that you know.)

In: Economics

1.) In rolling a pair of dice, what is the probability of a total of 4...

1.) In rolling a pair of dice, what is the probability of a total of 4 or less?

2.) A blue die and a red die are tossed together. Find the probability that the sum is less than 7, given that the blue die shows a 3.

3.) A fair coin is tossed three times. Find the probability of getting at least two tails, given that the first toss is tails.

In: Statistics and Probability

Question 4 Prove that the following language is not regular. ? = { 0 ?1 ?...

Question 4 Prove that the following language is not regular. ? = { 0 ?1 ? | ?, ? ≥ 0, ? ≠ 2? + 1 }

Question 5 Prove that the following language is not regular. ? = { ? ∈ { 0, 1, 2} ∗ | #0 (?) + #1 (?) = #2 (?) } where #? (?) denotes the number of occurrences of symbol a in string w.

In: Computer Science

This is a 4-part question. At the beginning of the current season on April 1, the...

This is a 4-part question.

At the beginning of the current season on April 1, the ledger of Sheridan Pro Shop showed Cash $3,410; Inventory $3,500; and Common Stock $6,910. The following transactions were completed during April 2022.

Apr. 5 Purchased golf bags, clubs, and balls on account from Arnie Co. $1,600, terms 4/10, n/60.
7 Paid freight on Arnie purchase $80.
9 Received credit from Arnie Co. for merchandise returned $500.
10 Sold merchandise on account to members $1,320, terms n/30. The merchandise sold had a cost of $730.
12 Purchased golf shoes, sweaters, and other accessories on account from Woods Sportswear $860, terms 2/10, n/30.
14 Paid Arnie Co. in full.
17 Received credit from Woods Sportswear for merchandise returned $60.
20 Made sales on account to members $960, terms n/30. The cost of the merchandise sold was $550.
21 Paid Woods Sportswear in full.
27 Granted an allowance to members for clothing that did not fit properly $90.
30 Received payments on account from members $1,240.

A)Journalize the April transactions using a perpetual inventory system. (If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts. Credit account titles are automatically indented when the amount is entered. Do not indent manually. Record journal entries in the order presented in the problem.)

B)Using T-accounts, enter the beginning balances in the ledger accounts and post the April transactions. (Post entries in the order of journal entries posted in part a. For accounts that have a zero balance select "4/30 Bal." from the list and enter 0 for the amount.)

C)Prepare a trial balance on April 30, 2022. (Do not list those accounts that have zero ending balance.)

SHERIDAN PRO SHOP
Trial Balance

D)Prepare an income statement through gross profit for the month of April 2022.

SHERIDAN PRO SHOP
Income Statement (Partial)

In: Accounting

237. In a university it was observed that 1% of women and 4% of men enrolled...

237. In a university it was observed that 1% of women and 4% of men enrolled were born abroad. There is also the fact that 60% of the total student population of that institution are women. If the file of a student reports that he was born in another country, what is the probability that it is a woman?


238. - if we argue that 80% of politicians in a certain country are corrupt and 20% are honest; and also, among those who are corrupt, 90% are incompetent, while the honest, 65% are competent:
A) What percentage of the competent politicians of that place are honest?
B) What is the probability that a politician is corrupt if his actions show that he is incompetent?

In: Statistics and Probability

what is the role of CTLA-4 and PD-1 in immune response?

what is the role of CTLA-4 and PD-1 in immune response?

In: Biology