alright
On a specially formatted audio compact disk, the audio player initially reads the
CD_Header information. The CD_Header is located at the start of the CD and
describes the properties of the disk. Using the CD_Header information, the audio
player reads the Song_List_Header. The Song_List_Header specifies the properties
for each song on the disk. The maximum number of tracks any CD can
hold is 50. A program can be written to correctly read and play each track from
the CD using the following information:
Special Data Types (Records):
TIME:
Minutes :Integer
Seconds :Integer
CD_Header:
CD_Type :Character
Total_CD_Time :TIME
Number_of_Songs :Integer
Location_of_Data :TIME
Location_of_Song_List_Header :TIME
Song_List_Header:
Location_of_Song :TIME
Length_of_Song :TIME
Commands (Functions):
Seek(TIME) Position the CD player’s laser to the position TIME
Display(TIME) Display the variable TIME
READ(x) Read data from the CD and assign to variable x for all data types
Play Play the CD at the CD player’s current laser position
Pause Maintain CD player’s laser position, stop reading data
Stop Stop CD player and position the laser to start of disk
Using pseudocode, write a generalised function that will read data from the CD
to a variable of type CD_Header, and to an array that holds information about each track
i dont understand how to approach this qusetion , we are talking about data streams etc from Software dev view of hardware , so do we approach this as a normal algorithm? even so i had no idea how to do this..