CS计算机代考程序代写 gui Faculty of Science, Engineering and Technology

Faculty of Science, Engineering and Technology
Introduction to Programming
Credit Task 7.2: GUI Music Player
Overview
This task allows you to demonstrate the ability to use the Gosu library and API (application programmer interface) to develop a graphical interface application. The application is a Music player which is a graphical interface version of Pass Task 7.1 (Music Player with Menu). The program should read in album and track information from a predefined file. The user should then be able to view the albums and select an album, then view the tracks and select a track to play.
Purpose: Task:
Time: Resources:
Learn to write a user interface application using a structured programming language. you need to use the Gosu library and API.
Demonstrate the use of:
• File handling
• Arrays
• Records/Class attributes
• Libraries (APIs)
in the context of the requirements for the Music application described in this document. This task should be completed before the start of week 12.
Sobkowicz, M 2015 Learn Game Programming with Ruby: Bring Your Ideas to Life with Gosu, The Pragmatic Programmer.
Frieder, O. Frieder, G. & Grossman, D. 2013 Computer Science Programming Basics in Ruby, O’Reilly Media (Chapter 6)
Flanagan, D. & Matsumoto, Y. 2008 The Ruby Programming Language, O’Reilly.
Pine, C 2014, Learn to Program (2nd Ed), Chapter 11, The Pragamatic Programmer (library
version – follow the link)
Submission Details
You must submit the following files to Doubtfire:
■ Code for the program, written in Ruby
■ A screenshot of the code running
Make sure that your task has the following in your submission:
■ Code must follow the coding conventions used in the unit (layout, and use of case).
■ You are storing and working with multiple values in an array.
■ You are using records and enumeration to store the values.
■ The code must run and you must capture a screenshot that shows it working in accordance with the requirements as described here along with any clarifications provided by your tutor.

Introduction to Programming Credit Task 7.2: GUI Music Player
Instructions
In this task you will build on the skills developed in your other Pass, Credit and Tutorial tasks.
You will be given feedback on how well you design your code as well as how well you name your artifacts. There is a minimum requirement for naming and design before your code can be accepted at the following grade level – regardless of how well the code is functioning.
The grade achievable for this task (within the Credit range) is:
Middle Credit Level – 65
(Note: you must have completed all the Pass tasks and the Tutorial tasks adequately, otherwise your grade will be lower).
Note: See the Gosu audio API at https://www.rubydoc.info/github/gosu/gosu. You will need to use the following:
Gosu::Song.new(filelocations) – create a new song. song.play(false) – play the song.
.

Middle Credit Level Requirements – 65
The program must read in (from a file) a single album and up to 15 tracks for the album. The information read from the file should include:
• Album title
• Artist
• Artwork file name (place your artwork in an /images folder under the main folder)
• The number of tracks
• The title of each track
• The file location of each track (again, use a sub-directory/folder to store the song files.)
At this level user interaction must be entirely through a GUI. Your GUI interface should show a single album using either a text description, artwork or both. Users should be able to click on the Album information (i.e the artwork) and the tracks will be listed and the first track start playing. The tracks should continue to play in order until either they are finished or the program is stopped. The currently playing track must be indicated somehow (e.g the track could be highlighted or display a simple text message ‘Now playing ..’). You must use the Gosu audio API for this component.
Your GUI may look something like the following:
End of Task