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
mojhsa [17]
4 years ago
6

Create a file "parts_inv.dat" that stores on each line a part number, cost, and quantity in inventory, in the following format:1

23 5.99 52Use fscanfto read this informationand print the total dollar amount of inventory (the sum of the cost multiplied by the quantity for each part).
Physics
1 answer:
andriy [413]4 years ago
7 0

Answer:

%Open the file.

fID = fopen('parts_inv.dat');

%Read from the file.

data = fscanf(fID,'%d\t%f\t%d',[3,inf]);

%Close

fclose(fID);

%Restore the data.

data = data';

%Get the size

[rs, cs] = size(data);

%Set value.

invCost = 0;

%Loop

for rw = 1 : rs

%Find cost

invCost = invCost + (data(rw, 2) * data(rw, 3));

%Loop end

end

%Display the cost.

fprintf('Total cost: %4.2f\n\n', invCost);

Explanation:

You might be interested in
Atoms in a solid are not stationary, but vibrate about their equilibrium positions. Typically, the frequency of vibration is abo
hoa [83]

To develop this problem it is necessary to use the equations of description of the simple harmonic movement in which the acceleration and angular velocity are expressed as a function of the Amplitude.

Our values are given as

f = 4.11 *10^{12} Hz

A = 1.23 * 10^{-11}m

The angular velocity of a body can be described as a function of frequency as

\omega = 2\pi f

\omega = 2\pi 4.11 *10^{12}

\omega=2.582*10^{13} rad/s

PART A) The expression for the maximum angular velocity is given by the amplitude so that

V = A\omega

V =( 1.23 * 10^{-11})(2.582*10^{13})

V =  = 317.586m/s

PART B) The maximum acceleration on your part would be given by the expression

a = A \omega^2

a =( 1.23 * 10^{-11})(2.582*10^{13})^2

a= 8.2*10^{15}m/s^2

4 0
4 years ago
When NASA was communicating with astronauts on the Moon, the time from sending on the Earth to receiving on the moon was 1.33 s.
frez [133]

To solve this problem it is necessary to apply the concepts related to the kinematic equations of movement description, which determine the velocity, such as the displacement of a particle as a function of time, that is to say

v = \frac{x}{t}\rightarrow x = v*t

Where,

x = Displacement

v = Velocity

t = Time

Our values are given as,

v=3*10^8m/s

t = 1.33 s

Replacing we have that,

x=v*t

x=(3*10^8)(1.33)

x = 399'000.000m

Therefore the distance from Earth to the Moon is 399.000 km

5 0
3 years ago
A platinum ball weighing 100 g is removed from a furnace and dropped into 400 g of water at 0 degree C. If the equilibrium tempe
kakasveta [241]

Answer:

T = 1010 degree Celsius

Explanation:

mass of ball (Mb) = 100 g

mass of water (Mw) = 400 g

temp of water = 0 degree

specific heat of platinum (C) = 0.04 cal/g degree celsius

we can calculate the temperature of the furnace from the equation before

Mb x C x (temp of furnace (T) - equilibrium temp) = Mw x (equilibrium temp - temp of furnace)

100 x 0.04 x ( T - 10) = 400 x (10 - 0)

4 (T - 10) = 4000

T - 10 = 1000

T = 1010 degree Celsius

3 0
4 years ago
A woman falls to the ground while wearing a parachute. The air resistance on the parachute of the parachute is 500N. If the woma
scoundrel [369]

The gravitational force on the woman is A) 500 N

Explanation:

There are two forces acting on the woman during her fall:

  • The force of gravity, F_G, acting downward
  • The air resistance, F_D, acting upward

According to Newton's second law, the net force acting on the woman is equal to the product between the woman's mass and her acceleration:

\sum F=ma

where m is the mass of the woman and a her acceleration.

The net force can be written as

\sum F = F_G - F_D

Also, we know that the woman falls at a constant velocity (5 m/s), this means that her acceleration is zero:

a=0

Combining the equations together, we get:

F_G-F_D = 0

which means that the magnitude of the gravitational force is equal to the magnitude of the air resistance:

F_G=F_D=500 N

Learn more about forces and Newton's second law:

brainly.com/question/3820012

#LearnwithBrainly

5 0
3 years ago
Read 2 more answers
Radio waves have a longer wavelength than microwaves. What else is true<br> about radio waves?
Dennis_Churaev [7]

As it was explained in the Introductory Article on the Electromagnetic Spectrum, electromagnetic radiation can be described as a stream of photons, each traveling in a wave-like pattern, carrying energy and moving at the speed of light. In that section, it was pointed out that the only difference between radio waves, visible light and gamma rays is the energy of the photons. Radio waves have photons with the lowest energies. Microwaves have a little more energy than radio waves. Infrared has still more, followed by visible, ultraviolet, X-rays and gamma rays.

That should be able to help answer your question :)
7 0
3 years ago
Other questions:
  • Where does the autotroph get its energy from
    9·1 answer
  • Physical change of a solid to a liquid at the melting point
    8·1 answer
  • A car travels at a steady 40.0 m/s around a horizontal curve of radius 200 m. What is the minimum coefficient of static friction
    14·1 answer
  • Why is it useful to know the net force?
    12·2 answers
  • A 0.358 kg particle slides around a horizontal track. The track has a smooth, vertical outer wall forming a circle with a radius
    14·1 answer
  • Does wve travel faster through glass or air
    11·1 answer
  • 4) Jessica and Martin start riding their bicycles towards each other at 2 pm. At 2 pm, they are 25 miles apart. Jessica rides he
    5·1 answer
  • Please Explain it to me I really need help with this if you can I will mark u brainliest​
    10·1 answer
  • How do I determine the amount of time taken to empty a large tank full of water?
    9·1 answer
  • WHAT IS THE NET FORCE (CENTRIPETAL FORCE) FOR A 1500 KG
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!