Recent content by AstroIreland

  1. A

    Help for tomorrow's exam - program that can read in exam results

    Thank you for your great reply. I have had a read over and you have filled in my missing gaps nicely. I didn't consider large floating points. Cheers!
  2. A

    Help for tomorrow's exam - program that can read in exam results

    If I get what you mean there; it's to put a large number in the array eg int array [5000]; ? See I would like to be able to have an unknown quantity within the brackets, that does not have to be declared.
  3. A

    Help for tomorrow's exam - program that can read in exam results

    Yeah, see that's what I mean about the specific sum variable. I want it so the user can vary e.g different schools use the program so the number of results to be in-putted is unknown.
  4. A

    Help for tomorrow's exam - program that can read in exam results

    Sorry I didnt specify the language. Yes, it's C++. It is a question I have devised that would show me how to answer all of my coding questions within the one. I mean for the initial coding of the array: eg int array []; then the user inputs under cin (continuously until there is a repetition...
  5. A

    Help for tomorrow's exam - program that can read in exam results

    Thanks for your quick response. Would I just write a simple array and leave the square parenthesis without a constant?
  6. A

    Help for tomorrow's exam - program that can read in exam results

    oh, it could be 4000 years or 2 minutes, its the infinite storing array until the match comes up I am having issues with!
  7. A

    Help for tomorrow's exam - program that can read in exam results

    Hey guys, I am studying astrophys but i have a programming module, so hopefully this is the right place to ask. I have a few questions that I am having difficulty with so I am going to pose it in the form of a program if that's cool? I can then take it apart to see how its done. I'd...
  8. A

    Understanding Basic Algebra: Rearranging Equations and Solving for Variables

    No worries, cross multiplication was what I am looking for. Can you believe i made it to second year astro in the top 50 uni's in the world?! Jeeze... exams do funny things to you. Thanks mate.
  9. A

    Understanding Basic Algebra: Rearranging Equations and Solving for Variables

    And say for example I am using the Snells law formula where there is a fraction on each side of the equation. How do I know when changing sides whether to add to the numerator or denominator? thanks.
  10. A

    Understanding Basic Algebra: Rearranging Equations and Solving for Variables

    like why wouldn't you just move the C first??! Thanks
  11. A

    Understanding Basic Algebra: Rearranging Equations and Solving for Variables

    Cheers, but why do you move the v first and not the C? Is it because its the bigger number or do you always move the denominator first and solve in more steps?
  12. A

    Understanding Basic Algebra: Rearranging Equations and Solving for Variables

    Homework Statement I have a very simple question I am having problems with. Homework Equations n= C/V The Attempt at a Solution Hey guys, This is a very simple equation indeed. I am a mature student and starting up in physics. My mathematics is terrible. So please don't...
Back
Top