How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask LogicPro Your Own Question
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13162
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
Type Your Homework Question Here...
LogicPro is online now
A new question is answered every 9 seconds

I have the same question that was posted

This answer was rated:

I have the same question that was posted

Welcome to JustAnswer.
My name is XXXXX XXXXX I will help you.
If you have any file(s), Zip all files, upload the zipped file to and post download link here.
Customer: replied 4 years ago.

Please wait for 15-20 minutes.
Download answer from here Count_List_Elements_CPP.cpp

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:
so you can come back and ask me a question anytime.

Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help.
Thank you for using JustAnswer!
Customer: replied 4 years ago.



you had 2 #include <list>, 2 using namespace std; and no system("pause"); in the program you provided. I'm surprised that I would pay $45 and still have to edit those kind of things. Just saying.


Also the input that I enter is:


2 3 4 0 1 0 2 4 2 3 3 4 3 3 3 0 0 2 0 2


And the output that is expected is:


0 : 5, 1 : 1, 2 : 5, 3 : 6, 4 : 3


I received almost the same thing I was getting before coming here. The only difference is that your code is vertical and the counts still don't show correctly.


Thank you,


I have used the main method, which was given in the instructions, due to which I output is little bit changed.
To get the output in 0 : 5, 1 : 1, 2 : 5, 3 : 6, 4 :3 format, I need to change the main method. Let me know.
Also it is counting the number of elements correctly.
Customer: replied 4 years ago.

O.k. Sounds good. In the included text file their are items that have to be in the code. Please review it before adjusting the main method.


Thank you and forgive me if my last msg. I'm just frustrated and I didn't mean to take it out on you.




Download code again from here to get the required output:
Here is the output screenshot:
Customer: replied 4 years ago.

Still not getting the output:


0 : 5, 1 : 1, 2 : 5, 3 : 6, 4 : 3


Here is a screen shot of what I got:




Enter the size of list as 10. Don't input multiple values.
Customer: replied 4 years ago.

I must do them the way I have been instructed. That being:


2 3 4 0 1 0 2 4 2 3 3 4 3 3 3 0 0 2 0 2

So that is 2 spacebar 3 spacebar 4 ... until all have been entered. This is the test to see if the program runs as specified.


0 : 5, 1 : 1, 2 : 5, 3 : 6, 4 : 3


This is all in the text file.




You need to spend $3 to view this post. Add Funds to your account and buy credits.
LogicPro and 2 other Homework Specialists are ready to help you
Customer: replied 4 years ago.

Please forgive me.

I don't know why I kept thinking I needed to add the 20 integers manually.

Excellent work!

I am satisfied, ready to rate your work, and send you the funds.

Thanks again for everything,