Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program which makes the user to enter data for a ship, a company which boards dogs. The input should havea list of

Write a C++ program which makes the user to enter data for a ship, a company which boards dogs. The input should havea list of dogs currently boarded, whic includes a tracking number of the dog, the breed of dog , and the daily boarding charge for the dog. After the data is entered, the items entered are stored in a linked list and printed to the screen. Include a header (.h) file.

The program should ask the user for the input data. When the input of an item is done, it should ask for additional items for entry should be posted. If the user decides to enter more items, input data should appear once again. If the user chooses to end, the program should display the items entered.

Output

Prepare a listing of the dogs with appropriate column headings. Align the data neatly within columns. Include the following:

the tracking number of the dog

the breed of dog boarded

the daily charge for the dog (2 decimal places)

More

You must use a structure which includes the following elements:

the tracking number of the dog - integer

the breed of dog boarded character - array

the daily charge for the dog - double

pointer to next record pointer

One global variable may be used. This variable should represent a pointer to the head of the linked list.

Two functions should be included to perform the following:

insert an item into a linked list;

display the values of all of the members of the list to the monitor (as described in the output section);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions