Design and implement a dynamic doubly linked list

Assignment Help C/C++ Programming
Reference no: EM13718912

1. Learner Objectives:

At the conclusion of this programming assignment, participants should be able to:

* Design and implement a dynamic doubly linked list

* Allocate and de-allocate memory at runtime

* Manipulate links in a dynamic list

* Insert items into a dynamic linked list

* Delete items from a dynamic linked list

* Edit items in a dynamic linked list

* Traverse a dynamic linked list

II. Prerequisites:

Before starting this programming assignment, participants should be able to:

* Analyze a basic set of requirements for a problem

* Compose C language programs

* Compile a program using Microsoft Visual Studio 2012

* Create basic test cases for a program

* Apply arrays, strings, and pointers

* Summarize differences between array notation and pointer notation

* Apply pointer arithmetic

* Apply basic string handling library functions

* Define and implement structures in C

* Summarize the operations of a linked list

III. Overview & Requirements:

Many of us have large digital music collections that are not always very well organized. It would be nice to have a program that would arrange our music collection based attributes such as artist, album title, song title, genre, song length, number times played, and rating. For this assignment you will write a digital music manager (DMM).

Your DMM program must have a text-based interface which allows the user to select from a menu of options including: load, store, display, insert, delete, edit, sort, rate, and exit. The "load" option reads records from a file into a dynamic doubly linked list. The "store" command writes records, in a dynamic doubly linked list, to a file. "Display" prints records, and its attributes to the screen. This command must print either all records or a single record based on a search field. A search field may be any of the attributes belonging to a record. If a search field matches multiple records, then print the first match to the screen. The "insert" option collects information for each new song record and attributes from the user. The new song record must be placed into the list based on a selected sort option. By default, songs are inserted into the list alphabetically ('a' - 'z') according to artist. Other possible "sort" options include alphabetical ordering based on genre, or increasing numeric value based on rating. "Delete" removes a record from the list. Deletion is based on song title. The "edit" option must allow the user to find a record in the list with any search field. The user may modify any of the attributes in the record. The "rate" action must allow the user to assign a value of 1 - 5 to a song; 1 is the lowest rating and 5 is the highest rating. Lastly, "exit" saves the most recent list to a file.

A record is a struct type which consists of the following attributes:

* Artist - a string

* Album title - a string

* Song title - a string

* Genre - a string

* Song length - a struct type consisting of seconds and minutes, both integers

* Number times played - an integer

* Rating - an integer (1 - 5)

IV. Logical Block Diagram

The logical block diagram for your doubly linked list should look like the following:

As you can see from the illustration a doubly linked list has a pointer to the next node and the previous node in the list. The first node's previous node pointer is always NULL and the last node's next pointer is always NULL. When you insert and delete nodes from a doubly linked list, you must always carefully link the previous and next pointers.

Reference no: EM13718912

Questions Cloud

Which media affected publics perception of attack : Describe the media coverage of these events, and assess the degree to which the media affected the public's perception of the attack.
Describe one of lucretius arguments : Explain one of Lucretius' arguments for the principle that nothing ever springs miraculously out of nothing. Lucretius claims that the universe in its essential nature is composed of only two (types of) things.
Explore the implications of bad data statement : It has been said that there is no bad data, just bad management. Discuss the implications of this statement.
Explore management issues selecting computer hardware : What management, organization, and technology issues should be considered when selecting computer hardware and software?
Design and implement a dynamic doubly linked list : Design and implement a dynamic doubly linked list - Allocate and de-allocate memory at runtime - Analyze a basic set of requirements for a problem
Explain the difference between home and host : What is a ‘home' vs. ‘host' country middlemen and what function does each perform?
How much time will pass after the spill : a spill of hazardous chemical has occurred on a road parallel to a river. How much time will pass after the spill until the contaminated water will reach the wells in row 2? The porosity is 30%.
Determine the resulting motion in body : A body weighing 2 pounds will stretch a spring 4 inches. This same body is attached to such a spring with no accompanying dashpot. Determine the resulting motion. After release does the mass every cross equilibrium?
Determine the specific yield in soil : A soil sample is characterized by a volume of 100ml and a weight of 192g. After drying the sample in an oven at 105 degrees C. What is the specific yield (as percentage)?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  What is wrong with this function

What is wrong with this function? Can you find problem in this code?

  Assignment 1 boxing amoebadevelop a two dimensional

assignment 1 boxing amoebadevelop a two dimensional interactive game with the following features1.use opengl any

  Opportunity to work with both c style strings

The focus of this lab is on using strings. You will have an opportunity to work with both C style strings and the string data type. This lab also gives you an opportunity to use what you have learned previously

  Program reads a number and prints all of its binary digit

Write a program that reads a number and prints all of its binary digits. Print the remainder number % 2, thenreplace the number with number / 2. Keep going until the number is 0.

  Write a c function to convert gallons-quarts-pints and cups

Write a C function named liquid() that is to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups.

  Create a simple command line program that simulates

Instructions:  Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times

  Write fibonacci function that calculates the nth number

The Fibonnacci numbers begin with the numbers 0 and 1 and have the property that each succeeding number is the sum of the two preceding numbers. For xample: 0,1,1,2,3,5,8,13,21,...etc. Write Fibonacci() function that calculates the n'th Fibonacci ..

  Build a traffic light system - microcontroller system

Build the whole system with 3 RAG units and three puffin crossing units and build a team to work on this mini-project, be careful in selecting your team member.

  Main function to input twenty integers in given range

Write a main function to input 20 integers in range of 1-6, function should count number of times the numbers 2 and 5 occur. function must declare statics variables count2 and count5.

  Program calculates and displays salesperson''s commission

The sales manager at Tompkins Company wants a program that calculates and displays each salesperson's commission, which is 10% of his or her sales. It also should display the total commission. Use a value-returning function to get the amount sold by ..

  Make a class employee

Make a class EMPLOYEE with a name and salary. Make a class MANAGER inherit from EMPLOYEE. Add an instance field, named DEPARTMENT

  Uses the sieve of eratosthenes algorithm

Write a complete program that uses the Sieve of Eratosthenes algorithm to list all prime numbers from 1 to 1,000 .

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd