Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Need Help Badly!!!

by qbnlnk
on Apr 12, 2011 at 02:06 UTC ( #898823=perlquestion: print w/ replies, xml ) Need Help??
qbnlnk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I am part of a beginner programming group. We meet every Tuesday afternoon and
this Tuesday we were going to go into PERL and CGI. None of us have coded
using these languages. I was hoping someone with better knowledge could write
the html and PERL/CGI script below so that we could go over it tomorrow and
figure out how to do it ourselves. Any help would be greatly appreciated.

Create a simple webpage that:

* Allow the user log into the web page using a user name (an email address) and password.
o If the user is not successful display a message indicating incorrect login o It the user is successful,
+ display a page of fields, one for each grade in this course.
+ Allow the user to enter all of their grades
+ Using the max grades for the assignments listed below, and the course requirements for percentages calculate the appropriate final grade as a percentage and as a letter grade.
+ Allow the user to email the grade results to the email used in the login prompt.


* Allow the user to indicate which grades are already final, and which are guesses
* Then let the program compute, for any guess that is not the maximum grade for the assignment, what the maximum grade could be and display that to the user
Assignment:

Quizes:
Chapter 1 -10 points
Chapter 2 -10 points
Chapter 3 -10 points
Chapter 4 -10 points
Chapter 5 -10 points
Chapter 6 -10 points
Chapter 7 -10 points
Chapter 8 -10 points
Chapter 9 -10 points
Chapter 10 -10 points

-100 possible points-

Homework
Chapter 1 -10 points
Chapter 2 -10 points
Chapter 3 -10 points
Chapter 4 -10 points
Chapter 5 -10 points
Chapter 6 -10 points
Chapter 7 -10 points
Chapter 8 -10 points
Chapter 9 -10 points
Chapter 10 -10 points

-100 possible points-

Assignments
Project 1 -25 points
Project 2 -25 points
Midterm -100 points
Final (Extra Credit) -25 points
Project 3 -25 points

-225/200 possible points-

----There is a total of 400 possible points, which will then be calculated into a percentage----

In other words, the web page must ask the user for a user name and password. The user name must be an email address, as long as the user puts in a proper email address and any password he is allowed in. The next part is that the user needs to input all of his grades into fields with the above titles. The program then calculates the grade.

If someone could help us with this, we can then go over it tomorrow. Thanks.

Comment on Need Help Badly!!!
Re: Need Help Badly!!!
by ww (Bishop) on Apr 12, 2011 at 02:19 UTC
    Well, you have certainly managed to ask your question badly -- nay, almost unintelligibly -- and I, for one, am unwilling to spend the requisite time to figure out the details of what you're talking about in this basically unformatted blob of text.

    But based on what I do understand, you're asking for a completed program that satisfies all the multi-path possibilities outlined above.

    That's not gonna' happen; suggest you and your group spend Tuesday reading the FAQs and other guidance about Perl Monks and how to ask questions here:

    We're here to help; not to serve up free code, so heed the advice above ... and then try again, next week, with code and far more limited specs.

      I am very sorry about the way my post came out. This was my first post ever on this website and I didnt realize I needed to add the
      . I appreciate your quick response and I hope I didnt upset you. I was just looking for help, it would make the discussion go a lot easier. If i dont recieve the code, we are going to spend the hour writing the code, and then have no time left to understand the code and learn where else we could go from there.

        An important element in both learning and in exam technique is to read the instructions. There are instructions that tell you You can use these tags: <p> for text; <code> for code (for example) above the area you entered your node text. There are further instructions with links to extensive documentation below the text edit area.

        After you have clicked the preview button you must have seen things looked rubbish and there is the text "If something looked unlike you expected it to you might need to check out Writeup Formatting Tips" just above the text entry area. If you can't even read and be bothered to follow those instructions why should we be bothered to do your homework for you?

        Show some effort and we will help sort out problems you may have.

        True laziness is hard work
        If i dont recieve the code, we are going to spend the hour writing the code, and then have no time left to understand the code and learn where else we could go from there.
        Sounds like a good plan to me! You'll learn and understand a lot more by doing it yourself than by asking someone else to do it for you.

        "If i dont recieve the code, we are going to spend the hour writing the code, and then have no time left to understand the code and learn where else we could go from there."

        Oh dear...

Re: Need Help Badly!!! (Please don't use titles like this.)
by luis.roca (Deacon) on Apr 12, 2011 at 03:05 UTC

    In addition to what's been said:

    Please use descriptive titles like: "Our Computer Club is Looking For Perl/CGI Tutorials". Although I'm sure for you this is a major emergency, titles like: "Help!", "HELP!!, or your "Need Help Badly!!!" don't really help us know what your post is about and can even annoy some of the members.

    As for your problem, spending the hour writing code doesn't sound so bad to me. Is your club expecting to learn Perl and CGI in one hour? If so you're going to be disappointed. It takes a lot longer than that: Teach Yourself to Program in Ten Years.

    If all you're going to spend on Perl/CGI (or any other language) is one hour I would say don't bother. Hang out, have a few beers or some coffee. Otherwise, if you actually have an interest in learning Perl/CGI for beginners I would try the online chapters of CGI Programming 101 by Jacqueline D. Hamilton

    Also, understand that when you ask forum members to write a program for you, you are asking people you never met before to spend time working on your problem, free of charge. Don't you think that's a very big favor to ask considering many here make their living programming?

    This is a great place to learn if that's what you're interested in doing.


    "...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." Don Quixote
Re: Need Help Badly!!!
by davido (Archbishop) on Apr 12, 2011 at 07:46 UTC

    Why don't you try this: Figure out how you would code the solution without worrying about login or CGI at all. For example, write a script that reads from <> for all input, and prints out the result as plain text. If you can solve the problem exclusive of CGI issues, you're halfway there. If you can't, you're not ready to layer in CGI anyway.

    I'll tell you what: If you post a working non-CGI solution, I'll provide pointers on how to proceed from there on converting it to a CGI application.


    Dave

Re: Need Help Badly!!!
by marto (Chancellor) on Apr 12, 2011 at 08:08 UTC

    "I was hoping someone with better knowledge could write the html and PERL/CGI script below so that we could go over it tomorrow and figure out how to do it ourselves."

    Uh huh, go over it yourselves eh? This actually looks exactly like home/course work. I suggest reading the following and working through the example code where appropriate:

Re: Need Help Badly!!!
by raybies (Chaplain) on Apr 12, 2011 at 12:39 UTC

    Questions like these make me wonder: How did people learn things prior to the internet?

    --Ray

      You're supposing they're learning things now with it rather than just finding random schmucks to do them for them.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://898823]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-08-29 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls