Python
Compose a function mc_pi( n ) to estimate the value of ? using the Buffon's Needle method. n describes the number of points to be used in the simulation. mc_pi should return its estimate of the value of ? as a float. Your process should look like the following:
1. Prepare an array of coordinate pairs xy. This should be of shape ( n,2 ) selected from an appropriate distribution (see notes 1 and 2 below).
2. Calculate the number of coordinate pairs inside the circle's radius. (How would you do this mathematically? Can you do this in NumPy without a loop?—although a loop is okay.)
3. Calculate the ratio ncirclensquare=AcircleAsquarencirclensquare=AcircleAsquare, which implies (following the development above), ??4ncirclensquare??4ncirclensquare.
4. Return this estimate of ??.
5. You may find it edifying to try the following values of n, and compare each result to the value of math.pi: 10, 100, 1000, 1e4, 1e5, 1e6, 1e7, 1e8. How does the computational time vary? How about the accuracy of the estimate of ???
You will need to consider the following notes:
1. Which kind of distribution is most appropriate for randomly sampling the entire area? (Hint: if we could aim, it would be the normal distribution—but we shouldn't aim in this problem!)
2. Since numpy.random distributions accept sizes as arguments, you could use something likenpr.distribution( n,2 ) to generate coordinate pairs (in the range [0,1)[0,1) which you'll then need to transform)—but use the right distribution! Given a distribution from [0,1)[0,1), how would you transform it to encompass the range [?1,1)[?1,1)? (You can do this to the entire array at once since addition and multiplication are vectorized operations.)

Answers

Answer 1

Below is a possible implementation of the mc_pi() function in Python:

What is the Python about?

python

import numpy as np

def mc_pi(n):

   """

   Estimate the value of pi using Buffon's Needle method.

   

   Args:

   - n: int, number of points to be used in the simulation

   

   Returns:

   - estimate: float, estimated value of pi

   """

   # Generate n random coordinate pairs in the range [0, 1) using numpy.random.rand

   xy = np.random.rand(n, 2)

   

   # Transform the coordinate pairs to the range [-1, 1)

   xy = 2 * xy - 1

   

   # Calculate the distance from the origin for each coordinate pair

   distance = np.sqrt(xy[:, 0]**2 + xy[:, 1]**2)

   

   # Count the number of coordinate pairs inside the circle's radius (i.e., distance <= 1)

   ncircle = np.sum(distance <= 1)

   

   # Calculate the ratio of the area of the circle to the area of the square

   ratio = ncircle / n

   

   # Estimate the value of pi as 4 times the ratio

   estimate = 4 * ratio

   

   return estimate

You can call this function with different values of n to estimate the value of pi using Buffon's Needle method. For example:

python

n = 10000

estimate = mc_pi(n)

print("Estimated value of pi for n =", n, ":", estimate)

Therefore, You can also loop through different values of n to compare the computational time and accuracy of the estimate of pi. Keep in mind that a larger value of n will generally result in a more accurate estimate of pi, but may also require more computational time.

Read more about Python here:

https://brainly.com/question/26497128

#SPJ1


Related Questions

#In the racing video game Mario Kart, up to 12 players
#can race against each other. At the end of each race,
#players receive points based on where they finished in
#the race. At the end of some number of races, the player
#with the most points wins.
#
#In this problem, let's assume only 4 players are playing,
#and that they are going to complete 4 races. In each race,
#whoever finishes first gets 5 points; second place gets
#3 points; third place gets 2 points; and fourth place gets
#1 point.
#
#Write a function called find_winner. find_winner will
#take as input a list of four 4-tuples. Each 4-tuple
#represents the finishing order for a particular race.
#Player 1's finishing place is in index 0; Player 2 in
#index 1; Player 3 in index 2; and Player 4 in index 3.
#
#For example: (3, 4, 2, 1) would indicate that Player 1
#came in 3rd, Player 2 came in 4th, Player 3 came in 2nd,
#and Player 4 came in 1st.
#
#find_winner should return the winner of the four-race
#series with the string "Player X wins!", where X is
#replaced by the winning player's number. If two or more
#players tie for first, find_winner should just return
#the string "It's a tie!"
#
#For example:
#
# race_list = [(4, 3, 2, 1), (3, 2, 4, 1),
# (4, 1, 3, 2), (2, 4, 3, 1)]
# find_winner(race_list) -> "Player 4 wins!"
#
#In the example above, Player 4 would have 18 points:
#5 points for each first-place finish, 3 points for
#the second-place finish. Player 3 would have 8 points;
#Player 2 would have 11 points; and Player 1 would have
#7 points. Therefore, Player 4 would win.
#Write your function here!
#Below are some lines of code that will test your function.
#You can change the value of the variable(s) to test your
#function with different inputs.
#
#If your function works correctly, this will originally
#print:
#Player 4 wins!
#It's a tie!
#Player 1 wins!
race_list_1 = [(4, 3, 2, 1), (3, 2, 4, 1), (4, 1, 3, 2), (2, 4, 3, 1)]
print(find_winner(race_list_1))
race_list_2 = [(3, 4, 2, 1), (1, 4, 2, 3), (4, 2, 3, 1), (2, 3, 1, 4)]
print(find_winner(race_list_2))
race_list_3 = [(3, 1, 2, 4), (1, 3, 4, 2), (1, 3, 2, 4), (1, 3, 4, 2)]
print(find_winner(race_list_3))
**WRITTEN IN PYTHON 3** Please explain code as well.

Answers

We can start by defining the function find_winner which takes a list of 4-tuples as input

def find_winner(race_list):

The Program

# We will create a dictionary to store the total points of each player

player_points = {1: 0, 2: 0, 3: 0, 4: 0}

# We will iterate over each race in the list

for race in race_list:

   

   # We will iterate over each player's position in the race

   for i, position in enumerate(race):

       

       # We will add points to the player's total based on their finishing position

       if position == 1:

           player_points[i+1] += 5

       elif position == 2:

           player_points[i+1] += 3

      elif position == 3:

           player_points[i+1] += 2

       elif position == 4:

           player_points[i+1] += 1

           

# We will find the maximum number of points among all players

max_points = max(player_points.values())

# We will create a list of players who have scored the maximum points

winners = [k for k, v in player_points.items() if v == max_points]

# We will check if there is a tie for first place

if len(winners) > 1:

   return "It's a tie!"

else:

   return f"Player {winners[0]} wins!"

Testing the function with sample inputs

race_list_1 = [(4, 3, 2, 1), (3, 2, 4, 1), (4, 1, 3, 2), (2, 4, 3, 1)]

print(find_winner(race_list_1)) # Output: Player 4 wins!

race_list_2 = [(3, 4, 2, 1), (1, 4, 2, 3), (4, 2, 3, 1), (2, 3, 1, 4)]

print(find_winner(race_list_2)) # Output: It's a tie!

race_list_3 = [(3, 1, 2, 4), (1, 3, 4, 2), (1, 3, 2, 4), (1, 3, 4, 2)]

print(find_winner(race_list_3)) # Output: Player 1 wins!

Read more about python here:

https://brainly.com/question/26497128

#SPJ1

An LC series circuit has a voltage source given by E(t)=30sin50t V, an inductor of 2 H, and a capacitor of 0.02 F (but no resistor). What is the current in this circuit for t>0 if at t=0, I(0)=q(0)=0?

Answers

To solve this problem, we first need to find the equation for the current in the LC series circuit. We can use the formula:

I(t) = (E / Z) * sin(wt - phi)

where E is the voltage source (given as 30sin50t), Z is the impedance of the circuit, w is the angular frequency (w = 2pi*f), and phi is the phase angle.

To find the impedance of the series circuit, we need to calculate the reactance of the inductor and the capacitor. The reactance of an inductor is given by XL = wL, where L is the inductance (2 H in this case). The reactance of a capacitor is given by XC = 1 / (wC), where C is the capacitance (0.02 F in this case).

Using these formulas, we can calculate the impedance of the circuit:

Z = sqrt[(XL - XC)^2 + R^2] = sqrt[(wL - 1/(wC))^2 + 0^2]

Substituting the values given in the problem, we get:

Z = sqrt[(2*pi*50*2 - 1/(2*pi*50*0.02))^2] = 122.5 ohms

Now we can plug in the values for E and Z into the formula for the current:

I(t) = (30sin50t / 122.5) * sin(50t - phi)

To find the phase angle, we need to find the initial conditions at t=0. Since I(0) = q(0) = 0, we know that the capacitor starts out fully discharged and there is no current flowing in the circuit. Therefore, the phase angle is 0.

Finally, we can simplify the equation for the current:

I(t) = (0.244sin50t) A

Therefore, the current in the LC series circuit for t>0 is given by I(t) = 0.244sin50t A.

Learn more about series circuit: https://brainly.com/question/19865219

#SPJ11

like function ‘fork’ in the process api, function ‘pthread_create’ creates a clone of the current thread.a. true b. false

Answers

The statement "Like function ‘fork’ in the process API, function ‘pthread_create’ creates a clone of the current thread" is True (A). The C fork() function is a primary method of process creation of an operating system like Unix.

The fork() is used for creating a new copy of the calling function. The newly created process is known as the Child process and the process from which the child process is created is known as the parent process. The C library defines fork(). It is the UNIX/Linux-specific system that calls to create a process, on Linux, etc. so when you do if(!fork()) it means definitely child process because! 0 == 1 i.e. if the condition is true and it will execute the statements inside the if(!fork()). A thread is a basic unit of execution of any process. A program comprises many processes and all the processes comprise much simpler units known as threads. So, the thread can be referred to as the basic unit of a process or it is the simpler unit that tother makes the CPU utilization. The fork is nothing but a new process that looks exactly like the old or the parent process but still, it is a different process with a different process ID and its own memory. Threads are lightweight processes that have less overhead. In computer programming, a thread is placeholder information associated with a single use of a program that can handle multiple concurrent users. From the program's point-of-view, a thread is an information needed to serve one individual user or a particular service request.The function 'fork' is used to create a new process, whereas 'pthread_create' is used to create a new thread within the same process. Both functions result in the creation of a clone of the current thread or process.

Learn more about the thread: https://brainly.com/question/31565584

#SPJ11

given the model x - (μ+ 2)x + (2μ + 5)x = 0 1. find the value/range of parameter for which the system is a. stable (all poles are on the L.H.P.) b. Neutrally stable (2 identical real poles) c. Unstable (At least 1 pole is on the R.H.P) 2. For the stable case, for what value/range of u is the system a. Underdamped (the poles are complex numbers with negative real part) b. Overdamped (the poles are negative real numbers)

Answers

1.

a) The system is stable for 0 < μ < 2

b) The system is neutrally stable for μ = 2

c) The system is unstable for μ > 2

2.

a) For the stable case, the system is underdamped for 0 < μ < 1

b) For the stable case, the system is overdamped for μ > 1

1(a). How to find the value/range of the parameter μ for which the system is stable?

For the system to be stability, all poles must lie on the L.H.P, i.e., Re(p) < 0. Solving the given equation for the characteristic equation, we get p^2 - (μ+ 2)x + (2μ + 5) = 0. Applying the Routh-Hurwitz stability criterion, we get the range of values of μ for which the system is stable to be μ > 1/2.

1(b). How to find the value/range of the parameter μ for which the system neutrally stable?

For the system to be neutrally stable, it must have two identical real poles. For this to occur, the discriminant of the characteristic equation must be equal to zero. Solving the quadratic equation formed from the discriminant, we get μ = -1/2.

1(c). How to find the value/range of the parameter μ for which the system unstable?

For the system to be unstable, at least one pole must lie on the R.H.P, i.e., Re(p) > 0. Thus, the system is unstable for μ < -1/2.

2(a). How to find Underdamped (the poles are complex numbers with negative real part)?

For the stable case (μ > 1/2), the nature of the poles depends on the value of μ.

The system is underdamped when 0 < μ < 1.

2(b). How to find Overdamped (the poles are negative real numbers)?

The system is overdamped when μ > 1.

Learn more about stability

brainly.com/question/30244458

#SPJ11

Measurement of total current is accomplished with the ammeter in series with source voltage. True False.

Answers

True

The measurement of total current is accomplished with the ammeter connected in series with the source voltage. This allows the ammeter to measure the current flowing through the circuit. When measuring current on circuits with voltage values greater than 30 V or where “breaking” the circuit is impractical or dangerous, a clamp-on ammeter or amprobe can be used. These ammeters have two spring-loaded expandable jaws that allow you to clamp around a single conductor

To know more about the measurement of total current, please visit:

https://brainly.com/question/61398

#SPJ11

discuss the best practices of erp adoption that can be inferred from elf atochem's case

Answers

Elf Atochem's case study provides us with several best practices for ERP adoption that other organizations can learn from. These practices include:

1. Understanding the Business Processes: The first and foremost step towards successful ERP adoption is understanding the business processes. It is essential to identify the areas where ERP can bring improvements and align the system's configuration accordingly.

2. Top-Down Approach: The management's support and involvement are critical for the successful implementation of ERP. Elf Atochem's top-down approach, in which the management was involved from the initial stage, ensured the alignment of the system's configuration with the organization's strategic objectives.

3. Project Management: A well-planned and structured project management approach is essential for ERP implementation. Elf Atochem's project management team established a clear project scope, objectives, timelines, and milestones to ensure the project's successful delivery.

4. Training and Support: The success of ERP implementation is highly dependent on the users acceptance and their ability to use the system effectively. Elf Atochem's training program and post-implementation support ensured that the users were adequately trained and supported, leading to successful adoption.

5. Continuous Improvement: ERP adoption is an ongoing process that requires continuous improvement to ensure it meets the organization's changing needs. Elf Atochem's continuous improvement approach, where the system was regularly updated and enhanced, ensured its alignment with the organization's evolving needs.

In conclusion, Elf Atochem's case study provides valuable insights into the best practices of ERP adoption, including understanding business processes, a top-down approach, project management, training and support, and continuous improvement. Other organizations can learn from these practices to ensure the successful adoption and implementation of ERP.

to know more about Business Processes:

https://brainly.com/question/5396031

#SPJ11

The corrosion protection surrounding the unbonded length of the tendon

Answers

The corrosion protection surrounding the unbonded length of the tendon is essential to ensure its durability and longevity. that prevents such produced goods from entering the domestic economy.

Without proper protection, the surrounding environment can cause corrosion and damage to the tendon, leading to potential safety hazards and structural issues. Therefore, it is crucial to implement appropriate measures, such as coatings, to protect the tendon and prevent corrosion.

A protective tariff is a type of tariffs and taxes that prevents such produced goods from entering the domestic economy or from travelling within the region.

Domestic enterprises appear to be manufacturing goods for immediate consumption that are built from the income-generating components of such families.

Learn more about protection here

https://brainly.com/question/23421785

#SPJ11

Determine the liquidus temperature, solidus temperature, and freezing range for the following NiO-MgO ceramic compositions: (a) NiO-30 mol% MgO; (b) NiO-45 mol% MgO; (c) NiO-60 mol% MgO; and (d) NiO-85 mol% MgO.

Answers

The liquidus temperature, solidus temperature, and freezing range for NiO-30 mol% MgO are 2350°C, 2170°C and 180°C, for NiO-45 mol% MgO are 2480°C, 2280°C and 200°C  respectively.

The liquidus temperature, solidus temperature, and freezing range of a NiO-MgO ceramic composition depend mainly on the MgO content. The higher the MgO content is, the lower the liquidus temperature, solidus temperature, and freezing range will be.

Liquidus Temperature: It is temperature above which material is in complete liquid state.

Solidus Temperature: It is the temperature below which material is in complete solid state.

Freezing Range: It is the difference of liquidus temperature and solidus temperature.

Freezing range = Liquidus temperature - Solidus temperature

a) NiO-30 mol %Mgo

The meaning of above representation is 30 mol%Mgo and 70%Nio

Draw a vertical line from 30 mol%Mgo

Name the intersection point of vertical line with liquidus curve as 1, and that with solidus curve as 2.

Liquidus temperature is T₁=2350°C

Solidus temperature is T₂ = 2170°C

Freezing range = T₁-T₂

= 2350-2170

= 180°C

b) Nio - 45 mol %Mgo

Liquidus temperature is T₃ = 2480°C

Solidus temperature is T₄ = 2280°C

Freezing range = T₃-T₄

= 2480-2280

= 200°C

c) Nio-45 mol%Mgo

Liquidus temperature is T₅ = 2600°C

Solidus temperature is T₆ = 2400°C

Freezing range = T₅-T₆

= 2600-2400

= 200°C

d) Nio-45mol%Mgo

Liquidus temperature is T₇ = 2725°C

Solidus temperature is T₈ = 2625°C

Freezing range T₇-T₈

= 2725-2625

= 100°C

Therefore, the liquidus temperature, solidus temperature, and freezing range for NiO-30 mol% MgO are 2350°C, 2170°C and 180°C, for NiO-45 mol% MgO are 2480°C, 2280°C and 200°C  respectively.

Learn more about the ceramic compositions here:

https://brainly.com/question/33302828.

#SPJ12

A={x∈Z:x is a prime number }B={4,7,9,11,13,14} Select the set corresponding to : A∩B O∅ O {7,11,13} O{7,9,11,13} O{4,7,9,11,13,14}

Answers

The intersection of sets A and B, represented by A∩B, includes all elements that are common to both A and B is A∩B = {7, 11, 13}.

A = {x ∈ Z: x is a prime number}
B = {4, 7, 9, 11, 13, 14}
Comparing the two sets, we find that the prime numbers common to both A and B are 7, 11, and 13.
Therefore, A∩B = {7, 11, 13}.

Any natural number higher than 1 that is not the sum of two smaller natural numbers is referred to be a prime number. A composite number is a natural number greater than one that is not prime. For instance, the number 5 is prime because there are only two ways to write it as a product, 1 5 and 5 1.

A whole number higher than 1 whose only elements are 1 and itself is referred to as a prime number. A whole number that may be split evenly into another number is referred to as a factor. 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29 are the first few prime numbers. Composite numbers are those that have more than two components.

To know more about prime number, click here:

https://brainly.com/question/29629042

#SPJ11

all of the following organizations do business across national borders except:
a. International organizations
b. Domestic organizations
c. Multinational organizations
d. Global organizations

Answers

The correct answer is b. Domestic organizations.

A Domestic organization is a business that operates within its own nation. A domestic business may have to pay tariffs or other fees on the goods it imports and is frequently subject to different taxation than a non-domestic firm. A local company may be required to pay fees or tariffs on imported goods in addition to not being subject to the same taxation as a foreign firm.

Domestic commerce occurs when the buyer and seller are from the same nation, hence the trade agreement is based on the norms, laws, and practises of that nation.

Domestic organizations operate only within the borders of their home country, while international, multinational, and global organizations all conduct business across national borders. So, the option is b.

Learn more about "Domestic organizations" at: https://brainly.com/question/30699146

#SPJ11

Steam enters a 1.6-cm- diameter pipe at 80 bar and 600 degree celsius with a velocity of 150 m/s. Determine the mass flow rate, in kg/s.

Answers

The mass flow rate of steam is approximately 4.51 kg/s.

How to determine the mass flow rate?

To determine the mass flow rate of steam, we need to use the mass conservation equation, which is given as:

mass flow rate = density x area x velocity

We can find the density of steam using the steam tables, which give us the density at a given pressure and temperature. For the given conditions, the density of steam is approximately 11.9 kg/m^3.

The area of the pipe can be calculated using the formula for the area of a circle:

area = pi x (diameter/2)^2

Substituting the given values, we get:

area = pi x (1.6/2)^2 = 2.01 x 10^-3 m^2

Finally, we can calculate the mass flow rate as:

mass flow rate = density x area x velocity

mass flow rate = 11.9 kg/m^3 x 2.01 x 10^-3 m^2 x 150 m/s

mass flow rate = 4.51 kg/s

Therefore, the mass flow rate of steam is approximately 4.51 kg/s

Learn more about mass flow rate

brainly.com/question/30763861

#SPJ11

estimate the maximum velocity & the maximum mach number of the cj-1 flying at sea level. note that sea level speed of sound is 1,117 ft/sec

Answers

The maximum speed is 493 mph and the maximum Mach number of the CJ-1 flying at sea level is 0.65.

Estimating the maximum velocity & the maximum mach number

To estimate the maximum velocity and maximum Mach number of the CJ-1 flying at sea level, we first need to know the maximum speed of the aircraft in feet per second (fps).

According to the manufacturer's specifications, the maximum speed of the CJ-1 is 428 knots, which is equivalent to approximately 493 mph or 727 fps.

To calculate the maximum Mach number, we need to divide the maximum speed by the speed of sound at sea level.

The speed of sound at sea level is approximately 1,117 fps.

Therefore, the maximum Mach number of the CJ-1 flying at sea level can be estimated as:

Maximum Mach number = Maximum speed / Speed of sound at sea level

= 727 fps / 1,117 fps

= 0.65 (rounded to two decimal places)

So, the maximum Mach number of the CJ-1 flying at sea level is 0.65.

Read more about velocity at

https://brainly.com/question/13363067

#SPJ1

The maximum velocity of the CJ-1 flying at sea level can be estimated by calculating the maximum speed at which it can fly without exceeding the speed of sound. Since the sea level speed of sound is 1,117 ft/sec, the maximum velocity of the CJ-1 flying at sea level would be 1,117 ft/sec.

To estimate the maximum Mach number of the CJ-1 flying at sea level, we need to divide the maximum velocity by the speed of sound. Therefore, the maximum Mach number of the CJ-1 flying at sea level would be:
Maximum Mach Number = Maximum Velocity / Speed of Sound
Maximum Mach Number = 1,117 ft/sec / 1,117 ft/sec
Maximum Mach Number = 1

Now, we know that velocity is maximum when y=0, i.e., displacement is zero and acceleration is zero, which means the system is in equilibrium. Therefore, at a point in simple harmonic motion, the maximum velocity can be calculated using the formula v=Aω.
Therefore, the estimated maximum Mach number of the CJ-1 flying at sea level would be 1.

learn more about maximum velocity here:

https://brainly.com/question/30703881

#SPJ11

10. The crank AB is rotating in the clockwise direction with a constant angular velocity of 2000RPM. What is the velocity of the piston C at the instant shown? 50mm A -175mm 50mm

Answers

To determine the velocity of piston C, we need to use the concept of instantaneous center of zero velocity.

At the instant shown, point B is the instantaneous center of zero velocity for the connecting rod BC. Therefore, the velocity of point C is perpendicular to line BC and passes through point B.

Let's draw a diagram to better visualize the problem:

     A (50mm)

     o

      \

       \

        \

         o B (-175mm)

           \

            \

             \

              o C (50mm)

From the given information, we know that the angular velocity of crank AB is 2000 RPM. Let's convert this to radians per second:

2000 RPM * (2π radians/revolution) * (1/60 seconds/minute) = 209.44 radians/second

The velocity of point B is equal to the velocity of point A, which is perpendicular to line AB and passes through point A. The velocity of point A can be calculated as:

VA = ω * rA

where ω is the angular velocity in radians per second and rA is the distance from point A to the center of rotation (which is point O in this case). Since rA = 50mm, we have:

VA = 209.44 radians/second * 0.05 meters = 10.47 meters/second

The velocity of point C can be calculated as:

VC = VB + BC

where VB is the velocity of point B and BC is the velocity of point C relative to point B. Since point B is the instantaneous center of zero velocity, we know that the velocity of point B is zero. Therefore:

VB = 0

To calculate the velocity of point C relative to point B, we can use the formula:

BC = rBC * ωBC

where rBC is the length of the connecting rod BC and ωBC is the angular velocity of BC relative to AB. Let's first calculate the length of BC using the Pythagorean theorem:

BC^2 = AB^2 + AC^2 - 2 * AB * AC * cos(θ)

where θ is the angle between AB and AC. From the diagram, we can see that θ is equal to:

θ = 180° - φ

where φ is the angle between AB and the horizontal axis. Since AB is horizontal, we have:

θ = 180° - (-90°) = 270°

Using the law of cosines, we can calculate the length of BC as:

BC^2 = 175^2 + 50^2 - 2 * 175 * 50 * cos(270°) = 32725

BC = sqrt(32725) = 181.05 mm

To calculate ωBC, we can use the formula:

ωBC = (ωAB * sin(θ)) / sin(φ)

where ωAB is the angular velocity of AB and φ is the angle between AB and the line passing through points A and B. From the diagram, we can see that φ is equal to:

φ = 180° - θ

φ = 180° - 270° = 90°

Therefore:

ωBC = (209.44 radians/second * sin(270°)) / sin(90°) = -209.44 radians/second

(Note that the negative sign indicates that BC is rotating in the opposite direction to AB.)

Now we can calculate the velocity of point C as:

VC = VB + BC = 0 + 181.05 mm * (-209.44 radians/second) = -37.94 meters/second

Therefore, the velocity of piston C at the instant shown is -37

Learn more about here:

https://brainly.com/question/13108309

#SPJ11

Show that the following grammar is ambiguous: S → AB | aaaB, A → a | Aa, B → b

Answers

An ambiguous grammar is one that can generate more than one parse tree for a single string in the language. The given grammar is:Since we found a string, "aaab", that has two different parse trees, we can conclude that the given grammar is indeed ambiguous.

S → AB | aaaB
A → a | Aa
B → b
To show that this grammar is ambiguous, we'll find a string that has multiple parse trees. Let's consider the string "aaab". There are two ways to derive this string:
1) S → AB → AaB → aaB → aaab (using rules S → AB, A → Aa, A → a, and B → b)
2) S → aaaB → aaab (using rules S → aaaB and B → b)

To learn more about grammar click the link below:

brainly.com/question/30908313

#SPJ11

the amplifier has a cmrr of 80 db and a differential mode gain of 40 db What is the common-mode gain of the amplifier in dB?

Answers

The common-mode gain of the amplifier is -6.02 dB.

To find the common-mode gain of the amplifier in dB, we can use the formula:
Common-mode gain = Differential mode gain / CMRR
Substituting the given values, we get:

Common-mode gain = 40 dB / 80 dB
Common-mode gain = 0.5
Converting to decibels, we use the formula:
Common-mode gain (dB) = 20 log (Common-mode gain)
Substituting the value, we get:
Common-mode gain (dB) = 20 log (0.5)
Common-mode gain (dB) = -6.02 dB
Therefore, the common-mode gain of the amplifier is -6.02 dB.

To know more about  the amplifier, please visit:

https://brainly.com/question/30444175

#SPJ11

Drag each item to its correct category in the MIS Infrastructures chart. MIS Infrastructures 1. Information MIS Infrastructure; Supports Operations 2. Agile MIS Infrastructure; Supports Change 3. Sustainable MIS Infrastructure;Supports Sustainability. -Scalability -Usability -Backup -Availability Accessibility -Cloud Computing -Recovery -Disaster Recovery -Portability -Business Continuity Planning -Reliability -Virtualization -Grid Computing -Maintainability

Answers

Information MIS Infrastructure: Usability, Accessibility, Reliability, Availability, and Scalability

Agile MIS Infrastructure:
-Virtualization
-Cloud Computing
-Portability
-Grid Computing

Sustainable MIS Infrastructure:
-Backup
-Recovery
-Disaster Recovery
-Maintainability
-Business Continuity Planning

An Agile MIS Infrastructure is a network of hardware, software, and communication tools that facilitates the sharing of information and resources among the many teams inside a company.

A corporation can increase its computer resources while reducing its reliance on hardware and energy use by using sustainable MIS infrastructure.

To know more about Agile MIS Infrastructure, click here:

https://brainly.com/question/30899411

#SPJ11

A rectangular cathode with the dimensions width = 3.5 mm and length = 37 mm glows at a temperature of 1800K in a vacuum tube. The work functionof the cathode is & = 2.5 eV and the emission constant is 3E4 Am-2K-2. What is the maximum (saturation) current that can be extracted from thiscathode?Hint: If you use the Boltzmann constant in eV enter at least 5 significant digits (i.e. use 8.6174E-5 eV K-1)

Answers

Answer:

16.12 A

Explanation:

The maximum (saturation) current that can be extracted from the cathode can be calculated using the Richardson-Dushman equation. The equation is given by:

Js = AT^2exp(-W/kT)

where Js is the saturation current density, A is the emission constant, T is the temperature of the cathode in Kelvin, W is the work function of the cathode in eV, k is the Boltzmann constant in eV/K.

Substituting the given values into the equation we get:

Js = 3E4 * 1800^2 * exp(-2.5 / (8.617333262145E-5 * 1800))

Js = 1.246E8 A/m^2

The area of the cathode is given by width * length = 3.5E-3 * 37E-3 = 0.0001295 m^2.

Therefore, the maximum (saturation) current that can be extracted from this cathode is given by Js * Area = 1.246E8 * 0.0001295 = 16.12 A. So, the maximum current that can be extracted from this cathode is 16.12 A.

a commercial airliner has a dry mass of the aircraft 600 t and has a range of
9000 km using 150 t of hydrocarbon fuel. estimate the range of the aircraft
when burning the same volume of hydrogen (both gaseous and liquid). the
hydrocarbon heating value is 43,000 kj/kg and its density is 804 kg/m3
. the
gaseous and liquid hydrogen has heating value of 120 mj/kg. density of
liquid and gaseous hydrogen is 70 kg/m3 and 0.08 kg/m3.

Answers

The range of the aircraft when burning the same volume of liquid hydrogen is, 76.728km.

The range of the aircraft when burning the same volume of gaseous hydrogen is, 0.0885km

How to calculate the value

The range of the aircraft when burning the same volume of liquid hydrogen is:

= 0.82868 × 43000 × (In 613.0597/600)

= 76.728km

Also, the range of the aircraft when burning the same volume of gaseous hydrogen is, 0.0885km

Learn more about hydrogen on

https://brainly.com/question/24433860

#SPJ1

data transfer speed of usb calculation problems with answers

Answers

It will take approximately 3.2 seconds to transfer a 2 GB file using a USB 3.0 flash drive with a maximum data transfer speed of 5 Gbps.

Terms: Data transfer speed, USB (Universal Serial Bus), calculation, problem, answer

Problem: A USB 3.0 flash drive has a maximum data transfer speed of 5 Gbps (gigabits per second). If you need to transfer a 2 GB (gigabytes) file, how long will it take to transfer the file at this speed?

Answer: First, we need to convert the file size from gigabytes (GB) to gigabits (Gb) since the data transfer speed is given in gigabits per second. There are 8 bits in a byte, so:

2 GB * 8 = 16 Gb

Now, we can calculate the time it takes to transfer the 2 GB file:

Time = File size / Data transfer speed
Time = 16 Gb / 5 Gbps
Time = 3.2 seconds

Learn More about data transfer here :-

https://brainly.com/question/29980052

#SPJ11

A load resistor connected to a battery with an internal resistance of .06 ohm. The load voltage is 12v. The open terminal voltage of the battery is 12.8v. Determine the load resistance

Answers

The load resistance is approximately 0.06Ω.

To determine the load resistance, we can use the formula:

Load resistance = (Load voltage / Current) - Internal resistance

We know the load voltage is 12V and the open terminal voltage of the battery is 12.8V. This means that there is a voltage drop across the internal resistance of the battery:

Voltage drop = Open terminal voltage - Load voltage
Voltage drop = 12.8V - 12V
Voltage drop = 0.8V

We can now calculate the current flowing through the circuit:

Current = Load voltage / Load resistance
Current = 12V / Load resistance

Using Ohm's law, we can also calculate the current as:

Current = (Open terminal voltage - Voltage drop) / Total resistance
Current = (12.8V - 0.8V) / (Load resistance + Internal resistance)
Current = 12V / (Load resistance + 0.06Ω)

Setting these two expressions for current equal to each other, we get:

12V / Load resistance = 12V / (Load resistance + 0.06Ω)

Simplifying this equation, we get:

Load resistance = 0.06Ω

Learn more about load resistance here:-

https://brainly.com/question/13251472

#SPJ11

A 1 lb ball A is traveling horizontally at 20 ft/s when it strikes a 10 lb block B that is at rest. If the coeficient of retitution between A and B is e = .6 and the coeficient of kinetic friction between the block and the plane is .4 determin the time it takes for block B to stop sliding.

Answers

It takes 0.62 seconds for block B to stop sliding by using the laws of momentum.


Determine the initial momentum of ball A before the collision. Since the ball is traveling horizontally, its momentum is given by:
p1 = m1*v1 = 1 lb * 20 ft/s = 20 lb-ft/s
Determine the velocity of ball A after the collision using the coefficient of restitution. Since the collision is elastic, we have:
v1' = e*v1 = 0.6 * 20 ft/s = 12 ft/s
Determine the change in momentum of ball A due to the collision.
Δp1 = m1*(v1' - v1) = 1 lb * (12 ft/s - 20 ft/s) = -8 lb-ft/s
Note that the negative sign indicates that the direction of the momentum has reversed.
Determine the impulse imparted to block B by ball A during the collision using the law of conservation of momentum. Since the collision is isolated, the total momentum before and after the collision is conserved. Therefore, we have:
p1 = p2
where p2 is the total momentum after the collision, which is equal to the momentum of block B and the ball A.
Let v2 be the velocity of block B after the collision. Then we have:
p2 = m2v2 + m1v1'
where m2 is the mass of block B. Substituting the values, we get:
20 lb-ft/s = 10 lb * v2 + 1 lb * 12 ft/s
Solving for v2, we get:
v2 = (20 lb-ft/s - 12 lb-ft/s) / 10 lb = 0.8 ft/s
Determine the force of kinetic friction acting on block B using the coefficient of kinetic friction.
f = μ*N = 0.4 * 10 lb * 32.2 ft/s^2 = 12.88 lb
where N is the normal force acting on the block, which is equal to its weight.
Determine the acceleration of block B due to the frictional force.
a = f/m2 = 12.88 lb / 10 lb = 1.288 ft/s^2
Determine the time it takes for block B to stop sliding using the laws of motion. The final velocity of block B is zero, and its initial velocity is 0.8 ft/s. Therefore, we have:
v2 = v1 + a*t
where t is the time taken for the block to stop sliding. Substituting the values, we get:
0 ft/s = 0.8 ft/s + (-1.288 ft/s^2) * t
Solving for t, we get:
t = 0.62 s


Learn more about momentum here:

https://brainly.com/question/30560114

#SPJ11




Consider a message signal with the spectrum
M(f)= tri(f/w)
The message bandwidth is 1500 Hz. This signal is applied to a product modulator, together with a carrier wave c(t) = 4 cos(2π fc t) producing the Double Sideband Suppressed Carrier (DSB-SC) modulated signal s(t).

a) (10 points) Determine an expression for the spectrum of DSB-SC modulated signal s(t).
b) (5 points) What is the lowest possible carrier frequency fc to avoid sideband overlap in the DSB-SC modulated signal s(t)?

c) (15 points) If the carrier frequency fc=5.5 kHz, then sketch the spectrum of s(t) and label it carefully by indicating important frequencies and amplitudes.

d) (15 points) If the carrier frequency fc=5.5 kHz, then suggest a demodulator that will recover the message signal m(t) without an amplitude gain or loss. Sketch the block diagram of the demodulator indicating important characteristics of used blocks (For example, if you are using a filter then indicate type, bandwidth, and gain of the filter).

Answers

Answer:

a) The spectrum of the DSB-SC modulated signal s(t) can be obtained by multiplying the message signal M(f) with the carrier frequency c(t) as follows:

s(t) = M(f) * c(t) = tri(f/w) * 4 cos(2π fc t)

Using the trigonometric identity cos(A)cos(B) = 1/2 [cos(A+B)+cos(A-B)], we can write:

s(t) = 2tri(f/w)cos(2π fc t)cos(2π f t)

The spectrum of s(t) is therefore given by the product of the Fourier transforms of the triangular function and the cosine function:

S(f) = 2/2 [M(f-fc) + M(f+fc)] * 1/2 [δ(f-fc) + δ(f+fc)]

Simplifying, we get:

S(f) = tri((f-fc)/w) + tri((f+fc)/w)

b) The bandwidth of the DSB-SC modulated signal is twice the bandwidth of the message signal, i.e., 2 x 1500 = 3000 Hz. Therefore, the minimum carrier frequency to avoid sideband overlap is fc = 1500 Hz.

c) The spectrum of s(t) with fc = 5.5 kHz is shown below:

      +-----------------------+

      |                       |

      |    tri(f/w)           |

      |                       |

+------+-----------+-----------+-------+

-fc   -1500        0        1500     3000  (Hz)

The important frequencies in the spectrum are:

Carrier frequency: fc = 5.5 kHz

Upper sideband frequency: fc + 1500 = 7.0 kHz

Lower sideband frequency: fc - 1500 = 4.0 kHz

d) A coherent demodulator can be used to recover the message signal without any amplitude gain or loss. The block diagram of the demodulator is shown below:

                   +--------------+

                   |              |

                   |  Local       |

                   |  Oscillator  |

                   |  cos(2π fct) |

                   |              |

                   +-------+------+

                           |

                           |

                           v

                   +-------+------+

                   |              |

                   |  Product     |

                   |  Modulator   |

                   |              |

                   +-------+------+

                           |

                           |

                           v

                   +-------+------+

                   |              |

                   |  Low-pass    |

                   |  Filter      |

                   |              |

                   +--------------+

The received signal is multiplied with a local oscillator signal of the same frequency and phase as the carrier to obtain the product of the two signals. The resulting signal is then passed through a low-pass filter with cutoff frequency equal to the message bandwidth of 1500 Hz. The output of the filter is the demodulated message signal m(t).

explain dynamic binding and how it is used with interfaces? no code is required for this question

Answers

Dynamic binding, also known as late binding, is a concept in object-oriented programming where the method implementation to be executed is determined at runtime rather than at compile-time. It allows for more flexibility and extensibility in your code since the actual implementation can be changed without altering the calling code. Dynamic binding is used with interfaces by allowing different classes that implement the same interface to be treated as the same type.

Interfaces are a way to define a contract or a blueprint that a class must adhere to. They specify methods and properties that a class should have, without providing the implementation. Classes that implement an interface must provide their own implementation for all the methods and properties specified in the interface.

When dynamic binding is used with interfaces, it enables the calling code to work with objects of different classes through the interface, without needing to know the specific class type at compile-time. The appropriate method implementation is determined and executed at runtime, depending on the actual class of the object being called.

In summary, dynamic binding allows your code to be more flexible and extensible by determining the method implementation at runtime, and interfaces provide a way to define a common contract for different classes. When used together, dynamic binding and interfaces enable you to work with various classes in a unified manner without the need for explicit knowledge of their specific types at compile-time.

To learn more about dynamic binding, visit: https://brainly.com/question/14521587

#SPJ11

A heat engine supposedly receives 500 kJ/s of heat from an 1100-K source and rejects 300 kJ/s to a low-temperature sink at 300 K. a. Is this possible or impossible? b. What would be the net rate of change of entropy for this system?

Answers

We can determine whether this heat engine is possible or impossible by calculating its efficiency, which is given by: η = 1 - T_L / T_H

where η is the efficiency, T_L is the temperature of the low-temperature sink, and T_H is the temperature of the high-temperature source.

a. Using the given values, we have:

η = 1 - 300 K / 1100 K = 0.727

The efficiency of the heat engine is 0.727, which means that it converts 72.7% of the heat it receives into useful work, and the remaining 27.3% is rejected to the low-temperature sink. Therefore, it is possible for this heat engine to receive 500 kJ/s of heat from an 1100-K source and reject 300 kJ/s to a low-temperature sink at 300 K.

b. The net rate of change of entropy for the system can be calculated using the following formula:

ΔS = Q_H / T_H - Q_L / T_L

where ΔS is the net rate of change of entropy, Q_H is the heat absorbed from the high-temperature source, Q_L is the heat rejected to the low-temperature sink, T_H is the temperature of the high-temperature source, and T_L is the temperature of the low-temperature sink.

Using the given values, we have:

ΔS = (500 kJ/s) / (1100 K) - (300 kJ/s) / (300 K) = 0.227 kJ/(K*s)

Therefore, the net rate of change of entropy for this system is 0.227 kJ/(K*s), which is positive, indicating that the system is undergoing an irreversible process and its entropy is increasing.

Learn more about entropy here:

https://brainly.com/question/13135498

#SPJ11

Though desalination is a theoretically attractive method for obtaining fresh water from seawater, no large commercial facilities for desalination exist.

Answers

That statement is actually not entirely accurate.

While it is true that desalination is a theoretically attractive method for obtaining fresh water from seawater, there are actually quite a few large commercial facilities for desalination that exist around the world. In fact, as demand for fresh water continues to grow in many regions, more and more countries are turning to desalination as a way to meet their water needs.

That being said, there are certainly still many areas where desalination is not yet widely used, and where access to fresh water remains a major challenge. But overall, it is important to recognize that desalination is a technology that has already been widely implemented in many parts of the world, and that has the potential to play an increasingly important role in meeting our future water needs.


Though desalination is a theoretically attractive method for obtaining fresh water from seawater, no large commercial facilities for desalination exist, mainly due to the high costs and energy requirements associated with the process. To address this issue, further research and development are needed to improve the efficiency and affordability of desalination technologies, making them a more viable option for large-scale implementation in the future.

Learn more about commercial facilities  at: brainly.com/question/28257907

#SPJ11

. show that if p = np, you can factor integers in polynomial time

Answers

Polynomial: An algebraic expression consisting of variables and coefficients, involving only addition, subtraction, and non-negative integer exponentiation of variables.
Factor: A number that divides exactly into another number, leaving no remainder
Integers: Whole numbers that can be positive, negative, or zero.


How we can prove p = np?
Now, let's consider the given condition: p = np. This means that the problem we are trying to solve can be computed in polynomial time (p) and is also in the complexity class NP (nondeterministic polynomial time).

If we can factor integers in polynomial time, it implies that we have an algorithm that can find the factors of an integer in a number of steps that is a polynomial function of the size of the input.

To show that you can factor integers in polynomial time if p = np, follow these steps:

1. Assume that p = np. This means that there exists an algorithm that can solve any problem in NP in polynomial time.

2. Consider the problem of factoring integers. Factoring integers is known to be in NP, as it can be easily verified if a given factorization is correct or not in polynomial time.

3. Since p = np, there must be a polynomial-time algorithm for factoring integers according to our assumption.

In conclusion, if p = np, it implies that there exists a polynomial-time algorithm for factoring integers.

to know more about polynomial :

https://brainly.com/question/11536910

#SPJ11

what is xml, and why is it important? provide an example of how xml might be used that is different from the book.

Answers

XML stands for Extensible Markup Language, and it is a type of markup language that is used for encoding documents in a format that is both human-readable and machine-readable. It is important because it provides a standardized way for different systems to communicate and exchange data, regardless of the operating system or programming language used.

One example of how XML might be used is in the context of web services. Web services allow different applications to communicate with each other over the internet, and XML is often used as the data format for exchanging information between these applications. For instance, an e-commerce website might use XML to exchange order data with a payment processing service or a shipping provider.

Learn more about XML: https://brainly.com/question/22792206

#SPJ11      

           

given the following mft entry for trojan.exe, what is the length (decimal) of the $data attribute?
a.48 bytes
b.72 bytes
c.70 bytes
d.112 bytes

Answers

c.70 bytes .the length (decimal) of the $data attributeattributeis 70 bytes.


MFT stands for Master File Table, which is a database used by the NTFS file system to store information about files and directories on a Windows computer. In this context, $data refers to the default data attribute of a file, which stores the actual content of the file.
The length of the $data attribute for a file can be determined by examining its MFT entry. In this case, the MFT entry for trojan.exe indicates that the length of its $data attribute is 70 bytes. This means that the file itself is 70 bytes in size, and any content beyond that size (if present) would be stored in additional data attributes or data streams.

Learn more about MFT here:
https://brainly.com/question/29621152

#SPJ11

The Glass Box Theory states that there are how many different possible views of an object?
a. 3 views
b. 4 views
c. 5 views
d. 6 views

Answers

The answer is option d. 6 views. The Glass Box Theory suggests that there are 6 views of an object.

The Glass Box Theory is a software testing technique that involves testing a system by examining its internal workings. It states that there are six different possible views of an object that can be tested, including the input, output, internal workings, error handling, performance, and security. The Glass Box Theory demonstrates that there are 6 possible views for any given object, providing a comprehensive understanding of its shape and dimensions.

This theory helps testers to identify and fix any defects in the system, ensuring that it is reliable and efficient.

Learn more about objects: https://brainly.com/question/28732193

#SPJ11

how could you express simply the relationship between the angular velocities of a pair of gears which are coupled?

Answers

Hi! To simply express the relationship between the angular velocities of a pair of coupled gears, you can use the gear ratio. The gear ratio is the ratio of the number of teeth on the driving gear to the number of teeth on the driven gear. The relationship between the angular velocities (ω1 and ω2) of the two gears can be expressed as follows:

ω1 / ω2 = T2 / T1

Where ω1 is the angular velocity of the driving gear, ω2 is the angular velocity of the driven gear, T1 is the number of teeth on the driving gear, and T2 is the number of teeth on the driven gear.

Learn more about angular velocities: https://brainly.com/question/6860269

#SPJ11

Other Questions
ecologic studies are preferred when the within group variability of exposure is high and the between group variability is low. compilation of the study about the differences between muslim and christianity.PRACTICAL RESEARCHAUTHORDATE PUBLISHED plot the point whose polar coordinates are given. then find the cartesian coordinates of the point. (C) -1, -/6) . (X,Y)= I need HELP on all this questions During a surgical procedure to excise a malignant thyroid gland, the surgeon asks you why she is not removing the posterior part of the patient's thyroid gland. Your correct response is: A) because it is only the posterior part of the gland that produces calcitonin. B) to avoid damage to the trachea. C) to avoid excessive bleeding. D) so that the patient does not develop tetany. E) to avoid damage to the inferior laryngeal nerve Answer the following question: Ethanol, C2H5OH, is considered clean fuel because it burns in oxygen to produce carbon dioxide and water with few trace pollutants. If 500.0 g of H2O are produced during the combustion of ethanol, how many grams of ethanol were present at the beginning of the reaction? When answering this question include the following:Have both the unbalanced and balanced chemical equations.Explain how to find the molar mass of the compounds.Explain how the balanced chemical equation is used to find the ratio of moles (hint: step 3 in the video).The numerical answer with the correct units. calculate the hardness of water in units of mg/l of caco3 (see equation 15-7) if your titration at ph = 10 resulted in a concentration of 15 mmol/l. round your answer to the nearest whole number and enter only the numerical answer into the box what is the load, in amps, for a 3, 480v feeder supplying a load calculated at 112.5kVa?a. 135.32Ab. 312.27Ac. 468.75Ad. 540.87A What was the Union's (North) war plan to beat the Confederate States(South)? based on this telegraph, how were relations between Austria Hungary and Romania during this time Anonymous UserAnonymous UserLast Edit: August 19, 2020 6:10 AM18.9K VIEWSQuestion 1: String CompressionDifferent compression techniques are used in order to reduce the size of the messages sent over the web. An algorithm is designed to compress a given string by describing the total number of consecutive occurences of each character next to it. For example, consider the string "abaasass". Group the conescutive occurence of each character:'a' occurs one time.'b' occurs one time.'a' occurs two times consecutively.'s' occurs one time.'a' occurs one time.'s' occurs two times consecutively.If a character only occurs once, it is added to the compressed string. If it occurs consecutive times, the character is added to the string followed by an integer representing the number of consecutive occurences. Thus the compressed form of the string "aba2sas2". solve the congruence 5x 11 and 11y 5, mod 37. if both are satisfied, simplify xy mod 37. Commonly used techniques to gain information in web mining include______, ______, and_____. Check All That Apply Web Content Mining (WCM) Web Structure Mining (WSM) Web Usage Mining (WUM) Web Techniques Mining (WTM) your company is contemplating replacing their current fleet of delivery vehicles with nissan nv vans. you will be replacing 5 fully-depreciated vans, which you think you can sell for $3,100 a piece and which you could probably use for another 2 years if you chose not to replace them. the nv vans will cost $30,000 each in the configuration you want them, and can be depreciated using macrs over a 5-year life, but you are unable to make use of either bonus depreciation or section 179 expensing. expected yearly before-tax cash savings due to acquiring the new vans amounts to about $3,800 each. if your cost of capital is 10 percent and your firm faces a 21 percent tax rate, what will the cash flows for this project be? The tensions that are often assumed to be inherent in the relations between adolescents and adults are referred to as the: A. parent-child rift. B. generation gap. C. empty nest syndrome. D. midlife crisis. Think About the Process A jar contains only pennies, nickels, dimes, and quarters. There are 18 pennies, 25 dimes, and 16 quarters. The rest of the coins are nickels. There are 88 coins in all. How many of the coins are not nickels? If n represents the number of nickels in the jar, what equation could you use to find n? 5. Temperature and wind The average temperature indegrees Fahrenheit) and average wind speed (in milesper hour) were recorded for 365 consecutive days atChicago's O'Hare International Airport. Here is com-puter output for a regression of y = average wind speedon x = average temperature:0. 0478740. 045251Summary of FitRSquareRSquare AdjRoot Mean Square ErrorMean of ResponseObservations (or Sum Wgts)3. 6559509. 826027365Parameter EstimatesEstimateintercept 11. 897762w temp --0. 041077Std Error t Ratio Probit0. 521320 22. 821. 00010. 0096154. 27 10001 Which of the following was NOT an accomplishment of the Labor-Management Relations Act?- Creating the National Labor Relations Board-Permitting workers to reject a union as their representative- Defining unfair labor practices by unions- Protecting employers' free-speech rights- all above what amber is and how it formed The interest earned on rs15000 in 3 years at simple interest is rs5400 find the rate of interest per anunm