Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
my teacher told me that it would take 10 minutes

Right, but that's after you read the chapter. Obviously, if you haven't read the chapter, you won't know how to complete the assignment. What textbook are you using? (The prof *did* assign a textbook, I hope...) Does it have a picture of a camel on the front? Or a llama? (If it says "21 days" on the cover, you should probably hightail it to a library and get one of the ones with an animal on the cover to go along with it. They're much better.) We could probably point you to the right section of the textbook; OTOH, your professor probably can too, and may have already. You'll want to read the chapter before attempting the assignment.

Of course, we could also probably just give you the answer to this assignment. (Ten minutes? I could do it in ninety seconds.) But that won't help you pass the class. It'll get you through this assignment, but if you don't understand this one, you'll be in over your head soon, as the class moves on to more involved programming. If you're going to pass the course, you need to understand the answer you turn in.

update:
Look Guys, my Major is not computers i had to take a computer course to get the degree, the only reason i took perl is because it sounded interesting

Perl is interesting, and a lot of fun. We all (well, all of us with degrees) had to take courses outside our majors. My major was Math, but I took a drawing class, an Appreciation of Fine Arts class, and other things. And you don't have to be a computer major to enjoy dabbling in using computers just a little. We're not asking you to achieve Guru status, and neither does your professor expect that. But you will have to learn something.

to be honest with you, i dont even know how to start, thats why i asked if somebody could do it for me or at least start then i could take it from there

We're trying to help you know where to start. If we just start the problem for you, you will not very likely be able to <q>take it from there</q>. Computer programming, like math and foreign languages, is inherently cumulative. It's not like History, where once you pass the quiz on the first chapter you can move on to other things. The very first things you have to learn, you still need to understand to do the work at the very end of the course, and to pass the exam.

if you dont want to do it and money is in your mind, i could pay for your service, just keep in mind I am a student.

You'd have to pay one of us to take the exam for you too, including travel expenses to your university and whatever it takes to buy off your professor to look the other way when we don't look like you. As a student, you can't afford that. And then there's the risk of getting caught, not to mention the value of your personal integrity.

The book that i have has a lama on the cover,

Excellent. That's widely regarded as a good one, and is probably the best choice for you if you've never programmed before. I learned Perl from the Camel book, which is better if you have previous programming experience in other languages, but the Camel book starts out a little steeply for someone with no prior experience, so the Llama is probably the best possible textbook you could have for the course, in your situation.

if it was something that i would do everyday i would learn perl, but once i pass this course may be i wont even work on computer anymore,

Maybe, if you take the time to learn Perl, you'll change your mind about that, and decide to do a little programming on the side -- nothing complicated, just for a hobby. Or maybe not, but wouldn't you like to explore the possibility?

and there are only 2 assignments on this course, test i have no problem i could just read the book and somehow pass it.

I don't think you'll be able to pass the test, or the course, without learning enough Perl to complete this assignment. The test will have questions on it that require you to write some short bits of code -- nothing complicated, but then, this assignment isn't very complicated either. It is something you'll be able to do.

So, get out that textbook and start looking it over. To complete this assignment, you'll need to learn the basics of just about half a dozen Perl features: print (start with that one, and you can complete the first requirement listed in the assigment just with that), @ARGV (and probably arrays in general), open, reading from filehandles (with the <DIAMOND> operator), pattern matching and substitution (notably, s///), and conditionals (i.e., if). None of these, individually, is very hard, since you only need to learn their basic features, not every nuance. If you have a specific question about any of these, or if there is some particular point you don't understand, ask us. We do try to be helpful, really. But just giving you an answer to the assignment, as much as you might think it would help, would not, in fact, help you -- not in the long run, and indeed almost certainly not even in your stated goal of passing the course.


"In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."  — Pratico & Van Pelt, BBHG, p68

In reply to Re: <> diamond Operator by jonadab
in thread <> diamond Operator by kocaweb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-24 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found