Jump to content

New here, stupid question


Recommended Posts

First of all, I would like to apologize for this thread, please accept my apologies.

I'm a student and I've been given the task to write about AutoIt and to code a program with it. (We study C++, this is the first time I've heard of this language)

The task is " Input an integer number n and output the sum: 1+22+32+...+n2. Use input validation for n to be positive. "

I would be more than grateful if somebody can code the program for me and again, I am terribly sorry for the nuisance.

Link to comment
Share on other sites

48 minutes ago, SlimFatso said:

I'm a student and I've been given the task to write about AutoIt and to code a program with it.

 

48 minutes ago, SlimFatso said:

I would be more than grateful if somebody can code the program for me

I'm confused! who is the student? and who should learn what?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

@JohnOne
He is the student :D

The teacher has given to him ( or to the class ), the homework he described to us...
Another question rises spontanueous...
 

1 hour ago, SlimFatso said:

(We study C++, this is the first time I've heard of this language)

Why a teacher should give to his/her students an homework without any references? :/
 

I'm confused too :D 

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

  • Moderators

As you are a student, and tasked with this assignment, it would be cheating on your part to have someone "code the program for you". If you are too lazy to code a simple script in AutoIt, you will be useless as a C++ developer. No one here is going to help you cheat.

We will, however, point you in the right direction - but you have to put forth the effort. Look in the help file under Language Reference - Operators. It should give you all you need to move forward with simple math functions.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Since you're a student, you must have learned long ago (or are able to find by yourself and prove correct) a simple cubic formula for the sum of the squares of the first n natural integers. That's fairly trivial stuff.

Implementing this simple cubic in (almost) any general-purpose programming language is mostly a matter of minutes.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...