Create a super mario brothers game application, MATLAB Programming

Assignment Help:

Create a Super Mario Brothers game in Matlab. The lines of codes do not matter. But, The requirements are:

REQUIREMENTS:

Modular design and implementation

Algorithm documented inline as comments

Library functions

Use standard library functions for purposes other than I/O

Programmer-defined functions

Create functions to implement logical modules of your program

Be sure that they use parameters and that they return values

Abstraction: Data structures

Arrays

Use vectors (other than for strings)

Use matrices (other than for strings)

Secondary storage (disk files)

Read data from files into your program's data structures

Write data from your data structures to disk

Strings

creation / concatenation: array building, sprintf()

truncation; parsing; searching

Misc

Functionality

Allow the user to repeat the program

Eliminate all MATLAB warnings and error messages

Code is general and allows flexibility in execution

Form

Indent all code neatly and uniformly

Credit all assistance and borrowed code

Whitespace used to enhance readability

Program control

Conditionals Loops

IF FOR

SWITCH WHILE

IF and SWITCH options should not be repetitious - if the options are all doing essentially the same thing, move that code to outside of the conditional.

Data processing

Running totals Array-building

Sorting Searching

Random numbers

User Interface

Command window

Input (strings and numbers)

Formatted output (format strings, format modifiers, escape sequences)

Dialog boxes

Plotting: Cartesian coordinates and/or polar coordinates

Multiple data sets, single plot

Pay attention to these:

Generality

Make your program flexible. Let the user be able to add options instead of only pre-defining them. For example, if you are making an expense tracker, don't just give a fixed set of expense categories - store the values in a file so that they can be expanded without impacting the program. This also ties in with the next item:

Allow the user to contribute

Can you write the program so that the user can add/change/delete data items? The first module to be written is usually that which allows the user to add to the data file. For example, a test generator is a possible project; a test generator where the user can also add and delete questions is a better project.

Avoid excessive hardcoding

If you have a large number of hard-coded assignment statements then you have excessive hardcoding. Use data files to contain the hardcoded information. [If you wonder if you have too many hard-coded values - you do.]

Avoid long program files and functions

A function or program that has more than about 200 lines should probably be broken into more functions, especially if there is significant repetition - this implies the need of a loop or a function.

Use parameters

If you are writing multiple functions which perform essentially the same task, you need to reduce to a single function with a parameter.

Reasonable use

Using a feature from the assignment list (above) must make sense. For example, don't concatenate some strings just to satisfy the requirement - the task must make sense for your project. You will not receive credit for "fluff".


Related Discussions:- Create a super mario brothers game application

Assignment`, matlab code for The region bounded by the parabola x2 = y and ...

matlab code for The region bounded by the parabola x2 = y and the line y = x in the first quadrant is rotated about the X-axis to generate a solid. Find the volume of the solid.

Characters and encoding, Characters and Encoding: A character in a MAT...

Characters and Encoding: A character in a MATLAB is represented by using single quotes (example, 'a' or 'x'). The quotes are essential to denote a character; without them, the

Implement a matlab function to calculate value, Implement a MatLab function...

Implement a MatLab function to calculate y.  The function should take two input arguments 1) A vector of parameters In the above example this would be of length 3, the first

planar pantograph-based leg, The diagram shown on the next page represents...

The diagram shown on the next page represents a planar pantograph-based leg for a walking robot. This model utilizes only one DOF to generate the walking gait at the foot link 'n

Determine an expression for the transfer function, The circuit diagram of a...

The circuit diagram of an active filter is shown below. (a) Determine an expression for the transfer function of the filter. (b) Hence find an expression for the frequency res

CDMA, Code and decode a 32 bit long data for a specific user in CDMA if the...

Code and decode a 32 bit long data for a specific user in CDMA if there is only 1 user and no noise.

Generate two waveforms-analog waveform, The purpose of this lab is to intro...

The purpose of this lab is to introduce students to the basic concept of overtones. In order to generate two tones at the same time, you need to generate two waveforms and add them

display in gui, how to display any words to the editto

how to display any words to the edittor

Create matlab graphs of data properly annotated, A. Introduction The p...

A. Introduction The project consists of two parts. In the first part you are asked to perform some preliminary calculation and plotting, and to write the introduction for your

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd