(5/5)

Hire Me
(5/5)

Hire Me
(5/5)

Hire Me
(5/5)

Hire Me
(5/5)

# purpose of this homework assignment is to help you practice the concepts we have learned and prepare you for the quizzes.

INSTRUCTIONS TO CANDIDATES

The purpose of this homework assignment is to help you practice the concepts we have learned and prepare you for the quizzes. It will be graded for effort and completeness, not for correctness, so that you use this as an opportunity to truly practice and learn the material without concern for how this assignment will affect your grade. Therefore, to truly learn, please complete this assignment in an honest manner, abiding by the acceptable and unacceptable behaviors described below.

AFTER THE HW DUE DATE, SOLUTIONS WILL BE POSTED IN THE CANVAS ORGANIZATION. PLEASE COMPARE YOUR SOLUTIONS TO THE SOLUTION FILE, TO ENSURE YOU ARE UNDERSTANDING THE MATERIAL. BECAUSE IT IS GRADED ON COMPLETION, A HIGH SCORE DOES NOT NECESSARILY MEAN YOU DID IT CORRECTLY. THEREFORE, PLEASE COMPARE YOUR SOLUTIONS TO THE POSTED SOLUTION FILE.

- Create and call functions

- Solve linear equations using matrices in MATLAB

- Use built-in statistical functions

1. You will be creating a MATLAB script that will do the tasks described in #2 and #3 below. But first, create a flowchart visually representing #2 (no need to include #3 in your flowchart for this HW). You will be submitting this flowchart electronically, so please go to www.draw.io or use any flowchart software of your choice. Please include a text box with your name and team number at the top. Save your file as a .pdf or .jpg. You can also take a screen shot of your flowchart and paste it to a Word document. Do NOT submit as .xml or .html.

2. Write a MATLAB script that will find basic statistical information of the dataset, and then use your judgment to come to a conclusion. The script should:

o Display this sentence at the start of the program: “I, (Your Name), certify that I have completed this assignment in an honest manner.”

o Call a function that will calculate statistical information. This function will perform the following tasks:

Ask the user to enter the name of a data file. First, you will run the program using the data file “Action.txt”, which contains the movie revenues for top action movies (posted in the Canvas organization). Then, you will run the program using the data file “Drama. txt”, which contains the top movie revenues for top drama movies. (Data taken from https://www.the-numbers.com/market/). The rows of the data represent the movie ID number. For example, row 10 is movie ID 10.

Check whether the filename exists (error check indefinitely).

Find the sum of the movie revenues (use the built-in command).

Find the maximum and minimum movie revenues along with the corresponding movie ID number (use the built-in commands).

Sort the movie revenues from lowest to highest (lowest revenue in the first row – use the built-in command), and store the sorted data in a new variable.

o From the main program, display all results as follows:

“The sum of the movie revenues is #”

“The max revenue is #, corresponding to movie #. The min revenue is #, corresponding to movie #”

“The sorted revenues are: ”, and display the new variable with the sorted revenues.

First run the program using the “Action.txt” data file, and then using the “Drama.txt” data file. Based on the results, what movie genre do people seem to prefer, and how did you come to this conclusion? Write your response in comments inside your script.

3. Once you have completed #2, add on to the main program to complete these tasks:

o From the main program, call a function that will get the data needed to solve a system of linear equations. You will use the file “Eq1.txt”, found in the Canvas organization. This function will perform the following tasks:

Ask the user to enter the name of a data file.

Check whether the filename exists (error check indefinitely).

Get the matrix of coefficients (matrix A) and vector b, needed to solve Ax=b.

Send values of A and b to the main.

o From the main program, call a function that will solve the system of linear equations (Ax=b). This function will need the variables A and b sent from the main.

o From the main program, display the result of solving this system of linear equations as follows: “The values, after solving the system of equations, are: ”, and display the resulting vector.

Include a comment with your name at the top.

Include comments, indentation, and whitespace so that your program is neat and understandable to anyone who reads it.

This is an individual submission. You need to submit the flowchart and the m-files. Place your m-files and flowchart in a folder and name the folder InstructorLastName_ClassTime_HW4_YourUsername (for example, Balawejder_5pm_HW4_abc123). Then, you will need to zip this folder. To do this, follow these steps: (1) Right click on the folder, go to “Send to”, then “Compressed (zipped) folder” (see Image 1), (2) Name your zipped folder the same way you named your regular folder (InstructorLastName_ClassTime_HW4_YourUsername), and submit your zipped folder at the start of class, through the assignment link in your section’s Canvas site.

Image 1

You do not need to submit the data files.

(5/5)

## Related Questions

##### . The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

##### . Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

##### . The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

##### . Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

##### . The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

431 Experts Online