download the answer and the code f : A Dam in Iraq is discharging water quantities da e manager of the dam requests from one of the da

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.1: Function And Parameter Declarations
Problem 10E
icon
Related questions
Question
Write the code for the question using the Matlab editor
and download the answer and the code file in the designated places *
Q: A Dam in Iraq is discharging water quantities daily as shown in the table below,
the manager of the dam requests from one of the dam engineers to write a MATLAB
program to find the quantities that less than the average value of all discharged
quantities. He is also ordered the engineer to display the results like a table and
plotting them as two groups, each group must plot as a subplot.
The program must include the following:
1- Title and definition of the variables in the first part.
2- Section for input values.
3- Section to find the quantities that less than the average value of all discharged
quantities.
4- Printing the results as a table.
5- Plotting two groups of discharged quantities (first group from one to the
middle and the second group from middle to the end value) as two subplots.
The plots must include title, axes labels, scaling both axes, use any style color
for lines and markers.
The code must write using MATLAB editor. Also, each student must take clear
pictures to the program and the results (table and the plots), then converted them to
a pdf file. The file of the MATLAB program must submit with the answer too.
Water
discharged 200 320 180 290 370 170 240 255 270 300 230 150 120 280 330 260
(m³/day)
Time (day) 1 2
3
4 5
7
8
10 11 12 13 14 15 16
Transcribed Image Text:Write the code for the question using the Matlab editor and download the answer and the code file in the designated places * Q: A Dam in Iraq is discharging water quantities daily as shown in the table below, the manager of the dam requests from one of the dam engineers to write a MATLAB program to find the quantities that less than the average value of all discharged quantities. He is also ordered the engineer to display the results like a table and plotting them as two groups, each group must plot as a subplot. The program must include the following: 1- Title and definition of the variables in the first part. 2- Section for input values. 3- Section to find the quantities that less than the average value of all discharged quantities. 4- Printing the results as a table. 5- Plotting two groups of discharged quantities (first group from one to the middle and the second group from middle to the end value) as two subplots. The plots must include title, axes labels, scaling both axes, use any style color for lines and markers. The code must write using MATLAB editor. Also, each student must take clear pictures to the program and the results (table and the plots), then converted them to a pdf file. The file of the MATLAB program must submit with the answer too. Water discharged 200 320 180 290 370 170 240 255 270 300 230 150 120 280 330 260 (m³/day) Time (day) 1 2 3 4 5 7 8 10 11 12 13 14 15 16
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Network Protocols
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning