Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

This answer was rated:

For LogicPro only * Reading data strings from a file *

For LogicPro only* Reading data...
For LogicPro only* Reading data strings from a file
* Convert from int based container to templates or generics based
* Accommodate dynamic resizing using this algorithm:
1. Starting with a dynamic size of 10, if the number of elements exceed this number:
a. Reallocate the container size to double the current size
b. Move the contents of the current container to the newly sized container
c. Delete the previously sized container (language dependent)
2. Repeat from step 1a. as necessary
3. Note the data file is called "words.txt" in the Data_Files folderResize C++
Data* ptemp = new Data[ size*2 ];
for (int i=0; i>>>DynamicArray Class
int* base // c++
int[] base // java
int used = 0
int size = 0
DynamicArray(c) // constructor
size(c)
allocate(size)
void allocate(c)
size = c
base = new T[size]
for (i = 0 to size)
base[i] = 0
void pop()
for (i = 1 to used)
base[i - 1] = base[i]
void push(t)
set(t)
void set(v)
base[used] = v
used++
int get(offset)
return base[used]
int begin()
return base[0]
int end()
return base[used - 1]
int length()
return used
int capacity()
return size
Show More
Show Less
Ask Your Own Homework Question
Answered in 2 hours by:
1/16/2018
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,508
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified

Hi

Ask Your Own Homework Question

Welcome

What is the deadline?

Ask Your Own Homework Question
Customer reply replied 7 months ago
can you make it before today midnight? western time.
Customer reply replied 7 months ago
also using c++ to implement this one please

Can I use Java?

Ask Your Own Homework Question

okay. Will use C++. sending offer for this one to accept

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,508
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
LogicPro and 87 other Homework Specialists are ready to help you
Ask your own question now
Customer reply replied 7 months ago
Hello, just gonna check the progress on the work please
Check back in 1 hour
Ask Your Own Homework Question
Customer reply replied 7 months ago
kk thanks

welcome

Ask Your Own Homework Question

Which C++ compiler you are using like code blocks or visual studio etc?

Ask Your Own Homework Question

Just posted the answer Link for DynamicResizing.cpp

Let me know once you get it

Please consider adding bonus by using the "Write a review or give a bonus" button on your question pages.

http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/homework/expert-logicpro/

so you can come back and ask me a question anytime.

Thank you for using this site!

Ask Your Own Homework Question
Customer reply replied 7 months ago
visual studio community 2017

Just posted the answer Link for DynamicResizing.zip

Let me know once you get it

Unzip the zip file to a REAL folder.

Look for .sln file in the unzipped folder.

Double click this .sln file to open it in Visual Studio.

Press F5 to run the project.

Please consider adding bonus by using the "Write a review or give a bonus" button on your question pages.

http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/homework/expert-logicpro/

so you can come back and ask me a question anytime.

Thank you for using this site!

Ask Your Own Homework Question

Is Words.txt is at the same location of cpp file?

Ask Your Own Homework Question
Customer reply replied 7 months ago
Oh, haha. I forget to put into it. Thanks. everything looks perfect now

Welcome

Ask Your Own Homework Question
Customer reply replied 7 months ago
Oh, Is there's a way to display the length and size in the window that show's the dynamic array capacity?

Ok

Ask Your Own Homework Question
This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,508
13,508 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,508 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,699 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,194 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
Problem 1: Functions (20 points) 1.1 What is being printed
Problem 1: Functions (20 points) 1.1 What is being printed by the following program (5 points)? include void fun1(int x, int *y) { x = x+(*y); *y = 5*(*y); x = (*y)*x; } int main(void) { int x = 2, y … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
Question 14.14. (TCO 2) A class is designed with three public
Question 14.14. (TCO 2) A class is designed with three public attributes: attributeOne, attributeTwo and attributeThree. attributeOne is an integer data type, attributeTwo is a double data type and at… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
Question 1.1. (TCO 1) Object-oriented programming generally
Question 1.1. (TCO 1) Object-oriented programming generally focuses on _____. (Points : 5) A. separating the interface from the implementation. B. client side access to implementation details. C. crea… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
Hi, Im having serious problems trying to understand this
Hi, I'm having serious problems trying to understand this week HW and to be worst my Instructor doesn't provide any guidance. Any help will be appreciated. Section 10.9 (pages 386 -- 388) shows how to… read more
Eric M.
Eric M.
PhD Candidate
Master\u0027s Degree
66 satisfied customers
Create a simple linked list program to create a class list
Create a simple linked list program to create a class list containing class node { public: void *info; node *next; node (void *v) {info = v; next = 0; } void put_next (node *n) {next = n;} node *get_n… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
1. (TCO 1) Which of the following would be the most appropriate
1. (TCO 1) Which of the following would be the most appropriate choice for a method in a Book class? (Points : 5) Author() NumberChapters() Publish() Language() 2. (TCO 1) Object-oriented programming … read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
1. (TCO 4) What is the bit pattern in data after the
1. (TCO 4) What is the bit pattern in data after the following statements execute? unsigned int data = 10; data = data | 0x0B; data = data << 1; (Points : 7) 0x314 0x154 0x342 0x156 2. (TCO 4) I… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
For LogicPro only. Assignment 3 - simple String Class ________________________________
For LogicPro only. Assignment 3 - simple String Class ________________________________________ Necessary skills: class design, abstraction/encapsulation, constructors, destructor, heap memory manageme… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
"For ATLProg only" I need this programs for my c++ class
"For ATLProg only" I need this programs for my c++ class by this evening if possible. Do you think you can help. continue the implementation of the String class. Add each of the following: A construct… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
**For LOGICPRO only** http://media.pearsoncmg.com/aw/aw_savitch_cpp_8/videonotes/vp.h
**For LOGICPRO only** http://media.pearsoncmg.com/aw/aw_savitch_cpp_8/videonotes/vp.html?id=Ch9_PP_9_6 #include "stdafx.h" // File Name: dynarray.cpp // Author: // Email Address: // Project Number: 9.… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
(TCO 1) Which of the following would be the most appropriate
(TCO 1) Which of the following would be the most appropriate choice for a method in a PhoneCharger class? Voltage() Manufacturer() Current() Charge() 2. (TCO 1) Which of the following statements is/ar… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
Grading Summary These are the automatically computed results
Grading Summary These are the automatically computed results of your exam. Grades for essay questions, and comments from your instructor, are in the "Details" section below. Date Taken: 12/19/2012 Tim… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
I need help with my c++ program. Here is the instructions:
I need help with my c++ program. Here is the instructions: (I have most the code written) Discussion: In this lab exercise you will develop a C++ program to simulate a simple dice rolling game. Simula… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
1. Write a C++ program that reads following data from 2 input
1. Write a C++ program that reads following data from 2 input files called “gradein.txt”. 89 56 75 48 34 93 62 99 78 55 48 65 92 61 89 65 75 76 34 99 60 29 56 77 48 34 73 59 99 86 75 68 54 103 67 Seco… read more
R.R. Jha
R.R. Jha
Bachelor\u0027s Degree
150 satisfied customers
For LogicPro only I have a test today in c++. It starts
For LogicPro only I have a test today in c++. It starts at 11am, central time, and i have until 5pm to start it. Once I start it i have 2 hours to take it. can you help me?… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
here is what is missing 1.There is no extPersonType class.
here is what is missing 1.There is no extPersonType class. 2.AddresType class does not use the personType class. 3.No main method. 4.Addressbook does not contain scope for 500 entries. 5.None of the f… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,508 satisfied customers
1. In Java, an array is a collection of data values of the
1. In Java, an array is a collection of data values of the same type. What makes arrays beneficial? Write a Java code fragment to create an array that holds 100 elements. Initialize each element with … read more
Wiz of All
Wiz of All
Bachelor\u0027s Degree
90 satisfied customers
Modify the Inventory Program by adding a button to the GUI ...
Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is di… read more
Scott
Scott
MIT Graduate
Master\u0027s Degree
213 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x