subject

Objective:Implement the storage portion of the tsuPod (pronounced "su Pod" - the much smaller version of the iPod). Learn how to use structures. Specifications:General design:The code must be designed to allow the storage of the following data:up to 8 songs not to exceed 25MBfor each song we will store the title (string), artist (string), and size (int) in MBthe title and artist cannot be blankthe size of each song must be greater than zeroCode design:you are provided with the tsuPod. h file with prototypes of the functions that you need to define. (Note: some of the prototypes have to be modified for the test code to work correctly)you have to create file tsuPod. cpp where you define functions specified in tsuPod. h fileyou have to edit file test_tsuPod. cpp that tests the functionality of tsuPod· following variables and structures must be declared in your tsuPod. h or tsuPod. cpp code (Note: in your code 8 songs should be presented by an array of structure variables)const int NUM_SONGS = 8; /*we will have the maximum 8 slots with some slots being empty /const int MEMORY_SIZE = 25; /*total memory size of tsuPod in MB*/struct TsuPod{ string title; string artist; int size;};tsuPod. h should be included in both tsuPod. cpp and test_tsuPod. cppYou must use linux for this project. you need to type "g++ tsuPod. cpp test_tsuPod. cpp" to compile and get the executable file. Note: all code will compiled by the grader under linux on eros. cs. txstate. edu. Testing:Edit file test_tsuPod. cpp where you are going to test required functionality of the tsuPod program. Following storage functionalities have to be tested to receive full grade:InitializationSuccessful song additionUnsuccessful song addition – failure due to the lack of memoryUnsuccessful song addition – failure due to other reason (ex: no empty slots)Successful song removalUnsuccessful song removal – failure because a song with such name was not foundClearing of the song listShuffle functionality – implementation and testing of this function will result in an extra grade. In your test_tsuPod. cpp explain you what exactly you are testing with each block of code. Examples: test addition of a song to a play list, test shuffling capabilities, etc. tsuPod. h file and the example of the test_tsuPod. cpp are located in the archive of the assignment

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Create a string list. 2. use console.readline() to collect values of firstname, lastname, street, city, state, zip, save them to list. 3. write a simple linq statement, call method uppercasewords() to change first letter to uppercase. 4. create a foreach statment to display the information. public static string uppercasewords(string value) { char[] array = value.tochararray(); if (array.length > = 1) { if (char.islower(array[0])) { array[0] = char.toupper(array[0]); } } for (int i = 1; i < array.length; i++) { if (array[i - 1] == ' ') { if (char.islower(array[i])) { array[i] = char.toupper(array[i]); } } } return new string(array);
Answers: 3
You know the right answer?
Objective:Implement the storage portion of the tsuPod (pronounced "su Pod" - the much smaller versio...
Questions
Questions on the website: 13722367