Need help with some questions

What's a method that will take an int array list and will take every even number in the list and insert the same number to the right of the initial number. e.g.: [1,2,3,4] would become... more

Simple Calculator

 Create a simple Java GUI application that will simulate the calculator. Numbers from 0-9 should be present and should perform a basic arithmetic operation such as Addition, Subtraction,... more


What is the acceleration of a 5kg mass being pushed with a 10N net force

options 1) 2m/s²2) 15m/s²3) 50m/s²4) 0.5m/s²


What is true about the net force acting on an object moving at a constant speed? *

1 net force is positive in the direction of motion2 net force is zero3 net force is positive against the direction of motion4 not enough information to solve


Find the average value of f(x)=e^2x over the interval [2, 4].

Find the average value of f(x)=e2x over the interval [2, 4].1463.18731.59 1517.78 23.60


How do I output coloured text to a Linux terminal?

How do I print coloured characters to a Linux terminal that supports it? How do I tell whether the terminal supports colour codes?


What are the barriers to understanding pointers and what can be done to overcome them?

Why are pointers such a leading factor of confusion for many new, and even old, college level students in C or C++? Are there any tools or thought processes that helped you understand how pointers... more


Check if a string contains a string in C++?

I have a variable of type `std::string`. I want to check if it contains a certain `std::string`. How would I do that? Is there a function that returns true if the string is found, and false if it... more


Why does the C++ STL not provide any "tree" containers?

Why does the C++ STL not provide any "tree" containers, and what's the best thing to use instead? I want to store a hierarchy of objects as a tree, rather than use a tree as a performance... more


Is it safe to delete a NULL pointer?

Is it safe to delete a NULL pointer? And is it a good coding style?


Meaning of 'const' last in a function declaration of a class?

What is the meaning of `const` in declarations like these? The `const` confuses me. class foobar { public: operator int () const; const char* foo() const; };


What is a segmentation fault?

What is a segmentation fault? Is it different in C and C++? How are segmentation faults and dangling pointers related?


What are the important topics in C++?



What is runtime polymorphism in C++?

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.