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]
2 years ago
5

For the R function shown below(Attachment):

Engineering
1 answer:
Virty [35]2 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
A storm sewer is carrying snow melt containing 1.2 g/L of sodium chloride into a small stream. The stream has a naturally occurr
galina1969 [7]

Answer:

Given Data:

concentration of sewer Csewer = 1.2 g/L

converting into mg/L = Csewer = 1.2 g/L x 1000 mg/g = 1200 mg/L

flow rate of sewer Qsewer = 2000 L/min

concentration of sewer Cstream = 20 mg/L

flow rate of sewer Qstream = 2m3/s

converting Q into L/min = 2m3/s x 1000 x 60 = 120000 L/min

mass diagram is

6 0
3 years ago
Determine the required dimensions of a column with a square cross section to carry an axial compressive load of 6500 lb if its l
ycow [4]

Answer: 0.95 inches

Explanation:

A direct load on a column is considered or referred to as an axial compressive load. A direct concentric load is considered axial. If the load is off center it is termed eccentric and is no longer axially applied.

The length= 64 inches

Ends are fixed Le= 64/2 = 32 inches

Factor Of Safety (FOS) = 3. 0

E= 10.6× 10^6 ps

σy= 4000ps

The square cross-section= ia^4/12

PE= π^2EI/Le^2

6500= 3.142^2 × 10^6 × a^4/12×32^2

a^4= 0.81 => a=0.81 inches => a=0.95 inches

Given σy= 4000ps

σallowable= σy/3= 40000/3= 13333. 33psi

Load acting= 6500

Area= a^2= 0.95 ×0.95= 0.9025

σactual=6500/0.9025

σ actual < σallowable

The dimension a= 0.95 inches

3 0
2 years ago
Read 2 more answers
write down your own definition of Engineering, preferably in 4-5 sentences. Maximum of 150 words for your definition???.​
ollegr [7]

Answer:

A charge q1=7.0mc is located at the origin and a second charge q2=-5.0mc is located on the x axis, 0.3m the origin find the electric field at the point p which he's coordinates (0,0.40)m

4 0
3 years ago
Does anybody know how to take a screenshot on a HP pavilion computer?
Setler79 [48]

Answer:

I do i do it everyday

Explanation:

Press windows and prt sc at the same time

6 0
2 years ago
A lagoon is designed to accommodate an input flow of 0.10 m^3/s of nonconservative pollutant with concentration 30 mg/L and deca
dexar [7]

Answer:

Volume of the lagoon required for the decay process must be larger than 86580 m³ = 8.658 × 10⁷ L

Explanation:

The lagoon can be modelled as a Mixed flow reactor.

From the value of the decay constant (0.2/day), one can deduce that the decay reaction of the pollutant is a first order reaction.

The performance equation of a Mixed flow reactor is given from the material and component balance thus:

(V/F₀) = (C₀ - C)/((C₀)(-r)) (From the Chemical Reaction Engineering textbook, authored by Prof. Octave Levenspiel)

V = volume of the reactor (The lagoon) = ?

C₀ = Initial concentration of the reactant (the pollutant concentration) = 30 mg/L = 0.03 mg/m³

F₀ = Initial flow rate of reactant in mg/s = 0.10 m³/s × C₀ = 0.1 m³/s × 0.03 mg/m³ = 0.003 mg/s

C = concentration of reactant at any time; effluent concentration < 10mg/L, this means the maximum concentration of pollutant allowed in the effluent is 10 mg/L

For the sake of easy calculation, C = the maximum value = 10 mg/L = 0.01 mg/m³

(-r) = kC (Since we know this decay process is a first order reaction)

This makes the performance equation to be:

(kVC₀/F₀) = (C₀ - C)/C

V = F₀(C₀ - C)/(kC₀C)

k = 0.2/day = 0.2/(24 × 3600s) = 2.31 × 10⁻⁶/s

V = 0.003(0.03 - 0.01)/(2.31 × 10⁻⁶ × 0.03 × 0.01)

V = 86580 m³

Since this calculation is made for the maximum concentration of 10mg/L of pollutant in the effluent, the volume obtained is the minimum volume of reactor (lagoon) to ensure a maximum volume of 10 mg/L of pollutant is contained in the effluent.

The lower the concentration required for the pollutant in the effluent, the larger the volume of reactor (lagoon) required for this decay reaction. (Provided all the other parameters stay the same)

Hope this helps!

5 0
2 years ago
Other questions:
  • Which of the following can minimize engine effort in save fuel
    15·2 answers
  • If 20 kg of iron, initially at 12 °C, is added to 30 kg of water, initially at 90 °C, what would be the final temperature of the
    6·1 answer
  • Water is the working fluid in a Rankine cycle. Superheated vapor enters the turbine at 8 MPa, 560°C and the turbine exit pressur
    13·1 answer
  • When we utilize a visualization on paper/screen, that visualization is limited to exploring: Group of answer choices Relationshi
    9·1 answer
  • dentify a semiconducting material and provide the value of its band gap) that could be used in: (a) (1 point) red LED (b) (1 poi
    10·1 answer
  • A spherical metal ball of radius r_0 is heated in an oven to a temperature of T_1 throughout and is then taken out of the oven a
    6·1 answer
  • CNG is a readily available alternative to _________.
    9·1 answer
  • How might a field like philosophy of history help scientists​
    14·1 answer
  • A composite plane wall consists of a 5-in.-thick layer of insulation (ks = 0.029 Btu/h*ft*°R) and a 0.75-in.-thick layer of sidi
    11·1 answer
  • What is the purpose of having a ventilation system on board a motorized vessel?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!