i need help with programming this, i have no idea where to start and no one in the lab knows c++...please if you can help :) the first attachment is what i should get and the second attachment is supposed to help get those solutions
do u have prior knowledge of C++?
@avemariab93
We could help you with the C++, but why will you be asked to use C++ to write a program when "no one in the lab knows c++"? Does your curriculum include C++ classes? I presume this is physics? I think you might need to include cmath: #include <cmath>. You will need to declare variables like: float start_velocity; float start_angle; Your input will be something like this: cout << "Enter starting velocity in m/s : "; cin >> start_velocity; cout << "\nEnter starting angle in degrees : "; cin >> start_angle; Then you will need to do the calculations and outputs. For me it would make sense to write the pseudocode first then do the C++.
@not_einstein @mandre yes this for a c++ class, i have a little knowledge, but the book we are using doesn't cover this nor does my teacher
Does your class cover cin, cout, and basic math operations like +, -. etc? If you are at the beginnings of things, they don't go into type checking and other input validation. Just the basics of get it and give a response. http://www.cplusplus.com/doc/tutorial/basic_io/
To learn beginner C++, I recommend xoax.
thank you both so much, this info is helping somewhat @e.mccormick @AFlyingMelon
i agree with the pseudocode suggestion. the basic process is: declare your variables. cin is how you get input (usually you want to store that input to its own variable). set up your equations and do calculations. then use cout to print the results to the screen.
@cdaniels75 thank you for your help
Join our real-time social learning platform and learn together with your friends!