aceofspades686's Profile
Reputation: 6
Worker
- Group:
- Contributor w/DIC++
- Active Posts:
- 334 (0.16 per day)
- Joined:
- 08-October 07
- Profile Views:
- 6,183
- Last Active:
Feb 19 2013 09:24 AM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Scion
- Dream Kudos:
- 100
Latest Visitors
-
no2pencil 
09 Apr 2012 - 19:55 -
WolfCoder 
26 Oct 2011 - 18:33 -
moussa atty 
16 Apr 2011 - 04:01 -
immosilladeda 
24 Jan 2011 - 08:41 -
sameer.kbl 
27 Jun 2010 - 03:29
Posts I've Made
-
In Topic: Cube root calculator: Issue when trying to calculate result.
Posted 19 Jul 2011
hulla, on 19 July 2011 - 04:49 AM, said:You're saying I have to write an algorithm to check whether lFinder*lFinder*lFinder=lUserInput, and that lFinder is constantly changing?
You have to write an algorithm to determine the value of lFinder. It's not as simple as saying lFinder^3 = lUserInput and the computer knows how to find the cube, you have to tell it how to find it.
Quote
Quote
Let's say I gave you this problem: x = (12,167/x)/x, would you be able to solve it without a calculator?
Yes, I can solve that with a piece of paper, a pencil and time.
Hence, the next part of my statement:
Quote
Odds being, no, and if you were able to, it would be because you had perfect cubes memorized to a decently large number, or you knew how to derive the cube root using mathematical principles.
My point was that, unless you had that number memorized, you wouldn't be able to do it without performing some math on the original number. You have to tell the computer which math to perform on it in order to arrive at the desired answer. -
In Topic: Cube root calculator: Issue when trying to calculate result.
Posted 19 Jul 2011
What you're asking the computer to do no human could do either, at least, not the way you're phrasing it mathematically.
Let's say I gave you this problem: x = (12,167/x)/x, would you be able to solve it without a calculator? Odds being, no, and if you were able to, it would be because you had perfect cubes memorized to a decently large number, or you knew how to derive the cube root using mathematical principles. The computer knows no mathematical principles, and unless you give it a list of perfect cubes, it doesn't have those memorized either. You would need to design an algorithm that the computer could use to determine the cube root. -
In Topic: How to fix C++ purchase program using switch and nested loops?
Posted 19 Jul 2011
Your loops are incorrect, that much is certain:
while (appleQuantity) { appleTotal = appleTotal + (apples * appleQuantity); }
This is an infinite loop. It doesn't have a condition so its waiting for appleQuantity to be 0 (the equivalent of false) before it continues, which doesn't happen since the value of appleQuantity never changes. There's really no need for this loop as simply putting appleTotal = appleTotal + (apples * appleQuantity); will give you the total cost of your apples. -
In Topic: abstract class
Posted 19 Jul 2011
In essence, an abstract class (in any language as far as I know) is a class that is "incomplete" and can not be used on its own, but rather it must be derived from.
More information:
http://msdn.microsof...y/ms173150.aspx -
In Topic: When adding to an ArrayList, does it contain a copy or reference?
Posted 16 Jul 2011
Thanks for the advice all. I was just wanting to make sure that it wasn't creating a reference to the object that I wanted to clear, and it appears I have the answer to my question.
My Information
- Member Title:
- D.I.C Regular
- Age:
- 26 years old
- Birthday:
- June 19, 1986
- Gender:
- Location:
- Virginia, USA
- Interests:
- Hm, you ask me what interests me and honestly I could go on for pages with this one. Anime is a large part of my life as far as hobbies go. The rest of my interests are all over the place and typically change so often there's no need to list them here.<br /><br />Except of course, programming. As of right now, the only language that I'm truly proficient in is VB.NET, but I've had brush ins with PHP and Java, and I'm currently learning C/C++ and C#. I try to help around </DIC> as I can, but there are a lot of things I'm still learning myself.
- Years Programming:
- 5
- Programming Languages:
- (X)HTML, CSS, PHP, VB.NET, Java, C (learning), C++ (learning), C# (learning)
Contact Information
- E-mail:
- Click here to e-mail me
- AIM:
-
aceofspades686
- MSN:
-
aceofspades686@gmail.com
- Website URL:
-
http://www.akanime.org
- Yahoo:
-
aceofspades686
Friends
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
aceofspades686 has no profile comments yet. Why not say hello?