PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Before we get too far ahead of ourselves, don't forget that this thread is for someone who has about 3 hours of PHP experience. If you're going to write something that introduces some of PHP's slightly non-newbie functionality (type casting for example) it'd be worthwhile commenting your code a little.
I thought we are opposed to writting code for people when it is for school
Do the right thing here, and contact your school administration because writting such an application is seriously out of your skill level (being 3 hours experience). I could barely figure out basic syntax within 3 hours..
Schools, public and private, are giving impossible assignments more and more these days. Whether they have monetary, knowledge, or time prerequisites beyond that of the student, they are a growing problem and something has to be done about it by the students.
If these problems are allowed to continue without the intervention of parents or students, education in this country is going to fail. It failed me. I am not the first, and sure to not be the last. So I plead with the people who read this thread to do something about this problem.
Daedalus- wrote:Schools, public and private, are giving impossible assignments more and more these days.
This isn't an impossible assignment though. It's quite an interesting one actually, and should get you used to PHP's basics (forms, variables, arrays, operators, and a couple of basic functions). Of course, you could go a hell of a long way writing a super-duper calculator that did loads of stuff, but I don't think that's what the tutor is asking for here.
Let me reiterate something that another person posted.
Jcart wrote:I thought we are opposed to writting code for people when it is for school
Do the right thing here, and contact your school administration because writting such an application is seriously out of your skill level (being 3 hours experience). I could barely figure out basic syntax within 3 hours..
Jcart wrote:because writting such an application is seriously out of your skill level (being 3 hours experience).
Jcart wrote:3 hours experience.
I would figure that for the average person, with no scripting experience, and only a 3 hour crash course, this is an impossible assignment.
I've been through 3x as many hours of C# webcasts and still couldn't write a calculator.
Really though, the fact still remains that the problem exists and my statement still stands.
I would prefer to not let this take the thread off-topic though.
Daedalus- wrote:Schools, public and private, are giving impossible assignments more and more these days. Whether they have monetary, knowledge, or time prerequisites beyond that of the student, they are a growing problem and something has to be done about it by the students.
In a computer science course after having three classes in the basics of PHP, you should be able solve a simple problem like this. It is not a bad problem because it is really more a design problem than a coding one -- the ultimate code being fairly simple. Oh no! Students are being forced to think!
Daedalus- wrote:If these problems are allowed to continue without the intervention of parents or students, education in this country is going to fail. It failed me. I am not the first, and sure to not be the last. So I plead with the people who read this thread to do something about this problem.
Oh give me a break ... you sound like a politician rambling talking points to scare people into voting for him. Yeah right ... a growing problem of school being too hard!
My ex-girlfriend and I, while in high school, would regurlarly recieve assignments from the teacher that were well beyond her (or her parents) financial abilities. I have experienced this myself. Also, we have both recieved graded assignments that required not only transportation, but hours of time that neither of us had.