Home » Computer Science Question

Computer Science Question

Please write a program which do following:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

1) Create a dynamic array of strings.

2) Allow user keep entering names until user enter “done”, which indicates user entered all names

2) Store the name in the dynamic array.

3) Initialize the dynamic array size to 4, double the array size the array is filled up

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

4) Display all the names

5) Ask user to enter a names and search if that number is in the array, print out the index for that name

6) Create a function called expandArraywhich double the size of the array when the its size reaches the limit

7) Create a function called printListwhich print out all the names in the array

8) Create a function called findName, which search if a given name is inside the array. Return the index of that number if it is in the array, return -1 if the number not found in the array.

9) Create a function called removeNmae, which remove the given name in the array and resize the array.

10) All functions include at least one parameter which receive the dynamic array by reference

11) Your main program should get all the user input, print out name list, search for a name, return the index, remove a name, print out updated name list (see below output as example)

Example output:please enter the name:Markplease enter the string:Chrisplease enter the string:Annieplease enter the string:Mattplease enter the string:Joeplease enter the string:Jakeplease enter the string:Bobplease enter the string:donelist has 7 name:MarkChrisAnnieMattJoeJakeBobplease enter the name you want to find: Anniefind name at index 2what name you want to remove:Mattfind name at index 3list has 6 name:MarkChrisAnnieJoeJakeBob

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code ESSAYHELP