No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
For my Optics course, we need to write a program that will take a certain input, perform a matrix computation, and output a system matrix. The program also needs to check for nonsense input and be able to "be adjusted" for any amount of matrix elements. I took a course … |
|
So I finally get to the end of this evil program, and then it won't compile because it says "type double not expected". Here is my error message in its entirety: program 3 item.cpp(111) : error C2062: type 'double' unexpected program 3 item.cpp(121) : error C2062: type 'double' unexpected program … |
|
Re:
[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? |
|
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 … |
|
Re:
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 … |