Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: Write the following 7 routines as member functions in a class using dynamic array( pointer dynamic allocation for data storage Also write inside

image text in transcribed
Problem 1: Write the following 7 routines as member functions in a class using dynamic array( pointer dynamic allocation for data storage Also write inside the classes other appropriate functions like constructor/s, copy constructor, overloaded assignment operator, destructor and other operator overloaded functions as needed 1. To generate 100 random numbers btween 1-100 in a randomData.txt file 2. To read the 100 random numbers from randomData.txt and store them in the dynamic array using input stream operator overloading. 3. Print the data using output stream operator overloading 4. Find the smallest and the largest of the random numbers and position in the data structure 5. Insert 1000 in the 51" element of the dynamic wray and print the data, 6. Delete all the elements 50-70 of any in the data set using dynamic array only and print the data 7. Sort the residual data set in an ascending order using recursive sorting and print in reverse onder using recursion

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

More Books

Students also viewed these Databases questions