I am working on a equation balancer for my 12th class computer science project.But somehow i am not able to balance the chemical equation.Please if anyone can provide me the source code it will be a great help.Urgently needed!
coldkiller 0 Newbie Poster
Recommended Answers
Jump to PostI am intruiged with this assignment.. although it's been years since I balanced a chemical equation.. I would find this to be a fun challenge.
You teach me how to balance chemical equations.. I'll give you some code.
Start me off with something simple.. and I'll code you …
Jump to PostThis brings back memories.. I found the website you are thusly describing to me in your tutorial btw. Your copy/paste skills are impressive.
Based on the above example, we can crank out a possible pseduo code:
1. We'll have to prompt for an equation that …
Jump to Post1. We'll have to prompt for an equation that we can understand. We can identify individual reactants easily. We can assume than any compound that begins with a number is a coefficient, any subsequent numbers in the compound will be subscripts. With this protocol established, we can make life a …
Jump to PostTo clarify terminology, I think of the scope resolution operator in C++ as the double colon, ::. I don't see that in Clinton's code, but I may have missed it.
That being said:
1) Don't resurrect dead code. If you want to base your code off of this post, then …
All 14 Replies
Clinton Portis 211 Practically a Posting Shark
coldkiller 0 Newbie Poster
coldkiller 0 Newbie Poster
bamcclur 0 Newbie Poster
Clinton Portis 211 Practically a Posting Shark
Clinton Portis 211 Practically a Posting Shark
Clinton Portis 211 Practically a Posting Shark
coldkiller 0 Newbie Poster
naveen.nagabhushan 0 Newbie Poster
Lerner 582 Nearly a Posting Maven
Maria Noel 0 Newbie Poster
Maria Noel 0 Newbie Poster
happygeek 2,411 Most Valuable Poster Team Colleague Featured Poster
Hariharan_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.