Jump to content

The Programming thread


Dienekes

Recommended Posts

Hi All

 

I recently got one of my tube-light switched on when I suddenly realized that we don't have a thread related to programming. So, here I code it, I mean create it. :dance:

 

This thread is for programmers, to-be programmers, dumbheads, novices..... basically for everyone.

 

You can discuss anything related to software/game/web programming at this address.

You have questions/issues, ask them here.

You have code-snippets to share, do it here.

You lately came to know about a simple yet innovative programming language, tell it here.

 

Anything from HTML to rocket science can be transported to fellow GIs through this thread.

 

So, start sharing and happy coding :dance:

 

P.S. Please do not post any copyrighted or protected code pieces.

 

Cheers

Link to comment
Share on other sites

hmm wat is the language of preference for mobile app/game development??

i don't think j2me is all that gr8 anymore... with memory restrictions disappearing fast...

any1 worked on FLASH (flex i think it is...)

Link to comment
Share on other sites

@RaghavB.. Yup, for sure. :dance:

BTW, can anyone list out some "good" (and tested) tutorials or links for learning Flash programming? Also, what tools one need to use?

 

@dabba.. C++.. But if you have a MS .NET related background (mainly C#), then XNA is a good framework to learn/start with.

Link to comment
Share on other sites

hmm wat is the language of preference for mobile app/game development??

i don't think j2me is all that gr8 anymore... with memory restrictions disappearing fast...

any1 worked on FLASH (flex i think it is...)

It depends on which platform you are developing for..For WM phones, choice is generally C/C++ if you want it to be really fast and compact, something out of the .net stable if you want the development to be rapid. For Android, you have to work with a language similar to Java. etc...

Link to comment
Share on other sites

It depends on which platform you are developing for..For WM phones, choice is generally C/C++ if you want it to be really fast and compact, something out of the .net stable if you want the development to be rapid. For Android, you have to work with a language similar to Java. etc...

 

OT : impressive blogs my friend :D

Link to comment
Share on other sites

Not exactly a programmer,but a hobbyist. Tried XNA for a while. I'm into game art, so there is always that need to see the asset inside the game environment.

 

Anyone tried logic based game dev like in Quest 3D..pretty simple to start with and no coding :D

 

@ dabba : dont know much about flex tho, but a friend of mine worked on flashlite to do flash games..

Link to comment
Share on other sites

more than 2 yrs back i had developed a game in j2me, which is y i was asking if j2me is still used in mobile game development...

simple game not using 3D

 

flash lite has the advantage that u don't need to code to a specific screen size... the game re-sizes without any loss in quality :thumbsup:

 

havn't coded in c/c++ since college days :majesty: n have no clue wat XNA is.... *visits thread vinit posted*

 

btw current work involves j2ee development :majesty:

Link to comment
Share on other sites

  • 4 weeks later...

/* Work of Ashrith Babu Rao
  For the year 2008-2009
  School Project
*/

#include <iostream.h>
#include <conio.h>
#include <math.h>

int main()
{		clrscr();
     float P, R, T, SI, CI;
	int ch;
	float x,y,z,a;
     char ch1;
     do

    {

    clrscr();
cout<<"CALCULATOR:\n----------\n\n";

cout<<"SIMPLE CALCULATIONS:\n-------------------\n";
cout<<"1: Addition\n2: Subtraction\n";
cout<<"3: Multiplication\n4: Division\n\n\n";

cout<<"SCIENTIFIC:\n----------\n";

cout<<"5:  Power\n6:  Logarithm\n7:  Sin\n8:  Cos\n9:  Tan\n";
cout<<"10: Sin Inverse\n11: Cos Inverse\n12: Tan Inverse\n\n";

cout<<"\nINTEREST CALCULATOR:\n-------------------\n";
cout<<"13: Simple Interest\n14: Compound Interest\n\n";

cout<<"\nEnter Choice"<<endl;

cin>>ch;

    	 	if(ch==1)
     	{  clrscr();

cout<<"Addition\n--------\n\n";
cout<<"Enter four numbers"<<endl;
cin>>x>>y>>z>>a;
cout<<"\nAnswer: "<<(x+y+z+a);

        }
        if(ch==2)
     	{	clrscr();

cout<<"Subtraction\n-----------\n\n";
cout<<"Enter two numbers"<<endl;
cin>>x>>y;
cout<<"\nAnswer: "<<(x-y);

        }
        if(ch==3)
     	{	clrscr();

cout<<"Multiplication\n--------------\n\n";
cout<<"Enter two numbers"<<endl;
cin>>x>>y;
cout<<"\nAnswer: "<<(x*y);

        }
        if(ch==4)
     	{	clrscr();

cout<<"Division\n--------\n\n";
cout<<"Enter two numbers"<<endl;
cin>>x>>y;
cout<<"\nAnswer: "<<(x/y);

        }
        if(ch==5)
        {  clrscr();

cout<<"Power ** x^y **\n---------------\n\n";
cout<<"Enter two numbers"<<endl;
cin>>x>>y;
cout<<"\nAnswer: "<<pow(x,y);

        }
        if(ch==6)
     	{	clrscr();

cout<<"Logarithm\n---------\n\n";
cout<<"Enter a number"<<endl;
cin>>x;
cout<<"\nAnswer: "<<log10(x);

        }
        if(ch==7)
     	{	clrscr();

cout<<"Sine of X\n---------\n\n";
cout<<"Enter a value"<<endl;
cin>>x;
cout<<"\nAnswer: "<<asinl(x);

        }
        if(ch==8)
     	{	clrscr();

cout<<"Cosine of X\n-----------\n\n";
cout<<"Enter a value"<<endl;
cin>>x;
cout<<"\nAnswer: "<<acosl(x);

        }
        if(ch==9)
     	{	clrscr();

cout<<"Tangent of X\n------------\n\n";
cout<<"Enter a value"<<endl;
cin>>x;
cout<<"\nAnswer: "<<atanl(x);

        }
        if(ch==10)
     	{	clrscr();

cout<<"Sine Inverse of X (Round off to nearest integer)";
cout<<"\n------------------------------------------------\n\n";
cout<<"Enter a value"<<endl;
cin>>x;
cout<<"\nAnswer: "<<asin(x)*180/3.1416;

        }
        if(ch==11)
     	{	clrscr();

cout<<"Cosine Inverse of X (Round off to nearest integer)";
cout<<"\n--------------------------------------------------\n\n";
cout<<"Enter a value"<<endl;
cin>>x;
cout<<"\nAnswer: "<<acos(x)*180/3.1416;

        }
        if(ch==12)
     	{	clrscr();

cout<<"Tangent Inverse of X (Round off to nearest integer)";
cout<<"\n---------------------------------------------------\n\n";
cout<<"Enter a value"<<endl;
cin>>x;
cout<<"\nAnswer: "<<asin(x)*180/3.1416;

        }
        if(ch==13)
     	{	clrscr();

cout<<"Simple Interest\n---------------\n\n";
cout<<"Enter Principal Amount: ";
cin>>P;
cout<<"\nEnter Rate of Interest: ";
cin>>R;
cout<<"\nEnter Time Period in Years: ";
cin>>T;
cout<<"Simple Interest = Rs. "<<(P*R*T)/100;
SI = (P*R*T)/100;
cout<<"\n\nYou will be receving "<<"Rs. "<<(SI+P);
cout<<" after "<<T<<" years\n";

        }
        if(ch==14)
     	{	clrscr();

cout<<"Compound Interest\n-----------------\n\n";
cout<<"Enter Principal Amount: ";
cin>>P;
cout<<"\nEnter Rate of Interest: ";
cin>>R;
cout<<"\nEnter Time Period in Years: ";
cin>>T;
cout<<"Compound Interest = Rs. "<<(P*pow((1+R/100),T)-P);
CI = (P*pow((1+R/100),T)-P);
cout<<"\n\nYou will be receving "<<"Rs. "<<(CI+P);
cout<<" after "<<T<<" years, compounded anually\n";

        }


     cout<<"\n\nEnter More?(Y/N)"<<endl;
     cin>>ch1;
     }while(ch1=='y');

     clrscr();
     cout<<"\n\nThank you for using!";
     getch();
}

 

That's the project I made for my school. Simple and easy to use, without any classes or structures as such. Simple Switch-Case :P

Link to comment
Share on other sites

Can anyone throw some info on sources for freelance projects? Any websites, portals where things work out well.

Thanks.

 

Dude just go to sourceforge.net there are a lot of open source projects there you can work on.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...