Geeks With Blogs
ArchitectNow Kevin Grossnicklaus' Blog

I live in a great neighborhood and am fortunate to have some great neighbors.  Two of these neighbors (a husband and a wife actually) are retired math instructors and we always have a good time having a glass of wine and discussing why the methods our schools use to teach our children math are totally antiquated and backwards.

Well yesterday I found both retired instructors at home scribbling madly on paper trying to solve a math problem which was supposedly intended for 6th to 12th graders (as both these retired professors taught math education their focus is on how to teach math to children and teens).

The problem was that neither of them could find a solution to this problem (which was apparently posted in books and other instructor materials as a difficult question).

I forgot the “story”  that went with the problem (since, unlike when I went to school, you aren’t supposed to be able to learn math without “stories” now) but basically it had to do with a Seven Eleven gas station and finding 4 items in the store that were above $1 and less than $5 that:

Add together to equal $7.11 AND multiply together to equal $7.11.

It was late on a Saturday night after a long day of kids volleyball games, soccer games, 6th grade football, and the legendary Chili Cook-off and Salsa Competition at Westport Plaza so my mind was already mush and finding elegant solutions to 6th grade math problems wasn’t immediately something I jumped on.  BUT…..I did think of how I could do this quickly and efficiently and not rack my brain beyond further use:  C#, Console App, Brute force, about 5 minutes.

I’m sure their are accepted methods for solving this problem on paper (and one of my neighbors did find a solution last night sans C#) but I know my capabilities and the quickest path to a solution was firing up VS.NET, creating a C# console application, and, via brute force, working through permutations of numbers until I reached a solution.

It was kind of a fun little problem that eventually spit out over 200 solutions (many of which added evenly to $7.11 but multiplied to something that rounded to $7.11 (example:  $7.106455).   At one point I let my computer run for about 20 minutes and didn’t find any solution…then I realized I had a comparison error between a float and a double (as I’d accidently changed data types in the middle of my algorithm due to my haste).  After a bit of refactoring my solution was a bit nicer and shot out 216 solutions.  My neighbors have (at this point) found a single answer via the ol’ Pen/Paper method.

While we all found answers, the debate was began on which you would accept.  If a student broke out VS.NET and threw together a sweet little app (which probably overstates the elegance of my solution) and then just turned in the answers he would not be given any credit as he didn’t show his answer (and I’m not sure providing source counts).  I think solving problems via code is a skill in and of itself that unfortunately not enough kids know is possible.  We all agree that computer instruction at most levels is about as lacking as math instruction (at least in the US :) but I told them I’d be the rebel sitting in math class with my Laptop :)

Posted on Sunday, September 27, 2009 9:51 AM | Back to top


Comments on this post: Solving math problems the .NET way

# re: Solving math problems the .NET way
Requesting Gravatar...
I think it depends on what the purpose of the lesson is. If the lesson is on polynomials, then probably not. If the lesson is on computer algorithms, then yes. If it was just a bonus question, then maybe.

Students could solve it with MathCad, which *will* show the work, but is that cheating?

You guys really know how to party ;)
Left by fastboxster on Oct 25, 2009 4:55 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
I think this helps to those students who afraid from maths.
Left by Assignment Help on Nov 10, 2009 12:54 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
This is a very helpful post, i hope this really helps me to complete my project.
Left by Finance Assignment Help on Dec 19, 2009 12:18 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Fantastics to just read the entire post , it kept me interesting.
Very nicely written.
Left by economics assignment help on Jun 28, 2010 4:32 PM

# Descriptive Statistics help - Stats Homework Help - Statistics Help
Requesting Gravatar...
Great and really informative.
Good Job and well said.
Fantastics to just read the entire post , it kept me interesting.
Had a nice time reading it , It was very well written.Seems to be an interesting post.
Left by Stats Homework Help on Jul 06, 2010 4:05 PM

# Psychology homework help - College psychology help - online psychology homework help - online psychology help
Requesting Gravatar...

Seems to be an interesting post.
Left by Psychology homework help on Jul 06, 2010 9:28 PM

# Help with my math Homework - Help solving math problems - Math Exam answers
Requesting Gravatar...
Very informative and a nice post to read on .
Left by Math assignment help on Jul 08, 2010 5:07 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
what is the answer to 7x-2y=17
Left by niamh on Jul 14, 2011 8:15 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
I found this in a debate attempting to prove God created the universe, is this, "equation" a joke? Or does it have a meaning?
#) ksd'fj 43nf9( ;jbvjd. o) vnjehwdffg /////////// rh So =+ wjvm e; 9
Any information will be appreciated.
Curtis Beegle
Left by curtis beegle on Oct 27, 2013 2:31 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
It is necessary for students to learn solving math problem in order to become successful.
dissertation proposal help
Left by Catriona Cerys on Jul 04, 2014 12:05 AM

# Re:
Requesting Gravatar...
Well i think you love .NET programming especially C# and ASP.NET that's why you try to solve every problem with this technique.|buy a Dissertation|
Left by Nicholas Grinfeld on Aug 05, 2014 11:49 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
Is it really possible to solve math problem in online?
________________
Aero auto
Webs: Auto transport Dallas Texas
Texas
Left by movemein on Jun 12, 2015 9:24 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
I think its great opportunity for you because you have get good neighborhood.Actually we are also worried about math problem. And i believe that it will be work for us.
_____________
Innovative hair solutions
Webs: hair extensions Wellington fl
Left by innovatis on Jun 15, 2015 1:43 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Interesting story. I enjoyed reading it thoroughly. And it is a nice concept. essay help uk. There must be more creative ways of approaching educational issues.
Left by edward on Aug 22, 2015 2:17 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
.Net is a very important language and can be used to solve complex maths problems. For more details visit here.
Left by JoanneHilton on Nov 06, 2015 11:59 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
The post is very interesting . Thanks for the post! help the best UK Coursework Writing Services 
Left by Maya on Mar 10, 2016 5:12 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
I read this post and i liked your story in which you have introduced a good concept i found it very useful and effective for me.
online dissertation writing
Left by Smith John on Jul 23, 2016 5:11 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Very helpful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!
swords and souls
Left by Swords And Souls Game on Jul 28, 2016 8:50 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
I would like to thank you for the efforts you have made in writing this article.
strike force kitty 2
Left by strike force kitty 2 on Jul 28, 2016 8:52 PM

# re: Solving math problems the .NET way
Requesting Gravatar...
I am very happy to read this. Appreciate your sharing
ninjago games
Left by ninjago games on Jul 28, 2016 8:58 PM

# Dissertation Defense Questions
Requesting Gravatar...
Help in dissertation is a well know education website providing with marvellous support of Dissertation defense questions to the students
Left by Jessica Simpson on Nov 04, 2016 4:36 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Maths is a fundamental subject, you need to be informative and responsible to understand things. By simple tricks you can teach it eaisly. I like the method of yours too.
Left by Priya Sharma on Dec 12, 2016 12:40 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Hi, your blog is very informative but your post about math problem is very useful for the students who are facing to solve their math problem . thanks for sharing it ...
https://www.cheap-essay-writing.co.uk/phd-thesis-writing-services/
Left by Phd Dissertation Writing Service on Dec 12, 2016 4:38 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
thanks for sharing your article about math , it is really very useful for the students because now a day a large number of students are facing problem in math subject . Dissertation writing service
Left by Neil Jakson on Dec 12, 2016 4:43 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Good post. I believe that this can help me to solve math problems easily using .Net. dissertation writing service
Left by Albert Barkley on Dec 13, 2016 5:24 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Yeah! a machine can calculate faster than human. But to develop an application you have to know how to code or you have to manage a developer. To do a smart work, you need experts. Mostly when it comes to maths, students get irritated and spend a lot of time in their assignments. So they can get dissertation help from experts to do it easily and save their time also.
Left by John Noels on Dec 20, 2016 1:15 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Yeah! a machine can calculate faster than human. But to develop an application you have to know how to code or you have to manage a developer. To do a smart work, you need experts. Mostly when it comes to maths, students get irritated and spend a lot of time in their assignments. So they can get google from experts to do it easily and save their time also.
Left by renee betrand on Jul 20, 2017 1:23 AM

# re: Solving math problems the .NET way
Requesting Gravatar...
Thanks for the tips you have offered here there has been a lot of queries regarding this topic online. You have done an excellent work with providing examples along with the detail to have a better idea of the topic. garage doors in my area CA
Left by Taylor Shaw on Oct 18, 2017 5:39 AM

# Assignment Help Australia By Expert
Requesting Gravatar...
nice post, get the best experts from Assignment Help Australia Online Service
Left by Keira Doltan on Apr 05, 2018 3:45 AM

Your comment:
 (will show your gravatar)


Copyright © Kevin Grossnicklaus | Powered by: GeeksWithBlogs.net