C++ Function Call Question - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › C++ Function Call Question (677 Views)
| C++ Function Call Question by Emmoa(op): 4:25am On Jun 06, 2020*. Modified: 11:19am On Jun 10, 2020 |
Anyone who can help answer this c++ question of using functions. |
| Re: C++ Function Call Question by Tim1212(m): 6:59am On Jun 06, 2020 |
Very easy, drop your email |
| Re: C++ Function Call Question by Emmoa(op): 12:06pm On Jun 06, 2020*. Modified: 5:45pm On Oct 05, 2021 |
Tim1212:Yes yes!!!!!Thank you so much. I truly appreciate. |
| Re: C++ Function Call Question by iAmTheJoker: 12:02am On Jun 07, 2020*. Modified: 8:04am On Jun 07, 2020 |
//Hey!.. i tried solving it, i think it might be correct #include <iostream> #include <cmath> using namespace std; float Rformular(); float R; // radius float V; // velocity square float Rformular (float* v, float* o ) { V = pow(*v,2); float g = 9.81; R = V/(g*tan(*o)); return R; }// radius formular int main() { float v; //velocity float o; //teetar float m; //mass cout << "input velocity" << endl; cin >> v; // input for tangential velocity cout << "input value for teetar" << endl; cin >> o; //input for teetar cout << " input value for mass"<< endl; cin >> m; // input for mass float R = Rformular(&v,&o); V = pow(v,2); float L = ((m * V)/R)/sin(o);// calculating force cout << L << "N"<< endl ; } |
| Re: C++ Function Call Question by Emmoa(op): 1:59pm On Jun 07, 2020 |
iAmTheJoker:Thank you so much.God bless . I will run the code |
| Re: C++ Function Call Question by Christianchinyz: 12:42pm On Jan 04, 2023 |
Hello how are you now |
Nairaland Login Function Is Faulty! • Javascript:how Do I Use drawBox Function.. • Brain Teaser: Recursive Anonymous Function Expression Analysis • 2 • 3 • 4
Understanding CSS Specificity • Download Rawhatsapp Ios Edition V8.45 By Ridwan Arifin • How Can I Create A Vitual Bank Account Number