Could someone please explain how to figure out this problem.
This is a study question to help me on a future exam not homework questions. Please help explain.
Given the linear programming problem
Minimize C = x + 2y subject to
x%26lt; 3
y%26lt; 5
x + y%26gt; 5
x%26gt; 0, y%26gt; 0
Use the method of corners to determine the where the minimum occurs, and give the minimum value.
Method of Corners Linear programming problem. Please Help!?
Susan, all inequalities must be non-strict / ≤ or ≥ /, otherwise Your problem has no solution, we can't guarantee that minimum is reached. Graph the domain now, You'll have a vertical line 3 units right from the origin /the corresponding semi-plane to the left from it, You have x ≤ 3/; a horizontal one 5 units above /the semi-plane down/; connect the points (0,5) and (5,0); the domain is a right triangle in the 1st quadrant with vertexes (3,2), (3,5) and (0,5). Calculate the values of C in them:
C(3, 2) = 7, C(3, 5) = 13, C(0, 5) = 10, so the minimum value is 7 and is reached in the point (3,2)
Monday, May 24, 2010
What programming language is used to create a mmorpg?
Which one of these is most commonly used to make a massivly multi-player online role-playing game, C#, Java, C++ or other programming languages.
What programming language is used to create a mmorpg?
C++ is still used the most.
What programming language is used to create a mmorpg?
C++ is still used the most.
What program out there can help a person if they are behide in house payments?
I want to know what programs that are out there that can help my mother. She is behide with her payments. I don't want to refinance in my name. I don't want nothing to tie me to that town. She went to the lawyer to file Bankrupt. They told her she need $2,000. I told her if you had that much money then you wouldn't be behide. Please help me. I don't know where to turn to. I really don't want to put it in my name thats the last deal.
And yes we tried Save your home. They are full of Sh^T! They told her that she wasn't in too much in the rear.
What program out there can help a person if they are behide in house payments?
The best I can offer is the company i work with. Feel free to e-mail me or go to my website for further details. http://www.consolidatedsg.com/brmj41975/...
Reply:Yikes, you best go to this site. They are there to assist people in potential foreclosure problems.
National Home Recovery Program for foreclosures http://www.nhrp.com/
Sorry about the problems I hope the link helps.
And yes we tried Save your home. They are full of Sh^T! They told her that she wasn't in too much in the rear.
What program out there can help a person if they are behide in house payments?
The best I can offer is the company i work with. Feel free to e-mail me or go to my website for further details. http://www.consolidatedsg.com/brmj41975/...
Reply:Yikes, you best go to this site. They are there to assist people in potential foreclosure problems.
National Home Recovery Program for foreclosures http://www.nhrp.com/
Sorry about the problems I hope the link helps.
What are differences and comparisons of HTML and Java programming?
Hi,
I was wondering if you could possibly tell me some similarities and differences between HTML and Java programming?
Thanks for your help!!
What are differences and comparisons of HTML and Java programming?
To be honest, there are very few similarities between HTML and Java.
HTML is what they call a "markup" language, and is an "interpreted" language, not a compiled one like Java. Basically, all HTML does is define the appearance and layout for webpages. When a page is loaded, the browser "reads" the HTML for the page, and it tells it where to put the various elements, what colors to make them, etc. It is not capable of performing any kind of logical checks, calculations, or data manipulation - it just defines appearance.
Java, on the other hand, is a full blown, 3rd generation programming language, capable of performing sophisiticated data manipulations and calculations. Java is a compiled language, meaning that before a Java program can be run or redistributed, it must be "compiled", which basically turns the code into a language that the computer can more easily understand.
Typically, HTML is used for the "front end", and Java is used for the "middle tier", connecting to a database at the "backend". Hope this helps a little.
Reply:HTML and java are completely different.
HTML is a markup language .. i.e. it just defines how the data must be represented which should not be confused with a programming language. You cant program any logic.
whereas Java is a programming language where you can actually provide some type of logic.
Reply:Other than both of them being object oriented programming languages, they barely have anything common.
Differences that come into mind first:
1. HTML is strictly front end language, Java is not
2. HTML is a script - it gets compiled/parsed on the fly by the browser while Java is pre-compiled into bytecode prior to become usable
3. HTML is only usable within a browser, and can barely do anything other than displaying info passed to it while Java is capabale of data processing of virtually any complexity.
4. Pretty much everything else...
fresh flower
I was wondering if you could possibly tell me some similarities and differences between HTML and Java programming?
Thanks for your help!!
What are differences and comparisons of HTML and Java programming?
To be honest, there are very few similarities between HTML and Java.
HTML is what they call a "markup" language, and is an "interpreted" language, not a compiled one like Java. Basically, all HTML does is define the appearance and layout for webpages. When a page is loaded, the browser "reads" the HTML for the page, and it tells it where to put the various elements, what colors to make them, etc. It is not capable of performing any kind of logical checks, calculations, or data manipulation - it just defines appearance.
Java, on the other hand, is a full blown, 3rd generation programming language, capable of performing sophisiticated data manipulations and calculations. Java is a compiled language, meaning that before a Java program can be run or redistributed, it must be "compiled", which basically turns the code into a language that the computer can more easily understand.
Typically, HTML is used for the "front end", and Java is used for the "middle tier", connecting to a database at the "backend". Hope this helps a little.
Reply:HTML and java are completely different.
HTML is a markup language .. i.e. it just defines how the data must be represented which should not be confused with a programming language. You cant program any logic.
whereas Java is a programming language where you can actually provide some type of logic.
Reply:Other than both of them being object oriented programming languages, they barely have anything common.
Differences that come into mind first:
1. HTML is strictly front end language, Java is not
2. HTML is a script - it gets compiled/parsed on the fly by the browser while Java is pre-compiled into bytecode prior to become usable
3. HTML is only usable within a browser, and can barely do anything other than displaying info passed to it while Java is capabale of data processing of virtually any complexity.
4. Pretty much everything else...
fresh flower
How to connect a coin slot to my computer and what programming language should be use?
We have this project which we called the Digital Photo Printing vending machine where it accepts input of digital photos by the use of bluetooth tech, memory card reader and mmc. You can only print your photo if you are to insert the right amount of coin.
The problem is, I keep on thinking where should i connect the coin slot? is it through parallel? or serial port? or any other bright ideas?
What program should be used to build an application that would accept the 3 input choices and will manipulate the printing and detection of how much amount is already been paid?
This concept is same as the popular kodak photo kiosk only it is not a vending machine.. i wonder what programming language did they use for the application?
How to connect a coin slot to my computer and what programming language should be use?
This wont help you but it gave me an idea..
I should put a coin slot on my PC..
Yea cause then when my kids want to get on it they have to put quarters in to surf the internet. hehe cool huh ;-)
Reply:the language wont matter, its the same general princple for using any low order device. the connection type of the device is up to the harware you trying to use...
the coin slot in this case will cause and input event everytime a coin is passed into it, the 'value' of the coin will be a specific event, you have to write a either a low level driver to control inputs to your program shuch that it gives human useable events, OR use a low level o/s hook to caputre the device event from windows (which will be a string) and through trial and error (easy enuf... enter one coin and record what it is) find each coin then write the correct response into your program.
and the KPK program was probably done in c++ or a variant
Reply:There is a device called an IPAC that they still may sell for the PC. This is used as keyboard intervention by device. So basically if you have a piece of software that will translate the coin drop as hitting say the letter C or F etc it should then register in your program through the IPAC interface.
You might check out arcade devices because you are sure to find a device thats already built to interface with your project.
http://www.ultimarc.com/ipac1.html
Just looked that up for you and found this...
Also some free software for currency reader etc..
http://www.fileboost.net/directory/devel...
Give that a try :P
Just check arcade links and you should be able to find what you need
The problem is, I keep on thinking where should i connect the coin slot? is it through parallel? or serial port? or any other bright ideas?
What program should be used to build an application that would accept the 3 input choices and will manipulate the printing and detection of how much amount is already been paid?
This concept is same as the popular kodak photo kiosk only it is not a vending machine.. i wonder what programming language did they use for the application?
How to connect a coin slot to my computer and what programming language should be use?
This wont help you but it gave me an idea..
I should put a coin slot on my PC..
Yea cause then when my kids want to get on it they have to put quarters in to surf the internet. hehe cool huh ;-)
Reply:the language wont matter, its the same general princple for using any low order device. the connection type of the device is up to the harware you trying to use...
the coin slot in this case will cause and input event everytime a coin is passed into it, the 'value' of the coin will be a specific event, you have to write a either a low level driver to control inputs to your program shuch that it gives human useable events, OR use a low level o/s hook to caputre the device event from windows (which will be a string) and through trial and error (easy enuf... enter one coin and record what it is) find each coin then write the correct response into your program.
and the KPK program was probably done in c++ or a variant
Reply:There is a device called an IPAC that they still may sell for the PC. This is used as keyboard intervention by device. So basically if you have a piece of software that will translate the coin drop as hitting say the letter C or F etc it should then register in your program through the IPAC interface.
You might check out arcade devices because you are sure to find a device thats already built to interface with your project.
http://www.ultimarc.com/ipac1.html
Just looked that up for you and found this...
Also some free software for currency reader etc..
http://www.fileboost.net/directory/devel...
Give that a try :P
Just check arcade links and you should be able to find what you need
Free programs that actually work to help my computer run faster?
Please help. My computer is slowly getting slower and I have very little programs installed on it.
Free programs that actually work to help my computer run faster?
heh....could be so many things
I would recommend http://www.xp-smoker.com/ it might help
Reply:get easy cleaner... it will clean all the gunk out of what i assume to be a windows computer...
http://personal.inet.fi/business/toniart...
Reply:www.ubuntu.com
I have been running Ubuntu for months now. When it is used with the Automatix application, I get almost all the functionallity of Windows without the issues associated with spyware and virui.
Reply:Could be that your computer has become Virus'd,,,or you have a lot of adware on it.
First,,,if you have no antivirus program,,,download a free for home use copy of Avast antivirus,,,then set it up so it scans during boot up,,,,then get a copy of Spysweeper,,,and run it.
after all of this,,go get a copy of ZoneAlarm,,,also free for home use,,,after doing all of this,,if your PC is still screwed up,,,then you should consider doing a clean install of your windows software.
Reply:depending on the age of your pc it could be low memory issue.
may wanna look at what memory you have and get more memory installed if its low
Free programs that actually work to help my computer run faster?
heh....could be so many things
I would recommend http://www.xp-smoker.com/ it might help
Reply:get easy cleaner... it will clean all the gunk out of what i assume to be a windows computer...
http://personal.inet.fi/business/toniart...
Reply:www.ubuntu.com
I have been running Ubuntu for months now. When it is used with the Automatix application, I get almost all the functionallity of Windows without the issues associated with spyware and virui.
Reply:Could be that your computer has become Virus'd,,,or you have a lot of adware on it.
First,,,if you have no antivirus program,,,download a free for home use copy of Avast antivirus,,,then set it up so it scans during boot up,,,,then get a copy of Spysweeper,,,and run it.
after all of this,,go get a copy of ZoneAlarm,,,also free for home use,,,after doing all of this,,if your PC is still screwed up,,,then you should consider doing a clean install of your windows software.
Reply:depending on the age of your pc it could be low memory issue.
may wanna look at what memory you have and get more memory installed if its low
What are some websites that can help with linear programming?
finding maximum and minimum
What are some websites that can help with linear programming?
I assume you want to use the Simplex algorithm for numerical solution of the linear programming problem. This problem isn't "finding the maximum and minimum" but rather maximizing or minimizing a given linear functional on a set of real variables, given a set of linear inequalities on the variables.
See the links for a description of the algorithm.
What are some websites that can help with linear programming?
I assume you want to use the Simplex algorithm for numerical solution of the linear programming problem. This problem isn't "finding the maximum and minimum" but rather maximizing or minimizing a given linear functional on a set of real variables, given a set of linear inequalities on the variables.
See the links for a description of the algorithm.
What jobs could I have with a major in journalism a minor in politics and a emphasis in computer programming?
What kind of job do you think that I could have with a major in journalism a minor in politics, and an emphasis in computer programming classes? I am very interested in all these areas and i like what I am doing, it's just that I'm not quite sure what I can do with them besides the obvious careers. Any help would be appreciated!!!
What jobs could I have with a major in journalism a minor in politics and a emphasis in computer programming?
Related careers for Journalism:
Copy Editors
Editors
News Analysts, Reporters, and Correspondents
Public Relations Specialists
Technical Writers
Writers
Related careers for politics:
Government Executives and Legislators
Government Lawyers
Judges
News Analysts, Reporters, and Correspondents
Public Interest Advocates
Public Interest Lawyers
Related careers for computer programming:
Computer and Information Systems Managers
Computer Programmers
Computer Scientists
Computer Software Engineers
Computer Support Specialists
Computer Systems Analysts
hope this helps.
flower names
What jobs could I have with a major in journalism a minor in politics and a emphasis in computer programming?
Related careers for Journalism:
Copy Editors
Editors
News Analysts, Reporters, and Correspondents
Public Relations Specialists
Technical Writers
Writers
Related careers for politics:
Government Executives and Legislators
Government Lawyers
Judges
News Analysts, Reporters, and Correspondents
Public Interest Advocates
Public Interest Lawyers
Related careers for computer programming:
Computer and Information Systems Managers
Computer Programmers
Computer Scientists
Computer Software Engineers
Computer Support Specialists
Computer Systems Analysts
hope this helps.
flower names
After graduation I wanna take a break to travel and help those less fortunate, where do I look for programs?
After graduating from college this spring, I want to take a year off to help the less fortunate by traveling to third world countries. Are there any programs out there that would help me to do that? I know the Peace Corps requires at least 2 years of service..is there any program that requires less then that time since I only have a year off?
After graduation I wanna take a break to travel and help those less fortunate, where do I look for programs?
Try idealist.com; they are a database for internships and I think they have listings for other countries. I am looking for service work as well.
Reply:You should actually be able to get some information on this from your college's career center. You might also look into City Year and its parent organization, AmeriCorps, which are great sources for volunteering opportunities, although I think those mostly focus on domestic programs.
After graduation I wanna take a break to travel and help those less fortunate, where do I look for programs?
Try idealist.com; they are a database for internships and I think they have listings for other countries. I am looking for service work as well.
Reply:You should actually be able to get some information on this from your college's career center. You might also look into City Year and its parent organization, AmeriCorps, which are great sources for volunteering opportunities, although I think those mostly focus on domestic programs.
I need help programming a flash button.?
I am trying to make a flash button that constantly moves even when the button is not being hovered over or clicked on. It doesn't need to do anything when it is hovered over or clicked on but could someone please help me with the programming.
I need help programming a flash button.?
well all you would have to do is create the button you want just like if it was going to be a normal button but instead, why dont you make it like a flash animation? contact me for more
Reply:Yes, may be you can contact a flash expert. Check websites like http://getafreelnacer.com/
I need help programming a flash button.?
well all you would have to do is create the button you want just like if it was going to be a normal button but instead, why dont you make it like a flash animation? contact me for more
Reply:Yes, may be you can contact a flash expert. Check websites like http://getafreelnacer.com/
I need a good community based kids program for my kids to join or help start up. Do you know a good one?
I'm looking to start something for my kids, mainly after school, something a home schooler parents would like so that other families could join them. (I'm not a home schooler parent). I would like them to have hands on experiences in being able to develope small skills to build character and confidence and to be able to help themseves and others. At home skills, tools, car care, any thing related to or around the home including cooking and sewing. Looking for projects but nothing in the way of sports; excepting hiking and camping. Any thing out doors would be great. Also day trips to business "friendly" local business locations, including farms and ranches. I'm a retired teacher and counselor. I live 30-40 miles south of Fort Worth, TX.
I need a good community based kids program for my kids to join or help start up. Do you know a good one?
Check with the local libraries and Park Districts-they offer such experiences in most areas, especially in the summer months. The Boys and Girls Club and Junior Achievement have regular schedules of such, as well as scouting organizations.
Reply:Music! American Piano Schools proved it and offers advice and service, trips and events also work well, like a Friday After School Club. You can hire a music teacher to come in and give group lessons.
I need a good community based kids program for my kids to join or help start up. Do you know a good one?
Check with the local libraries and Park Districts-they offer such experiences in most areas, especially in the summer months. The Boys and Girls Club and Junior Achievement have regular schedules of such, as well as scouting organizations.
Reply:Music! American Piano Schools proved it and offers advice and service, trips and events also work well, like a Friday After School Club. You can hire a music teacher to come in and give group lessons.
Where can I find a program to help me remember?
I need a freeware program to help me remember things—for example to help me remember vocabulary words, phrases or even peoples names. I need the program to repeatedly ask me questions. If you know of any freeware programs I would appreciate it.
Where can I find a program to help me remember?
I don't know of any software like this...what you're wanting is a study buddy, and I think those are usually free, and readily available.
Reply:When you find one let me know.
I have heard doing new things improves your memory. Doesn't have to be large differences but small ones are significant as well.
Like listening to a different kind of music. Or taking a different route to work or school. If you drive put a piece of tape on the steering wheel or bike handle.. then on the other or another part of it tape a piece of velvet or something scratchy. When you feel something different under your hand you are conscious of it and it gets your mind going.
See if your friends and family would be willing to have a word of the day and when you like the word deem it the word of the week. Encourage others to use it often.
Try a new language. Instead of listening to music on your headphones buy a knew language CD and play it instead when you're doing daily things.
yugioh cards
Where can I find a program to help me remember?
I don't know of any software like this...what you're wanting is a study buddy, and I think those are usually free, and readily available.
Reply:When you find one let me know.
I have heard doing new things improves your memory. Doesn't have to be large differences but small ones are significant as well.
Like listening to a different kind of music. Or taking a different route to work or school. If you drive put a piece of tape on the steering wheel or bike handle.. then on the other or another part of it tape a piece of velvet or something scratchy. When you feel something different under your hand you are conscious of it and it gets your mind going.
See if your friends and family would be willing to have a word of the day and when you like the word deem it the word of the week. Encourage others to use it often.
Try a new language. Instead of listening to music on your headphones buy a knew language CD and play it instead when you're doing daily things.
yugioh cards
I'm a Web-designer, I want to get into programming - specifically mobile applications, where do I start?
I know basic HTML, javascripting. Nothing more. Which is the best way to start off in developing mobile applications on Google Android? Also, what do I need to know to program for Google OpenSocial? Is there something more to J2ME and Google Android when you talk about Mobile Programming?
I'm a Web-designer, I want to get into programming - specifically mobile applications, where do I start?
I'd say the place to start is non-mobile applications. :)
It's almost like saying, "I want to program for national security software, where do I start?" Most mobile phone apps and games are java applets, so I guess the place to begin would be Java. Get yourself a beginner's Java book and start practicing. Once you get very familar, you can optimize your work well enough that it will run well and leave a small footprint for a mobile device.
I'm a Web-designer, I want to get into programming - specifically mobile applications, where do I start?
I'd say the place to start is non-mobile applications. :)
It's almost like saying, "I want to program for national security software, where do I start?" Most mobile phone apps and games are java applets, so I guess the place to begin would be Java. Get yourself a beginner's Java book and start practicing. Once you get very familar, you can optimize your work well enough that it will run well and leave a small footprint for a mobile device.
Programs or caring family or person in michigan that help unfortunate families for Christmas.?
Im looking for help for christmas for my to young children we really need help this year. Thank you if you respond, thank you if you dont. Everyone one that reads this have a Blessed day %26amp; Happy Holidays!!!
Programs or caring family or person in michigan that help unfortunate families for Christmas.?
w.e
Reply:try your local Salvation army and local churches they will help
Reply:Although I am from Pennsylvania, I would check out the Salvation Army, Big Brothers and Sisters, and toys for tots.
Good Luck.
Reply:Check out this website, seems to be exactly what you are looking for right in michigan, http://findarticles.com/p/articles/mi_hb...
Programs or caring family or person in michigan that help unfortunate families for Christmas.?
w.e
Reply:try your local Salvation army and local churches they will help
Reply:Although I am from Pennsylvania, I would check out the Salvation Army, Big Brothers and Sisters, and toys for tots.
Good Luck.
Reply:Check out this website, seems to be exactly what you are looking for right in michigan, http://findarticles.com/p/articles/mi_hb...
Is there any software that I can use to build a PHP-MYSQL database without knowing programming?
Hopefully it will be a free solution. I dont have a big budget to work with, or time to go learn programming now.
Please help!
Is there any software that I can use to build a PHP-MYSQL database without knowing programming?
Try Macromedia DreamWeaver.
it's good.
Please help!
Is there any software that I can use to build a PHP-MYSQL database without knowing programming?
Try Macromedia DreamWeaver.
it's good.
Can someone pls help me with C programming?
what the hell is meant by a function!..please explain in as lucid and perspicuous a language as possible.
Can someone pls help me with C programming?
all that you have been given sofar is true as far as what functions are. here is my lucid and perce.... whatever version
NB: anything you see any where in a computer application, programming or scripting language that has two brackets after it is a function
eg sum()----in ms excel
printf()-----in C language
count()-----in excel etc
when you write a c program like
void main()
{
int x=2;
int y = 4;
int z=x+y;
printf("%d",z)
}
you would have just used two functions
1. main();
2. printf();
so what the hell are they??? hmmmm?
well look at them like this.
A function is a group of statements with a name, and that performs a specific task.
e.g
printf() is a function whose name is print, and when called by that name, displays on the screen all that you put in between its brackets
main() is a function in every c program, that is called by the operating system, in order to execute your c program.
every faction has its job. but there are generally two types
1. standard functions
2. user-defined functions
standard functions are those that are shipped along with the programming language ready for use e,g printf() scanf() main(), fflush() etc.
user defined functions are those ones you create and use on you own.
e.g you can create a function whose name is add() which when called adds two numbers and displays the result. e.g when you type add(10,20) you see 30 on the screen.
so how do you create them?
first grab these when creating your own.
1. every function has name and you are the one who chooses it. e,g add
2. all function names are followed by brackets ()
e.g add()
3 a function may or may not need parameters to perform its task. e.g (in ms excel when you type sum(50,10) the 10 and 50 are parameters to the function sum()
4. a function may or may not return a value when called( ask me incase you need more on this)
5. to use a function call it by its name. eg add(2,5), printf("are you with me?").
structure
------------------
data type funtionName(parameter list)
{
implementation
}
e.g
void add(int x, int y)
{
int z=x+y;
printf("%d",z);
}
that is a faction created it id called add() it accepts two integer (int x, int y), add them ---int z= x+y, and displays the result---printf("%d",z);
so when you add(2,3)
2 will go in x
3 will go int y above
try this complete program
#include%26lt;stdio.h%26gt;
#include%26lt;conio.h%26gt;
//creating the function
void add(int x, int y)
{
int z= x+y;
printf("%d",z);
}
void main()
{
add(30,10); //calling the above function
getch();
}
Reply:where u from star?.. Report It
Reply:good Report It
Reply:Hi friend,
It is not really any hell. It is a heaven. A function is any block of code that does "something". Ok, what's this something? Well, it may print your name, calculate average, calculate some formulae... What's the use, you may ask, saying I'll better do this in the program itself? This is the actual use: Suppose you need to print your name 100 times but not in a loop. (i.e., when the program starts you need to print, then after some x value is displayed you need to print.. like that...). So, you can't print in a loop. So, function helps you in this situation... You write a function PrintName() and call it whenever you need to print your name.. So, there's no need to type printf ("My name is ..."); 100 times. Instead you type PrintName (); 100 times.. This is a simple example.. A function does a lot more than this... Refer books on C for details...
Reply:You make a function when you need to use a specific code (instructions or commands) many times in your program. To understand it in a better way, imagine a human analogy about this: imagine if you want to tell somebody to sit down for five seconds then stand up for ten seconds then catch a ball before he throws it, and you want him to do that many times, would you repeat all instructions everytime, or you would prefer to "teach" him a gesture so he does all that if you clap for example!
Reply:a function is a group of statements that get called by name.
this function adds two numbers together...
int AddTwo(int a, int b)
{
return a+b;
}
functiona can already exist (in a library, for example) or you can make your own...
hibiscus flower
Can someone pls help me with C programming?
all that you have been given sofar is true as far as what functions are. here is my lucid and perce.... whatever version
NB: anything you see any where in a computer application, programming or scripting language that has two brackets after it is a function
eg sum()----in ms excel
printf()-----in C language
count()-----in excel etc
when you write a c program like
void main()
{
int x=2;
int y = 4;
int z=x+y;
printf("%d",z)
}
you would have just used two functions
1. main();
2. printf();
so what the hell are they??? hmmmm?
well look at them like this.
A function is a group of statements with a name, and that performs a specific task.
e.g
printf() is a function whose name is print, and when called by that name, displays on the screen all that you put in between its brackets
main() is a function in every c program, that is called by the operating system, in order to execute your c program.
every faction has its job. but there are generally two types
1. standard functions
2. user-defined functions
standard functions are those that are shipped along with the programming language ready for use e,g printf() scanf() main(), fflush() etc.
user defined functions are those ones you create and use on you own.
e.g you can create a function whose name is add() which when called adds two numbers and displays the result. e.g when you type add(10,20) you see 30 on the screen.
so how do you create them?
first grab these when creating your own.
1. every function has name and you are the one who chooses it. e,g add
2. all function names are followed by brackets ()
e.g add()
3 a function may or may not need parameters to perform its task. e.g (in ms excel when you type sum(50,10) the 10 and 50 are parameters to the function sum()
4. a function may or may not return a value when called( ask me incase you need more on this)
5. to use a function call it by its name. eg add(2,5), printf("are you with me?").
structure
------------------
data type funtionName(parameter list)
{
implementation
}
e.g
void add(int x, int y)
{
int z=x+y;
printf("%d",z);
}
that is a faction created it id called add() it accepts two integer (int x, int y), add them ---int z= x+y, and displays the result---printf("%d",z);
so when you add(2,3)
2 will go in x
3 will go int y above
try this complete program
#include%26lt;stdio.h%26gt;
#include%26lt;conio.h%26gt;
//creating the function
void add(int x, int y)
{
int z= x+y;
printf("%d",z);
}
void main()
{
add(30,10); //calling the above function
getch();
}
Reply:where u from star?.. Report It
Reply:good Report It
Reply:Hi friend,
It is not really any hell. It is a heaven. A function is any block of code that does "something". Ok, what's this something? Well, it may print your name, calculate average, calculate some formulae... What's the use, you may ask, saying I'll better do this in the program itself? This is the actual use: Suppose you need to print your name 100 times but not in a loop. (i.e., when the program starts you need to print, then after some x value is displayed you need to print.. like that...). So, you can't print in a loop. So, function helps you in this situation... You write a function PrintName() and call it whenever you need to print your name.. So, there's no need to type printf ("My name is ..."); 100 times. Instead you type PrintName (); 100 times.. This is a simple example.. A function does a lot more than this... Refer books on C for details...
Reply:You make a function when you need to use a specific code (instructions or commands) many times in your program. To understand it in a better way, imagine a human analogy about this: imagine if you want to tell somebody to sit down for five seconds then stand up for ten seconds then catch a ball before he throws it, and you want him to do that many times, would you repeat all instructions everytime, or you would prefer to "teach" him a gesture so he does all that if you clap for example!
Reply:a function is a group of statements that get called by name.
this function adds two numbers together...
int AddTwo(int a, int b)
{
return a+b;
}
functiona can already exist (in a library, for example) or you can make your own...
hibiscus flower
Is there a website or computer program that can help me calculate my calorie intakes?
I want to gain weight so i want to begin calculating my calorie intakes. Is there a program or a website that can help me calculate my calories, like add them up and convert food into calories. For example a chicken cutlet=??? calories. Thanks, and if you have any tips that would be good.
Is there a website or computer program that can help me calculate my calorie intakes?
I like fitday.com You get good features for free and of course have the option to upgrade for a nominal charge. I've always used the free version and it worked quite well. It breaks down chicken into fried, rotisserie, baked, etc., and does the same with most popular foods.
Reply:Yes..sparkpeople.com
it's free
I lost 25 lbs from July to Oct using that website..
it's really helpful and has sooooooooo many support tools
Reply:www.calorieking.com.au
Reply:this one rules!
http://www.my-calorie-counter.com/
Reply:Fitday is free and you can also track your exercise.
Reply:thecaloriecounter.com
Reply:I use www.sparkpeople.com It's free and it's LOADED with nutritional information. It's mainly for weight loss but it does track you daily/weekly calories. You can also ask experts questions in the message board section as well. I love this site because it is easy to use and extremely informational.
Reply:Theres a few different calculators here for different things this will help you out!
http://health.msn.com/weight-loss/measur...
Reply:yes there is!!! There are even games out there that u can do. (Like click what u had 4 Breakfast Lunch %26amp; dinner w/ a side %26amp; drink)
Reply:The Calorie Control Council
Reply:http://www.bitelog.com is the BEST.
Reply:I use sparkpeople.com, it lets you choose your foods and then it tells you your total calorie intake for the day, and it will even give you suggestions, it is free to register as well
Is there a website or computer program that can help me calculate my calorie intakes?
I like fitday.com You get good features for free and of course have the option to upgrade for a nominal charge. I've always used the free version and it worked quite well. It breaks down chicken into fried, rotisserie, baked, etc., and does the same with most popular foods.
Reply:Yes..sparkpeople.com
it's free
I lost 25 lbs from July to Oct using that website..
it's really helpful and has sooooooooo many support tools
Reply:www.calorieking.com.au
Reply:this one rules!
http://www.my-calorie-counter.com/
Reply:Fitday is free and you can also track your exercise.
Reply:thecaloriecounter.com
Reply:I use www.sparkpeople.com It's free and it's LOADED with nutritional information. It's mainly for weight loss but it does track you daily/weekly calories. You can also ask experts questions in the message board section as well. I love this site because it is easy to use and extremely informational.
Reply:Theres a few different calculators here for different things this will help you out!
http://health.msn.com/weight-loss/measur...
Reply:yes there is!!! There are even games out there that u can do. (Like click what u had 4 Breakfast Lunch %26amp; dinner w/ a side %26amp; drink)
Reply:The Calorie Control Council
Reply:http://www.bitelog.com is the BEST.
Reply:I use sparkpeople.com, it lets you choose your foods and then it tells you your total calorie intake for the day, and it will even give you suggestions, it is free to register as well
I have a Visual Basic complication for programming, i am beginner, please help?
I downloaded Microsoft Visual Basic 2005 for developers book, and I downloaded the program Visual basic 2005 Express Edition. Am i on right track for learning how to code in Visual Basic? What Visual Basic is this, i heard about vb 6 and vb.net , which is the one i downloaded? Thanks.
I have a Visual Basic complication for programming, i am beginner, please help?
the problem with downloading visual basic 2005 "for developers' is that it is a book written for people already experienced in programming. you should check to see if there are any introductory VB books. you might try "Visual basic : THE language" by microsoft press. Good luck, happy programming.
I have a Visual Basic complication for programming, i am beginner, please help?
the problem with downloading visual basic 2005 "for developers' is that it is a book written for people already experienced in programming. you should check to see if there are any introductory VB books. you might try "Visual basic : THE language" by microsoft press. Good luck, happy programming.
Is there any computer sites or programs that help relax your eyes?
I stare at a computer all day and my eyes get dry and I get headaches. Anything to help this?
Is there any computer sites or programs that help relax your eyes?
yes there are many....example the www.magictrick.com, stickpage, funnyvideos, those funny cideos can help u in helping also ur eyes but what is much better is that even for a minute u let ur eyes rest and closed it and relax and then u can go back to the PC
Is there any computer sites or programs that help relax your eyes?
yes there are many....example the www.magictrick.com, stickpage, funnyvideos, those funny cideos can help u in helping also ur eyes but what is much better is that even for a minute u let ur eyes rest and closed it and relax and then u can go back to the PC
How can I make a new programming language?
How should I go about learning to make my own programming language? What is a compiler?
How can I make a new programming language?
First, learn a few different languages yourself. I would start with basic or Visual Basic, then learn Java and Javascript.
Then learn C and C++. Then learn VB.NET, VC++.net, VC#.net, and a few scripting languages such as perl, php, shell scripts, SQL, ...
After you have a good idea of what programming languages are out there, and the features that you like and dislike about the different languages, you can then consider how you would design your own language.
You may find that you don't want to write your own language. You may just want to extend an existing one, or write classes, functions and libraries in one and use those functions like language extensions.
If you want to start from scratch, I would look up a book called "Threaded Interpreted Languages" written in the late 70s or early 80s. It describes writing very small language constructs and routines and using linked lists, arrays of linked lists, and arrays of subroutine addresses to build the language and eventually the programs.
Reply:It is not easy. You need first to learn how to use a parser engine, such as antlr (http://www.antlr.org/) or javacc. This parses the source code.
Then the parser converts the source tokens into an abstract tree representation of the syntax (AST).
You then can use the Visitor Pattern to loop over the items in this tree and do transformations to the code. You can check that the syntax is valid, for example, and set the correct types for variables.
Finally, you need to emit the binary or bytecode. For this you can use something like asm for java vm bytecode (http://asm.objectweb.org/) or Cecil for .NET's clr bytecode (http://www.mono-project.com/Cecil).
The easiest way to learn is to look at existing open source compilers such as:
http://groovy.codehaus.org/
http://boo.codehaus.org/
http://www.scala-lang.org/
and lists where compiler writers hang out like:
http://groups.google.com/group/jvm-langu...
Reply:Nothing should stop you from designing your own programming language.
Designing a language that you can parse requires a bit more skill. But writing parsers is not so difficult.
Is it an object oriented language? Early binding (C# or Java) or late binding (Smalltalk).
Code generation is a different matter. Here you have to think carefully about whether you want to generate machine (x86) instructions or you want to cross-compile into another language (C, Java). At this point, you will remove ambiguities from the language that you encounter.You must also decide on runtime libraries for things such as sin() or log(). Do you include string operations?
The compiler should also produce useful error messages so that the programmer will be able to correct his/her syntax errors. This can be surprisingly tricky to do well. Your run-time system should also be informative about what went wrong.
Because interpreters are easier to write than scanners/parsers/code generators, interpreted languages are popular (Perl, php, python). In fact, starting with an interpreter, perhaps adding functions is a good start.
Obviously there are lots of good compiler books around. The "dragon book" (Aho, Hopcroft, Ullmann) was one of the first ones that made compilers somewhat more accesible. But the books improved over the years.
Some serious computer scientists think that writing a compiler is a real challenge and that someone who is able to do that will benefit enourmously from it: learning about grammars, parse trees, understanding code generation and code optimization.Oh yes, and to answer your question: a compiler is a scanner (of the input program, recognizing language elements or "tokens"), a parser that groups language constructs, expressions, statements into units that can be dealt with, and the code generator.
Have fun.
flower shops
How can I make a new programming language?
First, learn a few different languages yourself. I would start with basic or Visual Basic, then learn Java and Javascript.
Then learn C and C++. Then learn VB.NET, VC++.net, VC#.net, and a few scripting languages such as perl, php, shell scripts, SQL, ...
After you have a good idea of what programming languages are out there, and the features that you like and dislike about the different languages, you can then consider how you would design your own language.
You may find that you don't want to write your own language. You may just want to extend an existing one, or write classes, functions and libraries in one and use those functions like language extensions.
If you want to start from scratch, I would look up a book called "Threaded Interpreted Languages" written in the late 70s or early 80s. It describes writing very small language constructs and routines and using linked lists, arrays of linked lists, and arrays of subroutine addresses to build the language and eventually the programs.
Reply:It is not easy. You need first to learn how to use a parser engine, such as antlr (http://www.antlr.org/) or javacc. This parses the source code.
Then the parser converts the source tokens into an abstract tree representation of the syntax (AST).
You then can use the Visitor Pattern to loop over the items in this tree and do transformations to the code. You can check that the syntax is valid, for example, and set the correct types for variables.
Finally, you need to emit the binary or bytecode. For this you can use something like asm for java vm bytecode (http://asm.objectweb.org/) or Cecil for .NET's clr bytecode (http://www.mono-project.com/Cecil).
The easiest way to learn is to look at existing open source compilers such as:
http://groovy.codehaus.org/
http://boo.codehaus.org/
http://www.scala-lang.org/
and lists where compiler writers hang out like:
http://groups.google.com/group/jvm-langu...
Reply:Nothing should stop you from designing your own programming language.
Designing a language that you can parse requires a bit more skill. But writing parsers is not so difficult.
Is it an object oriented language? Early binding (C# or Java) or late binding (Smalltalk).
Code generation is a different matter. Here you have to think carefully about whether you want to generate machine (x86) instructions or you want to cross-compile into another language (C, Java). At this point, you will remove ambiguities from the language that you encounter.You must also decide on runtime libraries for things such as sin() or log(). Do you include string operations?
The compiler should also produce useful error messages so that the programmer will be able to correct his/her syntax errors. This can be surprisingly tricky to do well. Your run-time system should also be informative about what went wrong.
Because interpreters are easier to write than scanners/parsers/code generators, interpreted languages are popular (Perl, php, python). In fact, starting with an interpreter, perhaps adding functions is a good start.
Obviously there are lots of good compiler books around. The "dragon book" (Aho, Hopcroft, Ullmann) was one of the first ones that made compilers somewhat more accesible. But the books improved over the years.
Some serious computer scientists think that writing a compiler is a real challenge and that someone who is able to do that will benefit enourmously from it: learning about grammars, parse trees, understanding code generation and code optimization.Oh yes, and to answer your question: a compiler is a scanner (of the input program, recognizing language elements or "tokens"), a parser that groups language constructs, expressions, statements into units that can be dealt with, and the code generator.
Have fun.
flower shops
Subscribe to:
Posts (Atom)