Questions
Martin wants to create a program that requires the user to input 10 integers then print...

Martin wants to create a program that requires the user to input 10 integers then print the total number of even integers, highest even integer, lowest even integer, total number of odd integers, highest odd integer, and lowest odd integer. If, however, the user inputs zero (0), the program will display “You have not yet entered 10 integers.”
Below is the sample output of the program Martin created.
Enter the integers:
Integer 1: 15
Integer 2: 9
Integer 3: 71
Integer 4: 35
Integer 5: 17
Integer 6: 13
Integer 7: 63
Integer 8: 33
Integer 9: 97
Integer 10: 13
Total number of even integers : 0
Highest even integer : none
Lowest even integer : none
Total number of odd integers : 10
Highest odd integer : 97
Lowest odd integer :

In: Computer Science

Course: Introduction to software engineering Task Auction systems are a major component of the electronic marketplace...

Course: Introduction to software engineering

Task
Auction systems are a major component of the electronic marketplace that allow users at any site to sell and buy products. The sellers set up auctions for their products while the purchaser who bids the highest amount wins the right to purchase the product in an auction.

Prepare you own assumption for your eAuction, which can be B2B or B2C.

AIT Dev Center has been contact from client to develop an eAuction system. However, this is a new system for a client, BidHigh Auction Pty. Ltd. Your managing director asked you to develop system conceptual and diagram as following:

Object Oriented Design, design the new system

-Develop Object Diagrams

In: Computer Science

Suppose two players take turns playing another version of the parlor game discussed in class on...

Suppose two players take turns playing another version of the parlor game discussed in class on Tuesday. In this version, players can say any whole number between 1 and 10. The first person to get the running total to 25 wins. Do you want to go first or second? Figure out the optimal strategy for this game. Show your work.

(b) (5 points) ECN-322 only for this part: Suppose two players take turns playing another version of the parlor game discussed in class on Tuesday. In this version, Player 1 can say any whole number from 1 to 5. Player 2 can say any whole number from 1 to 6. Player 1 goes first. The first person to get the running total to 25 wins. With perfect play, is Player 1 going to win, or is Player 2 going to win? Figure out the optimal strategy for the winner. Show your work.

In: Economics

Suppose in the gambler’s ruin problem that the probability of winning a bet depends on the...

Suppose in the gambler’s ruin problem that the probability of winning a bet depends on the gambler’s present fortune. Specifically, suppose that αi is the probability that the gambler wins a bet when his or her fortune is i. Given that the gambler’s initial fortune is i, let P(i) denote the probability that the gambler’s fortune reaches N before 0.

(a) Derive a formula that relates P(i) to P(i − 1) and P(i + 1).

(b) Using the same approach as in the gambler’s ruin problem, solve the equation of part (a) for P(i).

(c) Suppose that i balls are initially in urn 1 and N − i are in urn 2, and suppose that at each stage one of the N balls is randomly chosen, taken from whichever urn it is in, and placed in the other urn. Find the probability that the first urn becomes empty before the second.

In: Statistics and Probability

a certain state has the highest high school graduation rate of all states at 80% A....

a certain state has the highest high school graduation rate of all states at 80%

A. In a random sample of 20 high school students from the state, what is the probability that 17 will graduate?

B. In a random sample of 20 high school students what is the probability that 16 or fewer will graduate?

C. What is the probability that at least 17 high school students in our sample of 20 will graduate?

In: Statistics and Probability

How would gravitational mass and inertial mass change in an elevator (if at all)? Why is...

How would gravitational mass and inertial mass change in an elevator (if at all)? Why is this true?

In: Physics

Problem 1: Given an array A[0 ... n-1], where each element of the array represents a...

Problem 1:

Given an array A[0 ... n-1], where each element of the array represents a vote in the election. Assume that each vote is given as integers representing the ID of the chosen candidate. Write the code determining who wins the election.

Problem 2:

How do we find the number which appeared maximum number of times in an array?

( Use Java and an original code )

In: Computer Science

Need these written in Java script please Problem 1: Given an array A[0 ... n-1], where...

Need these written in Java script please

Problem 1:

Given an array A[0 ... n-1], where each element of the array represents a vote in the election. Assume that each vote is given as integers representing the ID of the chosen candidate. Write the code determining who wins the election.

Problem 2:

How do we find the number which appeared maximum number of times in an array?

In: Computer Science

(1a)The car lift at your neighborhood garage is designed such that the radii of the input...

(1a)The car lift at your neighborhood garage is designed such that the radii of the input piston and output plunger are 7.70 10-3 m and 0.120 m, respectively. The garage manager likes to use a hydraulic oil in the lift that has a density of 7.80 102 kg/m3. Compared to the weight of the output plunger, the weight of the input piston is negligible. Determine the force Fi needed at the input piston in order to support the 13,000-N combined weight of a car and the output plunger under the following conditions. (A) The bottom surfaces of the input piston and output plunger are at the same level. (B)The bottom surface of the input piston is 2.40 m below that of the output plunger.

(1b)The pressure at the bottom of a cylindrical container with a cross-sectional area of 48.0 cm2 and holding a fluid of density 500 kg/m3 is 115 kPa. (A) Determine the depth of the fluid. (B)Determine the pressure at the bottom of the container if an additional 2.20 10-3 m3 of this fluid is added to the container. (Give your answer to at least 3 significant figures.)

(1c)(a) Suppose a meter stick made of steel and one made of invar are the same length at 0°C. What is their difference in length at 48.0°C? The coefficient of thermal expansion is 12 ✕ 10−6/°C for steel and 0.9 ✕ 10−6/°C for invar. (B)Repeat the calculation for two 18.5-m-long surveyor's tapes.

In: Physics

Suppose that the IQ of adults is normally distributed with a mean of 100 and standard...

Suppose that the IQ of adults is normally distributed with a mean of 100 and standard deviation of 15.

(a) What IQ score distinguishes the highest 10%?

(b) What is the probability that a randomly selected person has an IQ score between 91 and 118?

(c) Suppose people with IQ scores above 125 are eligible to join a high-IQ club. Show that approximately 4.78% of people have an IQ score high enough to be admitted to this particular club.

(d) Let X be the number of people in a random sample of 25 who have an IQ score high enough to join the high-IQ club. What probability distribution does X follow? Justify your answer.

(e) Using the probability distribution from part (d), find the probability that at least 2 people in the random sample of 25 have IQ scores high enough to join the high-IQ club. (f) [3 marks] Let L be the amount of time (in minutes) it takes a randomly selected applicant to complete an IQ test. Suppose L follows a uniform distribution from 30 to 60. What is the probability that the applicant will finish the test in less than 45 minutes?

In: Statistics and Probability