₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,470 members, 8,512,077 topics. Date: Monday, 02 November 2026 at 07:05 PM

Toggle theme

C++ Function Call Question - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › C++ Function Call Question (698 Views)

1 Reply (Go Down)

C++ Function Call Question by Emmoa(op):
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):
Tim1212:
Very easy, drop your email
Yes yes!!!!!Thank you so much. I truly appreciate.
Re: C++ Function Call Question by iAmTheJoker:
//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:
//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 ;
}
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
1 Reply

Nairaland Login Function Is Faulty! • Javascript:how Do I Use drawBox Function.. • Brain Teaser: Recursive Anonymous Function Expression Analysis • 2 • 3 • 4

[2021] Newest Original Miracle Box • Please Help! Couldn't Find Any Review Of This On Google. • Web Development Study Partner Needed