1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lena [83]
3 years ago
5

For the R function shown below(Attachment):

Engineering
1 answer:
Virty [35]3 years ago
5 0

Answer:

The given function will return an integer in term of j on each iteration of while loop. However, it is noted that this program has some syntax error. The complete code executed in an online R compiler with explanation is given below

Explanation:

def<-function(j){

               k=0;

               i=1;

               while (i<j**3) #j raise to power 3

                   {

               

                   k<-k+1;#k=k+1

                   i <- i*2;#i=i*2

                   print(k);#

               }

 

    }

 def(6)# if you pass the value 6 to function def(j)

You might be interested in
At a certain location, wind is blowing steadily at 5 mph. Suppose that the mass density of air is 0.0796 lbm/ft3 and determine t
nlexa [21]

Answer:

The radius of a wind turbine is 691.1 ft

The power generation potential (PGP) scales with speed at the rate of 7.73 kW.s/m

Explanation:

Given;

power generation potential (PGP) = 1000 kW

Wind speed = 5 mph = 2.2352 m/s

Density of air = 0.0796 lbm/ft³ = 1.275 kg/m³

Radius of the wind turbine r = ?

Wind energy per unit mass of air, e = E/m = 0.5 v² = (0.5)(2.2352)²

Wind energy per unit mass of air = 2.517 J/kg

PGP = mass flow rate * energy per unit mass

PGP = ρ*A*V*e

PGP = \rho *\frac{\pi r^2}{2} *V*e  \\\\r^2 = \frac{2*PGP}{\rho*\pi *V*e} , r=\sqrt{ \frac{2*PGP}{\rho*\pi *V*e}} = \sqrt{ \frac{2*10^6}{1.275*\pi *2.235*2.517}}

r = 210.64 m = 691.1 ft

Thus, the radius of a wind turbine is 691.1 ft

PGP = CVᵃ

For best design of wind turbine Betz limit (c) is taken between (0.35 - 0.45)

Let C = 0.4

PGP = Cvᵃ

take log of both sides

ln(PGP) = a*ln(CV)

a = ln(PGP)/ln(CV)

a = ln(1000)/ln(0.4 *2.2352) = 7.73

The power generation potential (PGP) scales with speed at the rate of 7.73 kW.s/m

5 0
3 years ago
If you are trying to land the plane, which part(s) would you move? How would you move it/them?
KiRa [710]

Answer: hope it helps

Explanation:Moving air has a force that will lift kites and balloons up and down. Air is a mixture ... Here is a simple computer simulation that you can use to explore how wings make lift. ... All these dimensions together combine to control the flight of the plane. A pilot ... When the rudder is turned to one side, the airplane moves left or right.

7 0
3 years ago
joe is an exceptional systems engineer who hopes to work at the techtonic group. he is handicapped and uses a wheelchair. techto
ASHA 777 [7]

The HR department should install wheelchair ramps and widen the doorways as they don't want to loose an exceptional systems engineer who hopes to work at the techtonic group.

What is a wheelchair ramps?

A wheelchair ramp is an inclined plane that can be installed in addition to or instead of stairs. Ramps make it easier for wheelchair users, as well as people pushing strollers, carts, or other wheeled objects, to enter a building.

The Americans with Disabilities Act requires wheelchair ramps (or other ways for wheelchair users to access a building, such as a wheelchair lift) in new construction for public accommodations in the United States.

A wheelchair ramp can be fixed, semi-fixed, or portable. Permanent ramps are intended to be bolted or otherwise attached to the ground. Semi-permanent ramps are commonly used in the short term and rest on top of the ground or concrete pad.

To know more about wheelchair ramps, visit: brainly.com/question/17395685

#SPJ4

5 0
1 year ago
Question 9
Mama L [17]

Answer:
1. Make sure the regulator adjustment screws are completely backed out and loose.
2. Open the main cylinder valves slowly.
3. Set the Oxygen and Acetylene working pressures.

4. Light and adjust the torch.

Explanation:

5 0
1 year ago
An overhead 25m-long, uninsulated industrial steam pipe of 100-mm diameter, is routed through a building whose walls and air are
wariber [46]

Answer:

1) q=18414.93 W

2) C=12920$

Explanation:

Given data:

pipe length L=25m

pipe diameter D=100mm =0.1 m

air temperature T_{s1}=T_{\infty1} }=25 °C.....= 298.15k

pipe surface temp T_{s2}=150 °C.....=423.15k

surface emissivity e= 0.8

boiler efficiency η=0.90

natural gas price Cg=$0.02 per MJ

1) Total heat loss and radiation heat loss combined

          q=q_{conv} +q_{rad}

          q=A[h(T_{s2}-T_{s1})+eб(T_{s2}^4-T_{s1}^4)]....... (1)

б=5.67×10^-8 W/m^2K^4 (boltzmann constant)

area A =L.Dπ=25×0.1π=7.85 m^2

putting all these values in eq (1)

q=18414.93 W

2) suppose boiler is operating non stop annual energy loss will be

               E=q.t

                  =18414.93.3600.24.365

                  =5.81×10^11 J

   to find furnace energy consumption

               Ef =E/η

                  =6.46×10^5 MJ

   annual cost

                  C=Cg. Ef

                    =12920$

8 0
3 years ago
Other questions:
  • If the Zener diode is connected<br>wrong polarity the voltage<br>across the load is?​
    11·1 answer
  • Guys, can you rate this toolbox, please. It is my DT project, made for car trips, what do you think of the idea/design/usability
    12·1 answer
  • Differentiate between isohyetal method and arithmetical average method of rainfall​
    10·1 answer
  • A three-phase Y-connected 50-Hz two-pole synchronous machine has a stator with 2000 turns of wire per phase. What rotor flux wou
    11·1 answer
  • When the Moon is in the position shown, how would the Moon look to an observer on the North Pole?
    11·1 answer
  • A___ remote control can be an advantage to an
    14·2 answers
  • Work to be performed can come from the work package level of the work breakdown structure as well as other sources. Which of the
    11·1 answer
  • 40 POINTS IF ANSERED WITHIN 10 MINS
    13·2 answers
  • 50.38
    6·1 answer
  • A motor takes 38 amperes on a 220-volt circuit. Find the horsepower output (hp) of the motor shown with an efficiency of 90%. Ex
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!