Search:
Type: Posts; User: Guru_Kid
Search:
Search took 0.03 seconds.
-
September 1st, 2009, 12:31 AM
-
August 31st, 2009, 08:10 AM
-
August 31st, 2009, 07:45 AM
I changed what you suggested.
My program still isn't coding correctly. It doesn't calculate the discount. Changed it a little.
double cost;
double total_cost;
double value;
int x;
-
August 31st, 2009, 06:58 AM
-
August 31st, 2009, 06:34 AM
In my original post, I posted that it was declared as double.
I'm not sure how you got 35. When I entered 20, I result is 500 (half * ( original x *50))
-
August 31st, 2009, 06:22 AM
What would I have to change/add to get the total cost after it calculates the discount?
-
August 31st, 2009, 05:22 AM
Thanks. I edited some of the things you suggested. However, the discount part of it still isn't working. I updated my first post.
-
August 31st, 2009, 01:05 AM
It doesn't display the cost correctly. It just calculates the total x without taking into account the discount. What would I have to change/add to get the total cost after it calculates the discount?...
-
August 30th, 2009, 05:36 PM
I'm having trouble with the remainder of the problem.
int main()
{
int t, o, g, d;
for (t = 0; t <= 9; t++)
for (o = 0; o <=9; o++)
for (g = 0; g <= 9; g++)
for (d = 0; d <= 9; d++)
{
-
August 30th, 2009, 03:13 AM
Well the complier won't complie past
if (x > 1 x 10-5)
Would I have to convert the 1 x 10-5 to a decimal value or is there another way ?
-
August 30th, 2009, 03:02 AM
How would I code the negative value of an if else function? Would I just have to convert 1 x 10-5 to a decimal value?
if (x > 1 x 10-5)
{
cout << "Value" << endl;
{
else
-
August 29th, 2009, 03:06 AM
What's wrong with my if else then function? It complies (Dev C++) but it doesn't function properly. It displays all the messages together.
I think I deleted something when I edited this x_x
int...
-
August 27th, 2009, 06:19 PM
-
August 27th, 2009, 03:39 PM
I'm trying to solve a cryptarithmetic puzzle TOO + TOO + TOO + TOO = GOOD using a nested loop for single letter (in this case T, O, G, D).
My solution to this, which I thought would be simple...
-
April 23rd, 2009, 07:59 PM
Thanks for the tip but the characters aren't displaying
-
April 22nd, 2009, 08:42 PM
-
February 17th, 2009, 02:08 AM
Could someone help me with this?
This is the warning message
http://s5.tinypic.com/28ilonq.jpg
Variables
http://s5.tinypic.com/n1a5fk.jpg
I know it should be an integer for the...
-
February 8th, 2009, 10:41 PM
I'm not sure if this is the right forum but here it goes xD
Could someone help solve these Arithmetic Operators? I'm not certain on the values I got.
Given: int x = 5; What is the value of x...
|
Click Here to Expand Forum to Full Width
|