Ok. Let me clarify. I need a program to convert any random number of Mph in to Kph. Why did you put 12.45? It has to be random. Once you input any random Mph, it should take that number multiple it...
Type: Posts; User: gravedigger
Ok. Let me clarify. I need a program to convert any random number of Mph in to Kph. Why did you put 12.45? It has to be random. Once you input any random Mph, it should take that number multiple it...
cpp.sh/8jxf
You're right I made it divide, but then realized once you guys pointed it out. Sorry. Now that I'm about to input the Mph, how can I take that input and us the formula and show a convertion?
#include <iostream>
#include <cstdlib>
using namespace std;
double ConvertToMPH (int Mph);
double ConvertToMPH (double Kph);
int main()
{
I been reading my C++ book and this is an assignment I have to turn in and I don't understand why I don't get a Kph output.
Thats all it is. Mph to Kph. I just need a program to input Mph and convert it to Kph.
I found the formula and when I run it in C Shell website it ask me for Mph, so I enter any random number to...
I'm new to this guys. That's why I'm being very specific about this....
I still don't get it....
I'm I getting close?
#include <iostream>
#include <cstdlib>
using namespace std;
Can you correct it for me? I'm lost.
Why would I divide? Also I'm a bit new to this so can you correct the code? What do you mean that I don't need the parentheses around the expression? Can you write the code?
I have the formula Mph to Kph
is Mph * 1.61 = Kph
What's wrong with my code?
#include <iostream>
#include <cstdlib>
using namespace std;
So outbox and inbox is basically cin and cout??? That's what that terminology means?
What's an outbox though? And how can I label them input and output?? Can someone post a code or a video so that I get somewhat of an idea?
sorry apparently I do have Visual Studio. I still dont see the new project and then C++ option.
I download that program from my class and I'm not sure how to start a blank project for C++. Anyone have any idea or video I can watch?
im using C++ programming by DS Malik. 6th edition.
Well I dont have full details yet, but can someone break down how I can learn about this :
You will need to code an input value, then use a conversion formula built into your code, and an...