So a+.002 should be what I have listed below in red? If this is the case. I am still getting garbage answers. #include<iostream>...
I have taken c++ but it has been about a year ago. I am taking mechanics of materials now and need to solve a bending moment problem. I am trying...
I have a problem at hand that I have a few questions about and possibly could use some advice. The problem states: Write a program that defines...
Hello, this is just an excercise/small puzzle to try to figure out what is stored for each variable and what the pointers are pointing to. I...
Ok thanks for all your help.
Ok thanks that makes sense. I actually do need to return the array that was filled and display the results in main(). If it's returning an array...
Hello, I am to write a program that will send three one dimensional arrays to a function. Two of the arrays have 10 values and one has room set...
The problem states..allow the user to repeatedly enter a string until a string that can be converted into a double is entered. We are using...
I am writing a program that will allow the user to enter a string, if the string can be converted to a double precision value then the program...
Yes I was playing around with it and must have forgot to change it back. That was the last thing I would've thought to look at to be the problem.
I have figured out the problem I think. In my code I had this (x%5 == 0 && x%2 == 0) Obviously 345555 is divisible by 5 but is not divisible by...
I am using Dev C++. I did print x after the cin>> and it was the same value so obviously there isn't a problem with that. After calling the...
Also, I tried numbers such as: 9000 900000 500000 345000..All of these numbers will produce an error. If I type 345555 this number will pass...
O yes you are correct. It's one of those things where you know what you meant but typed it wrong. i should be int, I don't know why I had double....
Thanks. I have another question. I have to make sure that the number entered "the seed" is not divisible by 2 or 5. I have an error check in my...
Hello I just started programming about a month or so ago. I am doing a program that will produce "random" numbers. I am confused on how I need to...
Thanks so much
Separate names with a comma.