Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Operating System Expert

I have sarted this and will send you what I have along with the files given to us.

Implement the storage portion of the tsuPod (pronounced "su Pod" - the much smaller version of the iPod).

Specifications:

General design:

The code must be designed to allow the storage of the following data:

-up to 8 songs not to exceed 25MB

-for each song we will store the title (string), artist (string), and size (int) in MB-

-the title and artist cannot be blank

-the size of each song must be greater than zero

Code 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 file

-you have to create file test_tsuPod.cpp that tests the functionality of tsuPo

- following variables and structures must be defined in your tsuPod.h code (Note: in your code 8 songs should be presented with array of structures)

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.cpp
- If you are using the command line for compilation you need to type
g++ -c tsuPod.cpp //produce tsuPod.o object file
g++ -c test_tsuPod.cpp //produce test_tsuPod.o object file
g++ -o test tsuPod.o test_tsuPod.o //to get the executable file test.
Note: it is a very good idea to test your code for command line compilation, because if you code does not compile through command line some points can be deducted.
? If you want to use DevC++ environment for simple testing, for the linker to work correctly you have to create a new project and add tsuPod.cpp, tsuPod.h, test_tsuPod.cpp files to this project.
Testing:

- Create file test_tsuPod.cpp where you are going to test the functionality of the tsuPod program
- Following storage functionalities have to be tested to receive full grade:
o Initialization
o Successful song addition
o Unsuccessful song addition - failure due to the lack of memory
o Unsuccessful song addition - failure due to other reason (ex: no empty slots)
o Successful song removal
o Unsuccessful song removal - failure because a song with such name was not found
o Clearing of the song list
o Shuffle functionality - implementation and testing of this function will result in an
extra grade.
? In your test_tsuPod.cpp, explain 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

IMPORTANT!
You must submit all three files tsuPod.h, tsuPod.cpp, test_tsuPod.cpp in one archive Assignment4_ xxx1_ xxx2.zip, where xxx1 is your first name and xxx2 is your last name.
Turn in: Hard copy of the source file (beginning of class on 10/22)
.
Note: This program has to be done using a Linux environment.
You may do this program as an individual or with one partner. If you choose to use a partner, you will submit one code, but each file name has to have names of BOTH students who worked on the project.

Attachment:- program4.zip

Operating System, Computer Science

  • Category:- Operating System
  • Reference No.:- M91613671
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Operating System

Catalog course descriptionin this course students carry out

Catalog Course Description In this course students carry out independent research in a significant technical area of information, network, and computer security. The student is to investigate a technical area, research i ...

Taskyour job in this assignment is to create two virtual

Task Your job in this assignment is to create two Virtual machines each running a different but the latest distribution of Linux e.g. Ubuntu Server and CentOS. Each of these VM's is to offer services to a user base. The ...

Question research hex editors available for mac os and

Question : Research hex editors available for Mac OS and Linux. Based on the documentation, how easy would validating these tools be? Select at least two hex editors for each OS, and discuss what you would do to validate ...

State the required answer precisely and then provide proper

State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. Briefly describe the following concepts and indicate how they are related in the context ...

Question 1answer the following questions 10 marks a

Question 1 Answer the following questions: 10 marks a. Consider the following page reference string: 3, 1, 4, 1, 2, 3, 5, 3, 2, 1, 2,5, 4, 3, 5, 2, 4,2, 5,3 Using the above page reference string display the contents of t ...

Question topic computerized operating systems os are almost

Question: Topic: Computerized Operating Systems (OS) are almost everywhere. We encounter them when we use out laptop or desktop computer. We use them when we use our phone or tablet. Find articles that describes the diff ...

Foundation of information technologyresearch types of

Foundation of Information Technology Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Expl ...

Question you are a security administrator responsible for

Question: You are a security administrator responsible for providing secure configuration requirements for new laptop deployments. After reading Module 2 of Certified Secure Computer User v2exercises, apply the configura ...

Question state the required answer precisely and then

Question : State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. What is the purpose of the command interpreter? Why is it usually separate fr ...

Discussion question this research assignment will give

Discussion Question : This research assignment will give further information on the nature and workings of multi-tasking and multi-processing operating systems. All information reported in this assignment is to be in the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As