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
Archy [21]
2 years ago
12

Write a program that takes three numbers as input from the user, and prints the largest.

Engineering
1 answer:
mars1129 [50]2 years ago
5 0
The answer might be 65, let me know
You might be interested in
A pitfall cited in Section 1.10 is expecting to improve the overall performance of a computer by improving only one aspect of th
Oxana [17]

Answer:

a) For this case the new time to run the FP operation would be reduced 20% so that means 100-20% =80% from the original time

(1-0.2)*70 s =56s

The reduction on this case is 70-56 s=14s

And since the new total time would be given by 250-14=236 s

b) For this case the total time is reduced 20%  so that means that the new total time would be (1-0.2)=0.8 times the original total time (1-0.2) *250s =200 s

The original time for INT operations is calculated as:

250 = 70+85+40 +t_{INT}

t_{INT}=55s

For this part the only time that was changed is assumed the INT operations so then:

200 = 70+85+40 \Delta t_{INT}

And then: \Delta t_{INT}= 200-70-85-40=5 s

c) A reduction of the total time implies that the total time would be 205 s from the results above. And the time for FP is 70, for L/S is 85 and for INT operations is 55 s, so then if we add 70+85+55=210s, we see that 210>205 so then we cannot reduce the total time 20% just reducing the branch intructions.

Explanation:

From the info given we know that a computer running a program that requires 250 s, with 70 s spent executing FP instructions, 85 s executed L/S instructions and 40 s spent executing branch instructions.

Part 1

For this case the new time to run the FP operation would be reduced 20% so that means 100-20% =80% from the original time

(1-0.2)*70 s =56s

The reduction on this case is 70-56 s=14s

And since the new total time would be given by 250-14=236 s

Part 2

For this case the total time is reduced 20%  so that means that the new total time would be (1-0.2)=0.8 times the original total time (1-0.2) *250s =200 s

The original time for INT operations is calculated as:

250 = 70+85+40 +t_{INT}

t_{INT}=55s

For this part the only time that was changed is assumed the INT operations so then:

200 = 70+85+40 \Delta t_{INT}

And then: \Delta t_{INT}= 200-70-85-40=5 s

And we can quantify the decrease using the relative change:

\% Change = \frac{5s}{55 s} *100 = 9.09\% of reduction

Part 3

A reduction of the total time implies that the total time would be 205 s from the results above. And the time for FP is 70, for L/S is 85 and for INT operations is 55 s, so then if we add 70+85+55=210s, we see that 210>205 so then we cannot reduce the total time 20% just reducing the branch intructions.

8 0
3 years ago
Determine the angular acceleration of the uniform disk if (a) the rotational inertia of the disk is ignored and (b) the inertia
lukranit [14]

Answer:

α = 7.848 rad/s^2  ... Without disk inertia

α = 6.278 rad/s^2  .... With disk inertia

Explanation:

Given:-

- The mass of the disk, M = 5 kg

- The right hanging mass, mb = 4 kg

- The left hanging mass, ma = 6 kg

- The radius of the disk, r = 0.25 m

Find:-

Determine the angular acceleration of the uniform disk without and with considering the inertia of disk

Solution:-

- Assuming the inertia of the disk is negligible. The two masses ( A & B )  are hung over the disk in a pulley system. The disk is supported by a fixed support with hinge at the center of the disk.

- We will make a Free body diagram for each end of the rope/string ties to the masses A and B.

- The tension in the left and right string is considered to be ( T ).

- Apply newton's second law of motion for mass A and mass B.

                      ma*g - T = ma*a

                      T - mb*g = mb*a

Where,

* The tangential linear acceleration ( a ) with which the system of two masses assumed to be particles move with combined constant acceleration.

- g: The gravitational acceleration constant = 9.81 m/s^2

- Sum the two equations for both masses A and B:

                      g* ( ma - mb ) = ( ma + mb )*a

                      a =  g* ( ma - mb ) / ( ma + mb )

                      a = 9.81* ( 6 - 4 ) / ( 6 + 4 ) = 9.81 * ( 2 / 10 )

                      a = 1.962 m/s^2  

- The rope/string moves with linear acceleration of ( a ) which rotates the disk counter-clockwise in the direction of massive object A.

- The linear acceleration always acts tangent to the disk at a distance radius ( r ).

- For no slip conditions, the linear acceleration can be equated to tangential acceleration ( at ). The correlation between linear-rotational kinematics is given below :

                     a = at = 1.962 m/s^2

                     at = r*α      

Where,

           α: The angular acceleration of the object ( disk )

                    α = at / r

                    α = 1.962 / 0.25

                    α = 7.848 rad/s^2                                

- Take moments about the pivot O of the disk. Apply rotational dynamics conditions:

             

                Sum of moments ∑M = Iα

                 ( Ta - Tb )*r = Iα

- The moment about the pivots are due to masses A and B.

 

               Ta: The force in string due to mass A

               Tb: The force in string due to mass B

                I: The moment of inertia of disk = 0.5*M*r^2

                   ( ma*a - mb*a )*r = 0.5*M*r^2*α

                   α = ( ma*a - mb*a ) / ( 0.5*M*r )

                   α = ( 6*1.962 - 4*1.962 ) / ( 0.5*5*0.25 )

                   α = ( 3.924 ) / ( 0.625 )

                   α = 6.278 rad/s^2

6 0
3 years ago
Which of the followong parts does not rotate during starter operation? A. Commutator segments B. Armature windings c. Field wind
photoshop1234 [79]

Answer: B

Explanation: unless newer models added wingding to code inside fused computer...wingdings on a window ...not a motor

8 0
3 years ago
In one study the critical stress intensity factor for human bone was calculated to be 4.05 MN/m3/2. If the value of Y in Eq. (2.
Diano4ka-milaya [45]
Where is Eq.(28) ?? You should show it to find the result
6 0
3 years ago
If you are interested only in the temperature range of 20° to 40°C and the ADC has a 0 to 3V input range, design a signal condit
mario62 [17]

Explanation:

Temperature range → 0 to 80'c

respective voltage output → 0.2v to 0.5v

required temperature range 20'c to 40'c

Where T = 20'c respective voltage

\begin{aligned}v_{20} &=0.2+\frac{0.5-0.8}{80} \times 20 \\&=0.2+\frac{0.3}{80} \times 20 \\V_{20} &=0.275 v\end{aligned}

\begin{aligned}\text { when } T=40^{\circ} C & \text { . } \\v_{40} &=0.2+\frac{0.5-0.2}{80} \times 40 \\&=0.35 V\end{aligned}

Therefore, Sensor output changes from 0.275v to 0.35volts for the ADC the required i/p should cover the dynamic range of ADC (ie - 0v to 3v)

so we have to design a circuit which transfers input voltage 0.275volts - 0.35v to 0 - 3v

Therefore, the formula for the circuit will be

\begin{array}{l}v_{0}=\left(v_{i n}-0.275\right) G \\\sigma=\ldots \frac{3-0}{0.35-0.275}=3 / 0.075=40 \\v_{0}=\left(v_{i n}-0.275\right) 40\end{array}

The simplest circuit will be a op-amp

NOTE: Refer the figure attached

Vs is sensor output

Vr is the reference volt, Vr = 0.275v

\begin{aligned}v_{0}=& v_{s}-v_{v}\left(1+\frac{R_{2}}{R_{1}}\right) \\\Rightarrow & \frac{1+\frac{R_{2}}{R_{1}}}{2}=40 \\& \frac{R_{2}}{R_{1}}=39 \quad \Rightarrow\end{aligned}

choose R2, R1 such that it will maintain required  ratio

The output Vo can be connected to voltage buffer if you required better isolation.

3 0
2 years ago
Other questions:
  • Use the APWA 5600 methodology to compute the 1/25 design discharge for the following catchment. The catchment area consists of 1
    9·1 answer
  • What are some possible reasons for the sudden development of the cell theory
    14·1 answer
  • The following sentence can be categorized as what stage in the Scientific Method: Abraham notices that Saharan desert ants will
    6·1 answer
  • WHAT IS THE MOST POWERFUL PART IN A CAR
    13·2 answers
  • Why do organisms differ in their methods of reproduction?
    5·2 answers
  • Calculate the number of vacancies per cubic meter at 1000∘C for a metal that has an energy for vacancy formation of 1.22 eV/atom
    14·1 answer
  • The distribution of ground shaking around the fault
    5·1 answer
  • What is a splitter gearbox​
    15·1 answer
  • It is acceptable to mix used absorbents.
    15·1 answer
  • assuming complementary inputs are available, the minimum number of transistors needed to realize a two input xor gate is:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!