Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MetroPCSLTE 1:36 PM 10*92% program-info.net 1) Enter your name, student ID, platform (Mac or PC) and date Name and Student ID: Class: CISO54 CC++ Programming

image text in transcribed
image text in transcribed
image text in transcribed
MetroPCSLTE 1:36 PM 10*92% program-info.net 1) Enter your name, student ID, platform (Mac or PC) and date Name and Student ID: Class: CISO54 CC++ Programming Platform (Mac or PC): Date: DESCRIPTION: The project is described in the textbook, Chapter 9 PROGRAMMING PROJECTS #6. It is found on page 521 in the 8th edition of the textbook and on page 536 of the 9th edition. Vectors are similar to arrays except the length of an array is fixed when it is created. The length of a vector can automatically grow or shrink as the program executes. This lab is asking you to create a dynamic array of five strings. Functions are available to either add an entry or delete an entry from the array. The size of the array should grow or shrink when one of these functions is called. When adding a new string to the array, this is to be accomplished by creating a new dynamic array, adding the new string into the new array, deleting the old array and returning the new dynamic array. When deleting a string from the aray, a new dynamic array is to be created by copying all of the data from the old array (except the string to be deleted) into a new array, deleting the old array and returning the new dynamic array. Nothing is to be done if the string can not be found in the old array. The functions are to be delcared as follows: string* addEntry(string "dynamicArray, int &size, string newEntry) string* deleteEntry(string dynamicArray, int&size, string entryToDelete) LAB REPORT: 2) Determine the Inputs, Processing and Outputs before creating the program INPUTS PROCESSINGOUTPUTS 3) Fill in the EXPECTED & ACTUAL RESULTS TEST DATA VALUESEXPECTED RESULT ACTUAL RESULT examples of a strings to be or deleted from the Computed valoes befoee the

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

=+c. The Federal Reserve reduces banks reserve requirements.

Answered: 1 week ago