Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this code Output in C++ with ListQueue Structure if possible, Just the output. 10. File Filter Write a program that opens a text

I need this code Output in C++ with ListQueue Structure if possible, Just the output.

10. File Filter Write a program that opens a text file and reads its contents into a queue of characters. The program should then dequeue each character, convert it to uppercase, and store it in a second file.

image text in transcribed

image text in transcribed

image text in transcribed

// Header file section #include "st dafx.h" #include #include using namespace std; class Queue private: char *queue Array; int queue Size; int front; int rear; int numItems; public: // Constructor Queue (int); // Points to the queue array // The queue size // Subscript of the queue front // Subscript of the queue rear // Number of items in the queue 11 Copy constructor Queue (const Queue &); // Destructor Queue (); // Queue operations void enqueue (char); void dequeue (char &); bool isEmpty() const; bool isFull) const; void clear(); ******************* *AAAARRRRRRRRAAAAAARRRRRRR // This constructor creates an empty queue of a specified * size. * Queue:: Queue (int s) queueArray = new char(s) : queuesize = s; front = -1; rear = -1; numItems = 0; **** // Copy constructor *** Queue: : Queue (const Queue kobj) // Allocate the queue array. queueArray = new char(obj.queuesize]; // Copy the other object's attributes. queuesize = obj.que uesize; front = obj. front; rear = obj. rear; numItems = obj.numItems; // Copy the other object's queue array. for (int count = 0; count > fileName : // Open the file. file 1. open(fileName, ios::in); if (!file1) cout >fileName; // Open the file. file2.open(FileName, ios:: out); if (!file2) cout

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

Is an FBA warranted in this case? Why or why not?

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago