Beruflich Dokumente
Kultur Dokumente
• Include the head_Mhw at the TOP of your M-file. Your header MUST NOT interfere with the
execution of your program. Complete your header including your Purdue e-mail address, your lab
division and section, and a description of your program (what it does and how it does it).
• Do NOT use the clc command.
• Do NOT use multi-line MATLAB comments %{ and %}. Single line comments expected.
• Comment each variable in your program the first time it is used. Your comment should introduce your
variable (why is this variable needed in the program? what does it do?).
• Indent exactly two spaces (NOT FOUR which is the MATLAB default, see page 75 of the notes packet).
• Use meaningful variable names! Rarely are single character variable names meaningful.
• Your program must accept input and produce output in the same manner as seen in the example
executions in this document.
• Place a space between all operators and operands.
• Do NOT single space the entire program. Use blank lines when appropriate.
Problem Description: Given a range of non-negative integer values (smallest and largest) count and display
those numbers whose consecutive digits have the same difference.
Example: 1234 Example: 4246
• This example does meet the criteria in the • This example does NOT meet the criteria in the
problem statement. problem statement.
• This is an individual assignment. All of the work you submit is expected to be your own. Once you
begin to write your algorithm (either code or flowchart) you should only consult course staff members
for assistance.
• Do not share access to your work (in any form) with another student.
• Be mindful when working side-by-side with others in the course (including during the evening TA
hours), working as such can lead to the development of a collaborative effort with no distinguishable
differences by two different students.
• Please refer to the course packet regarding academic integrity policies and consequences for being found
in violation.
How will be program be tested?
• Each of the example cases shown will be used along with a few other reasonable test cases.