I have the program initiating "total" twice when dividing by zero and the 2nd time is nonsense. Also I am getting a "Can not divide by zero" comment for non zero divisors (example 23/3?)
aghhh,...
Type: Posts; User: Titanguy
I have the program initiating "total" twice when dividing by zero and the 2nd time is nonsense. Also I am getting a "Can not divide by zero" comment for non zero divisors (example 23/3?)
aghhh,...
New Project... need help please:
Attached is the instructions.
Here is what I have so far and having trouble:
#include <iostream>
using namespace std;
here goes:
#include <iostream>
using namespace std;
int main()
{
I am sorry about the indenting. WHen I paste, it, somehow it changes.
Ok. I am going to repost. can you try and compile it for me and let me know if it works?
I can't compile on the...
Ok, move the range calculation out of loop, See below, am I right? Also, what do you mean "cast"
#include <iostream>
using namespace std;
int main()
{
Ok, how does this look:
#include <iostream>
using namespace std;
int main()
{
Ok, so will this work? (don't have a compiler on this computer)
#include <iostream>
using namespace std;
int main()
{
double n, count=0, sum=0, min=0, max=100;
Or do I do:
if (n<min) min = n;
else if (n>max) max = n;
And if so, where would I place this in my code?
thank you for your help.
so, in my first line I should:
double n, count=0, sum=0, min=100, max=0;
(Is this right?)
Then with each loop do:
if (n > max) max=n
I am unsure how to use the set command with the min/max, and unsure how to implement it so it only shows the difference of the lowest and highest numbers entered. Did you see the attachment on my...
Can you give me an example of this in code?
I really don't know where to begin with all the set / min/max?
I know the program I posted works perfectly. The problem I am having is adding the fact of:
"The range is the difference between the lowest and the highest number"
I have to add this...
Please help, running out of time. Assignment is attached. What I have so far is below. Where I am stuck is the "Range" ordeal. Please help:
#include <iostream>
using namespace std;...
Awesome, tried it. got error:
i586-pc-msdosdjgpp-gcc: Internal compiler error: program cpp got fatal signal 11
I guess I am in the wrong spot for help?
Ok, how can I set the path back to original?
I don't want to mess with this computer.
Also, can someone review the code I posted and see if that meets the requirements/corrections of the...
It didn't work. no big deal, but I set the path to:
set path=%path%;E:\MinGW\bin
How can I undo that, so nothing is changed on the computer?
after I set the path, how do I set the path back to original?
how do you start the program?
Ok, here is what I came up with now:
#include <iostream>
using namespace std;
int main()
I just found an online compiler
aghhh, I am stuck
thank you for your help. the situation I am in doesn't allow me access to a compiler. so i am trying to make due with doing this the best I can.
So I cannot use this?
{
if (num1 < 1 ||...
How about:
#include <iostream>
using namespace std;
int main()
{
You lost me... I am brand new to this. please explain