Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi I need help with this c++ programming homework and this program is about the queue and also this project should make a use of

Hi I need help with this c++ programming homework and this program is about the queue and also this project should make a use of the array implementation. Also, all other instructions are in the attached photo please read that and don't copy and paste from old work. please try to explain the code and when you compile don't make another output file or .txt so don't use ofstream just try to show the answer in the compiler because i am using xcode its hard to find that file. thank you.

************************************************************************************************************************************************************************************************

Question

************************************************************************************************************************************************************************************************

image text in transcribedimage text in transcribed

************************************************************************************************************************************************************************************************

The answer should be THIS at the end when you compile.

************************************************************************************************************************************************************************************************

image text in transcribed

************************************************************************************************************************************************************************************************

Few mor instrections about how the answer look like.

************************************************************************************************************************************************************************************************

1) At the end, it should ask for entering how many numbers are there in the data set.

2) Ask to enter each number.

3) Show the answer as a categorized data (as seen in the image)

Prog ramming Assignment:Abstract Data Type Queue Application: Categorizing Data Problem Specification Categorizing data: it is often necessacy to destroying their relative positional order. As a simple example consider a List of numbers that is maintaining their original elative positiona [ea r range daa wihout to be grouped into categories while l ordet Example Given the data set: 3 22 12 6 10 34 65 29 9 30 81 4 5 19 20 57 44 99 ategorize the data into four different group.s 1 to 9, 10 to 19, 20 to 29, and30 or mote The cesult is the categorized data: Categor l to 9 10 to 19 20 to 29 30 or more 12 10 19 22 29 20 34 65 30 8 57 44 99 ther a list categorized acording The result is not a sorted list but ra to the specific requirements for the categories. group have kept their relative positional order. The numbers in each The underlying ADT for this application program is the ADT: Queue whose implementation has already been completed. Consequently, it should be possible to write this applica become involved with any "low level tion program without having to " data structure details. Prograiruning Notes This program should make use of the ARRAY IMPLEMENTATION of the ADT: queue This requires: struct QUEUE INFO RC i[30]; back; and the function prototypes / function definitions for create queueq) empty (qenque g, (q, i purge(q 2. For this application ion program, define INFO RC to be equivalent to the INFO data type int: typedef int INFO RC; Note this must be placed before the data structure declara QUEUE

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

6. Is all Internet training the same? Explain.

Answered: 1 week ago