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
Hunter-Best [27]
3 years ago
11

Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's

numbers on one line, each number followed by one space. (2 pts)
Ex:Enter weight 1:236.0Enter weight 2:89.5Enter weight 3:142.0Enter weight 4:166.3Enter weight 5:93.0You entered: 236.000000 89.500000 142.000000 166.300000 93.000000
Engineering
1 answer:
atroni [7]3 years ago
6 0

Answer:

See below in the explanation section the Matlab script to solve the problem.

Explanation:

prompt='enter the first weight w1:  ';

w1=input(prompt);

wd1=double(w1);

prompt='enter the second weight w2:  ';

w2=input(prompt);

wd2=double(w2);

prompt='enter the third weight w3:  ';

w3=input(prompt);

wd3=double(w3);

prompt='enter the fourth weight w4:  ';

w4=input(prompt);

wd4=double(w4);

prompt='enter the first weight w5:  ';

w5=input(prompt);

wd5=double(w5);

x=[wd1 wd2 wd3 wd4 wd5]

format short

You might be interested in
Write the output expression for a NOR gate with inputs , , and .​
mezya [45]

Answer:

Logic NOR Gate Equivalent

The Boolean expression for a logic NOR gate is denoted by a plus sign, ( + ) with a line or Overline, ( ‾‾ ) over the expression to signify the NOT or logical negation of the NOR gate giving us the Boolean expression of: A+B = Q.

4 0
2 years ago
An inductor (L = 400 mH), a capacitor (C = 4.43 µF), and a resistor (R = 500 Ω) are connected in series. A 44.0-Hz AC generator
MakcuM [25]

Answer:

(A) Maximum voltage will be equal to 333.194 volt

(B) Current will be leading by an angle 54.70

Explanation:

We have given maximum current in the circuit i_m=385mA=385\times 10^{-3}A=0.385A

Inductance of the inductor L=400mH=400\times 10^{-3}h=0.4H

Capacitance C=4.43\mu F=4.43\times 10^{-3}F

Frequency is given f = 44 Hz

Resistance R = 500 ohm

Inductive reactance will be x_l=\omega L=2\times 3.14\times 44\times 0.4=110.528ohm

Capacitive reactance will be equal to X_C=\frac{1}{\omega C}=\frac{1}{2\times 3.14\times 44\times 4.43\times 10^{-6}}=816.82ohm

Impedance of the circuit will be Z=\sqrt{R^2+(X_C-X_L)^2}=\sqrt{500^2+(816.92-110.52)^2}=865.44ohm

So maximum voltage will be \Delta V_{max}=0.385\times 865.44=333.194volt

(B) Phase difference will be given as \Phi =tan^{-1}\frac{X_C-X_L}{R}=\frac{816.92-110.52}{500}=54.70

So current will be leading by an angle 54.70

5 0
3 years ago
2. What is an important aspect of the American free enterprise system that encourages people to
rusak2 [61]
Have a positive mindset and attitude
7 0
3 years ago
Read 2 more answers
Kinetic energy is defined as energy of an object in:
Murrr4er [49]

your answer is c. motion

5 0
3 years ago
Read 2 more answers
Reagen pembatas adalah
kow [346]
I don’t know what you mean by that
5 0
3 years ago
Other questions:
  • Water vapor at 6 MPa, 500°C enters a turbine operating at steady state and expands to 20 kPa. The mass flow rate is 3 kg/s, and
    8·1 answer
  • Ayuda porfavor es para una tarea de mi capacitación de desarrollo microempresarial
    14·1 answer
  • The specific volume of mercury is .00007 m^3/Kg. What is its density in lbm/ft^3?
    10·1 answer
  • 1000 lb boulder B is resting on a 500 lb platform A when truck C accidentally accelerates to the right (truck in reverse). Which
    15·1 answer
  • You talk with the owner and he likes the idea of using two large glulam beams as shown to carry the joist loads. Design the glul
    5·1 answer
  • Implement a program that manages shapes. Implement a class named Shape with a method area() which returns the double value 0.0.
    8·1 answer
  • According to the video, what are some tasks that Construction Managers perform? Check all that apply.
    9·2 answers
  • I NEED HELP!!!Situation: A client has hired Jose, a materials engineer, to develop a package for an item he has begun to market.
    15·1 answer
  • You may wonder who the rest goes
    11·1 answer
  • a low velocity fastening system that is used to drive steel pins or threaded studs into a masonry and steel is a
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!