Problem Solving Assignment

Problem Solving Assignment

<p> Assignment #1</p><p>DT211/1 - Program Design</p><p>Objective: Design an IT solution for a music reading and playing a tune system.</p><p>Specification:</p><p>The system take in a string of characters, e.g. defffefa2abacaded</p><p>And it will scan in each of the characters one at a time, and determine if the character is an alphabetical character ('a'-'z'), or a numerical character ('0'-'9'). If it is not either of those two types of characters, e.g. a dash ('-'), a colon (':'), or a semi-colon (';') then we ignore that character.</p><p>Assume there is a function as follows;</p><p>PLAY NOTE X FOR DURATION Y; if there is no number following a note (e.g. 'd') we give it a duration of 1, but if there is a number after the note (e.g. 'a2'), then we give it the duration of that note.</p><p>Try to express your solution in as much detail as possible, highlighting any potential data structures you may deem suitable, and identify possible input errors that you are trapping. Also explain how the program will know it has reached the end of the tune.</p><p>Assignment Submission: 1. Explain what background reading you undertook to understand the system (if any). 2. Explain in simple English how the system will work. 3. Draw a flowchart for the design of this system. 4. Write the pseudo-code to follow the flowchart. 5. Highlight the benefits of your approach, the drawbacks of your approach, and any alternatives you could have undertaken.</p><p>Submission Date and Details: You are required to submit by 8th November 2011. You will submit your assignment accompanied by Labs #1-5 and Tutorials #1-3 using the template file on this webpage. Your submission will be in all of the following three ways (1) using webcourses, (2) by email with an email heading PROGRAM DESIGN ASSIGNMENT, and (3) print out and hand up to my in class your completed submission.</p><p>Please Note: This is an individual assignment. Do your own work. Any student suspected of copying or plagiarising another piece of work will be dealt with by the DIT code of ethical conduct.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us