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
Throwing a football is an example of force because
siniylev [52]

Answer:

i found this provided by the San Francisco 49ers (found on Khan Academy)

Explanation:

I HOPE THIS HELPS!!!

So, what is a force? A force is a push or a pull exerted on one object from another. Forces make things move. You can make something start or stop when you push or pull an object.

There are many different types of forces in action in football. A player kicking a football is a force that makes the football fly through the air. A quarterback throwing a football is another example of a force that makes the football fly in a game.

When studying the concept of force, we can look to history to find mathematical principles that guide the laws of motion. Sir Isaac Newton was one of the most famous scientists of the 17th century to study the laws of forces and motion. Through careful study of how objects react to various forces, Newton developed the Three Laws of Motion. Below are explanations of each law and how these laws can be applied to football.

4 0
3 years ago
1. Stops: Using the information learned in this course, explain three things you will not do when driving.
vazorg [7]
Don't text while driving
don't get your eyes off the road
don't get distracted
4 0
3 years ago
How much heat must be removed from 456 g of water at 25.0°C to change it into ice at - 10.0°C?
Svet_ta [14]

Answer:

229,098.96 J

Explanation:

mass of water (m) = 456 g = 0.456 kg

initial temperature (T) = 25 degrees

final temperature (t) = - 10 degrees

specific heat of ice = 2090 J/kg

latent heat of fusion =33.5 x 10^(4) J/kg

specific heat of water = 4186 J/kg

for the water to be converted to ice it must undergo three stages:

  • the water must cool from 25 degrees to 0 degrees, and the heat removed would be Q = m x specific heat of water x change in temp

        Q = 0.456 x 4186 x (25 - (-10)) = 66808.56 J

  • the water must freeze at 0 degrees, and the heat removed would be Q = m x specific heat of fusion x change in temp

         Q = 0.456 x 33.5 x 10^(4) = 152760 J

  • the water must cool further to -10 degrees from 0 degrees, and the heat removed would be Q = m x specific heat of ice x change in temp

        Q = 0.456 x 2090 x (0 - (-10)) = 9530.4 J

The quantity of heat removed from all three stages would be added to get the total heat removed.

Q total = 66,808.56 + 152,760 + 9,530.4 = 229,098.96 J

6 0
3 years ago
Which of the three recording stations was closest to the epicenter of the earthquake, based on the seismograms shown below?
Nastasia [14]

Answer:C

Explanation:took quiz

3 0
4 years ago
Read 2 more answers
Una ola oceánica viaja a aproximadamente 1,97 m / s. Esto es 4 millas por hora. La frecuencia de las ondas es de aproximadamente
yKpoI14uk [10]

Answer:

λ = 28,14 m

Explanation:

To find the wavelength of the wave you use the following formula:

v=\lambda f  (1)

v: speed of the wave = 1,97 m/s

λ: wavelength

f: frequency of the wave = 0,07 Hz

You replace the values of v and f in the equation (1) and solve for λ:

\lambda=\frac{v}{f}=\frac{1,97m/s}{0,07Hz}=28,14m

hence, the wavelength of the wave is 28,14 m

5 0
3 years ago
Other questions:
  • If the mass of an object increases, how is its acceleration affected, assuming the net force acting on the object remains the sa
    5·1 answer
  • Which term refers to the rate of change of motion?
    7·1 answer
  • How many neutrons are in an arsenic atom? I belive there are 42, but better safe than sorry!
    7·1 answer
  • Its Human Relations
    13·1 answer
  • Curves on some test tracks and race courses, such as the Daytona International Speedway in Florida, are very steeply banked.
    11·1 answer
  • Where does the body get each of these
    5·2 answers
  • The space shuttle slows down from 1200 km/hr to 400 km/hr over 10 seconds. What is the space shuttles deceleration?
    11·1 answer
  • Marcy pulls a backpack on wheels down the 100 m hall. The 60N force is applied at an angle of 30° above the horizontal. How much
    11·1 answer
  • Can anyone help me on this thnxs ​
    9·1 answer
  • the moderate temperatures of islands throughout the world has much to do with water's vast supply of internal energy. high evapo
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!