Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB NOT C CODING PLEASE. Read all instructions before beginning your work. COMP1200- MATLAB - assign06 Due 11:59 pm - Friday- March 8,2019 NOTE: Your

MATLAB NOT C CODING PLEASE.

image text in transcribedimage text in transcribedimage text in transcribed

Read all instructions before beginning your work. COMP1200- MATLAB - assign06 Due 11:59 pm - Friday- March 8,2019 NOTE: Your submitted file(s) MUST be spelled and cased as instructed. Submit assign06a.n, assign06a.m, assignO 1.m via Canvas Before you start writing your program: Download and save a copy of lake_powell.txt in the folder where you will save your assign06 programs. The functions will look in the current folder for the data file Problem: From MATLAB for Engineers, 5e, 2018, H. Moore p.312, (4e, 2012, p306). These instructions replace the instructions in the text. The Colorado River Drainage Basin covers parts of seven western states. A series of dams has been constructed on the Colorado Rier and its tributaries to store runoff water and to generate low-cost hydroelectric power. The ability to regulate the flow of water has made the growth of agriculture and population in these arid desert states possible. Even during periods of extended drought, a steady, reliable source of water and electricity has been available to the basing states. Lake Powell is one of these reservoirs. lake_ powell.txt contains data on the water level (feet above sea level) in the reservoir for the four years 2013 to 2016. Submit before assign06 BEFORE vou leave for SPRING BREAK Instructions for all assignments scripts See Standards for Documentation of MATLAB Programs on the Canvas Resources page O Insert comments at the top and throughout each file o Include the follow comments at the beginning of this (and ALL) files. % submitter's name, GRUP # Grade of ZERO for files if submitter name not part of Canvas group. Not in a group? GROUP# is"none". For your own protection, % other group members' names type "none" if submitting alone % program file name, ex. a sig 02am ALL STUDENTS' NAMES MUST MATCHINA MESON CANVAS. due date of the assignment % statement about collaboration REQUIRED, even if you didn't collaborate. See syllabus for examples. % a short narrative about what the file does MODIFY narrative to include current requirements. o Use the algorithm given as comments throughout your program Observe the instructor's rule for naming variables. o Use ALL CAPS for constants variable names. o Start other variables with lower case o Use descriptive variable names. Use Sample Input/Output as a guide Code clarity: o Indent blocks as needed. Use Smart Indent. o Divide your solution program code into sections as noted in the If you do not submit individually, there will be a 5 POINTS PENALTY for not joining a group on Canvas. Groups can be 2-4 students. DO NOT join a group unless you have worked with the other members. If you do, you will be removed from the group and given the grade of zero. algorithm. Use blank lines as needed to group statements. o Use section comments as well as the algorithm step comments. o Remove statements from previous assignments that do not apply to the MINUS FIVE POINTS for not having the CORRECT CURRENT GROUP NUMBER in your comments. current requirements. Program: assign06a.m Revise your assign05.m by adding the exist ) function to print a message only if the data file is not available. The output should be the same as with assign05.m. New commands exist ) INCLUDE APPROPRIATE COMMENTS Check the file ID to determine if the file is available Only print message if file is not available 3 Use mean to determine the avcrage elevation of the water level for each year and the 6 Align numbers under headings Average for Each Year (in feet) 2 2 0 Overall average: 3592,18 feet INCLUDE APPROPRIATE COMMENTS. Do not save the other ycars. Do not use a loop. Print the lake powel1 matrix with title and year column headings. Print water level with Use mean to determinc and print the average elevation of the water for cach month for Align numbers under headings Problem Constants: (with unit comments) as given in previously 05 and 06 6 COMP1200m- Spring 2019- assign06-p. 2 of 2 lake_powell.txt Download lake_powell.txt (792 Bytes) 3.5943800e+003 3.5634100e+003 3.5962600e+003 3.6014100e+003 3.5891100e+003 3.5603500e+003 3.5919400e+003 3.598 6300e+003 3.5844900e+003 3.5574200e+003 3.5892200e+003 3.5978500e+003 3.5830200e+003 3.5575200e+003 3.5899400e+003 3.5997500e+003 3.5847000e+003 3.5716000e+003 3.5982700e+003 3.6046800e+003 3.5870100e+003 3.5980600e+003 3.6093600e+003 3.6109400e+003 3.5830700e+003 3.6077300e+003 3.6087900e+003 3.6094700e+003 3.5758500e+003 3.6049600e+003 3.6049300e+003 3.6055600e+003 3.5710700e+003 3.6022000e+003 3.6020800e+003 3.6022700e t 003 3.5707000e+0033.6023100e+003 3.6061200e+003 3.6012700e+003 3.5696900e+003 3.6026500e+003 3.6074600e+003 3.5997100e+003 3.5657300e+0033.6001400e+003 3.6049600e+003 3.5967900e+003 Read all instructions before beginning your work. COMP1200- MATLAB - assign06 Due 11:59 pm - Friday- March 8,2019 NOTE: Your submitted file(s) MUST be spelled and cased as instructed. Submit assign06a.n, assign06a.m, assignO 1.m via Canvas Before you start writing your program: Download and save a copy of lake_powell.txt in the folder where you will save your assign06 programs. The functions will look in the current folder for the data file Problem: From MATLAB for Engineers, 5e, 2018, H. Moore p.312, (4e, 2012, p306). These instructions replace the instructions in the text. The Colorado River Drainage Basin covers parts of seven western states. A series of dams has been constructed on the Colorado Rier and its tributaries to store runoff water and to generate low-cost hydroelectric power. The ability to regulate the flow of water has made the growth of agriculture and population in these arid desert states possible. Even during periods of extended drought, a steady, reliable source of water and electricity has been available to the basing states. Lake Powell is one of these reservoirs. lake_ powell.txt contains data on the water level (feet above sea level) in the reservoir for the four years 2013 to 2016. Submit before assign06 BEFORE vou leave for SPRING BREAK Instructions for all assignments scripts See Standards for Documentation of MATLAB Programs on the Canvas Resources page O Insert comments at the top and throughout each file o Include the follow comments at the beginning of this (and ALL) files. % submitter's name, GRUP # Grade of ZERO for files if submitter name not part of Canvas group. Not in a group? GROUP# is"none". For your own protection, % other group members' names type "none" if submitting alone % program file name, ex. a sig 02am ALL STUDENTS' NAMES MUST MATCHINA MESON CANVAS. due date of the assignment % statement about collaboration REQUIRED, even if you didn't collaborate. See syllabus for examples. % a short narrative about what the file does MODIFY narrative to include current requirements. o Use the algorithm given as comments throughout your program Observe the instructor's rule for naming variables. o Use ALL CAPS for constants variable names. o Start other variables with lower case o Use descriptive variable names. Use Sample Input/Output as a guide Code clarity: o Indent blocks as needed. Use Smart Indent. o Divide your solution program code into sections as noted in the If you do not submit individually, there will be a 5 POINTS PENALTY for not joining a group on Canvas. Groups can be 2-4 students. DO NOT join a group unless you have worked with the other members. If you do, you will be removed from the group and given the grade of zero. algorithm. Use blank lines as needed to group statements. o Use section comments as well as the algorithm step comments. o Remove statements from previous assignments that do not apply to the MINUS FIVE POINTS for not having the CORRECT CURRENT GROUP NUMBER in your comments. current requirements. Program: assign06a.m Revise your assign05.m by adding the exist ) function to print a message only if the data file is not available. The output should be the same as with assign05.m. New commands exist ) INCLUDE APPROPRIATE COMMENTS Check the file ID to determine if the file is available Only print message if file is not available 3 Use mean to determine the avcrage elevation of the water level for each year and the 6 Align numbers under headings Average for Each Year (in feet) 2 2 0 Overall average: 3592,18 feet INCLUDE APPROPRIATE COMMENTS. Do not save the other ycars. Do not use a loop. Print the lake powel1 matrix with title and year column headings. Print water level with Use mean to determinc and print the average elevation of the water for cach month for Align numbers under headings Problem Constants: (with unit comments) as given in previously 05 and 06 6 COMP1200m- Spring 2019- assign06-p. 2 of 2 lake_powell.txt Download lake_powell.txt (792 Bytes) 3.5943800e+003 3.5634100e+003 3.5962600e+003 3.6014100e+003 3.5891100e+003 3.5603500e+003 3.5919400e+003 3.598 6300e+003 3.5844900e+003 3.5574200e+003 3.5892200e+003 3.5978500e+003 3.5830200e+003 3.5575200e+003 3.5899400e+003 3.5997500e+003 3.5847000e+003 3.5716000e+003 3.5982700e+003 3.6046800e+003 3.5870100e+003 3.5980600e+003 3.6093600e+003 3.6109400e+003 3.5830700e+003 3.6077300e+003 3.6087900e+003 3.6094700e+003 3.5758500e+003 3.6049600e+003 3.6049300e+003 3.6055600e+003 3.5710700e+003 3.6022000e+003 3.6020800e+003 3.6022700e t 003 3.5707000e+0033.6023100e+003 3.6061200e+003 3.6012700e+003 3.5696900e+003 3.6026500e+003 3.6074600e+003 3.5997100e+003 3.5657300e+0033.6001400e+003 3.6049600e+003 3.5967900e+003

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How can computers provide support for making structured decisions?

Answered: 1 week ago

Question

Implement the following C++ code in MIPS while (tmp

Answered: 1 week ago

Question

Is conflict always unhealthy? Why or why not? (Objective 4)

Answered: 1 week ago