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.
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.
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...
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...
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.
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.
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?
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...