Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me Code this assignement we need to build a program using C++ to implement AN ARRAY OF POINTER TO STRINGS. please below the

please help me Code this assignement we need to build a program using C++ to implement AN ARRAY OF POINTER TO STRINGS.
please below the whole information.
image text in transcribed
image text in transcribed
In this program assignment, you need to use C++ to implement an array of pointers to strings (or objects) Create a data file which contains the above names. Read each name into a string [20]. As you read the data from the file, construct an array of pointers to strings. Sort the array of pointers in the ascending order of the names (dictionary order) using the bubble sort algorithm. You are swapping pointers, not the names. Print out the sorted array of names. 1 NAME, CLASS, GPA 1 Williams, Freshman, 1.85 Smith, Senior, 2.99 Anderson, Sophomore, 3.01 Wiser, Freshman, 4.00 Robertson, Junior, 2.78 Koran, Junior, 3.50 Smith, Junior, 2.14 Johnson, Junior, 3.05 Johnson, Junior, 3.75 Potter, Senior, 2.98 Brown, Sophomore, 2.55 Crooks, Freshman, 1.99 Gregg, Senior, 2.44 Nicholas, Senior, 3.69 White, Sophomore, 1.64 Walsh, Junior, 4.00 Dennis, Senior, 2.06 Roberts, Sophomore, 4.00 Fredericks, Freshman, 2.89 Holmes, Senior, 2.56 Edwards, Sophomore, 3.00 Green, Sophomore, 3.67 Brown. Freshman, 2.00

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions