Recent content by zarentina

  1. Z

    What is the angular acceleration of a falling rod with two attached balls?

    *sigh, if there has even been a /facedesk moment* My new value for the I= 1/12(3.6(.9^2))+(2.5(.45^2)) --> .243+.50625 = .74925. Setting this into the initial equation my values resulted in 11.025=.74925a solving for a yields a=14.72. Does this look correct or have a goofed up else where? Thanks!
  2. Z

    What is the angular acceleration of a falling rod with two attached balls?

    Well I found one mistake in my I(bar) I was using R instead of L. So my new calculated inertia is 7.34. Yet this still leaves me in square one, any other insight?
  3. Z

    What is the angular acceleration of a falling rod with two attached balls?

    Homework Statement A thin, uniform 3.60kg bar has two balls glued on either end, each with a weight of 2.5kg. The length of the rod is 90cm and is balanced in the center. When one ball falls off calculate the angular acceleration just after this happens. (e.g the rod is falling in a...
  4. Z

    C/C++ Converting string to integer using atoi in C++

    *UPDATE* I had a revelation sparked by a few of your comments:smile: int main() { int i,L=50,x; double z; char ori_string[L]; char new_string[L]; cout<<"Please enter a long string"<<endl; cin.getline(ori_string,50); L=strlen(ori_string)...
  5. Z

    C/C++ Converting string to integer using atoi in C++

    When I first wrote this program to reverse my number I simply had int main() { int i,L,; char ori_string[50]; char new_string[50]; cout<<"Please enter a long string"<<endl; cin.getline(ori_string,50); for(i=0;i<L; i++) {...
  6. Z

    C/C++ Converting string to integer using atoi in C++

    Hello, the problem that I was asked to complete was ; Write a program that inputs a string and reverses it. After the string has been reversed you must convert it to an integer and then take the square root of the integer. (using atoi) My code is as follows: int main () { int i=0,L=50...
  7. Z

    C/C++ How Do I Combine Multiple C++ Programs into One?

    Sorry about that, the four codes will combine which produces an output of four right triangles rotated and printed on the same lines. Such as was in my original post, yet for some reason those got pushed together and made it seem as one block of *'s not four triangles.My first program is the...
  8. Z

    C/C++ How Do I Combine Multiple C++ Programs into One?

    Hello all, I am still new to C++ and was instructed to write four programs all a bit different and eventually combine them into one using a series of nested for loops to get an out put that resembles but goes to 10 lines of output not 5: *NOTE* all these will be separated by a tab count<<"\t"...
  9. Z

    C/C++ New to C++; reversing a number upto 5 digits in length

    I just wanted to thank you for the replies to this thread, I figured it out using a loop in place of separate variables. This was my final product, feel free to critique if necessary! #include<iostream> //required for cin, count #include<cmath> using namespace std; int...
  10. Z

    C/C++ New to C++; reversing a number upto 5 digits in length

    Thanks for the reply, Could you further explain what that means or how I would go about doing it? I guess I didn't iterate that I am completely terrible and 100% lost when it comes to writing code. I'm not fishing for an answer as I have no qualms with doing the work on my own just a simple...
  11. Z

    C/C++ New to C++; reversing a number upto 5 digits in length

    Hello all, I hadn't touched a bit of programing until the start of this semester and it feels as if I've been thrown to the wolves. I am required to write a program that takes UP TO 5 digits, reverses it, and calculate the square roots of both. The code that I have thus far is...