Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Topic: QUEUE, STACKS Langauge: C++ Write a program that implements a priority queue for shipping packages. Create a class for packages that include destination name,

Topic: QUEUE, STACKS

Langauge: C++

  1. Write a program that implements a priority queue for shipping packages. Create a class for packages that include destination name, address, city, state, zip and postal class along with appropriate constructor, accessor and mutator methods. Postal classes consists of (in priority order):
    • Priority Mail Express
    • Priority Mail
    • First-Class Mail
    • Periodicals
    • USPS Marketing Mail
    • Package Services
    • USPS Retail Ground

Packages should be loaded into a priority queue. The results should come out in prioritized order. Display the package data when you load the packages into the queue. When the program is finished remove/dequeue all of the packages and display the package information in the order dequeued.

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

Please answer both. Thanks!

Answered: 1 week ago

Question

The nature and importance of the global marketplace.

Answered: 1 week ago