No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I cant figure out how to make a function that correctly solves the max height of a parabola I know height = distance * tan(angle) - (gravity * distance^2) /2 *( speed * cos(angle))^2 I try to put this in and I get like 1.2 trillion I think im doing … |
|
[CODE]double distance (double angle, int mps, double earth_gravity) { double earth_distance; double speed_sqr = mps * mps; earth_distance = speed_sqr * sin(2*angle) / earth_gravity; return earth_distance; }[/CODE] its supposed to come out at = 3831.57 intead it ends up being =3155.52 anyone know what im doing wrong? |
|
Re:
Hey all. I'm really new to programming and would like some help, if you all don't mind ;) I'm not actually having trouble with the programming, but rather, what I'm being asked to do. Here is what I'm supposed to do (and yes, it is an assignment, but I'm only … |
|
I have gotten started on my while loop but I'm kinda stuck I dont know where to go from here :( My assignment is to write a program to read in 6 numbers from the keyboard and then indicate whether any of them were larger than 500 or smaller than … |
|
This is what I have of my code so far but I cant get it to work right, Can someone help me fix this I need to make a float function that converts celsius to fahrenheit but im not totally sure how to do it I also need to make … |
|
This is what I have already but I dont know if I am meeting the specs for my assingment... anyone have any input of what I should do? Assignment is Write a program that will ask the user for a temperature in Centigrade (Celsius) and convert it to the Fahrenheit … |
|
********************************************************************************** Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and 2 y's. Return the distance between the two points. It involves a square root. Write a main function which will ask the user for 2 points (4 numbers), decide … |
|
I am very new to computer programming and am struggling with my Computer Science class... I have been working on this program all week long... My assignment is to ; Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and … |
|
***************************************************** Write a program that will get some input from the user about a visit to an oil change service. The program will calculate the bill for the services requested. Prompt the user to input whether or not they want each of the services. You can assume the input will … |