What is Programming: Definition and 1000 Discussions
Computer programming is the process of designing and building an executable computer program to accomplish a specific computing result or to perform a specific task. Programming involves tasks such as: analysis, generating algorithms, profiling algorithms' accuracy and resource consumption, and the implementation of algorithms in a chosen programming language (commonly referred to as coding). The source code of a program is written in one or more languages that are intelligible to programmers, rather than machine code, which is directly executed by the central processing unit. The purpose of programming is to find a sequence of instructions that will automate the performance of a task (which can be as complex as an operating system) on a computer, often for solving a given problem. Proficient programming thus often requires expertise in several different subjects, including knowledge of the application domain, specialized algorithms, and formal logic.
Tasks accompanying and related to programming include: testing, debugging, source code maintenance, implementation of build systems, and management of derived artifacts, such as the machine code of computer programs. These might be considered part of the programming process, but often the term software development is used for this larger process with the term programming, implementation, or coding reserved for the actual writing of code. Software engineering combines engineering techniques with software development practices. Reverse engineering is a related process used by designers, analysts and programmers to understand and re-create/re-implement.
Just some basic questions i have about function prototypes (functions)
What's an example of a code which has no parameters? ie: double func(void)
what is the purpose if the thing doesn't take in parameters? also, what if there is keyboard input and screen input what does that mean in the...
Howdy Folks-
I've developed an online programming environment that physics enthusiasts would find useful. You can use it to write programs & publish them online. There's built-in graphics capabilities, if you want to do fancy visualization stuff.
http://sporkforge.com/sporkapps/build.php
Homework Statement
I am writing a program to loop (rotate) two lit LEDs through eight LEDs on my board.
For Example:
11000000 01100000 00110000 00011000 00001100 00000110 00000011
Where the ones are lit LEDs and the zeros are non-lit LEDs.
It is supposed to loop forever.
Homework Equations...
I am currently in the process of writing a program in VBA that will numerically "solve" a given n-body gravitational problem. I'm doing this pretty much just for fun and am by no means a programmer (had a 1 semester course in c++). The question I have is something that seems to keep coming into...
I was reading this story on CNN about how ESPN is starting to develop and implement 3D programming.
http://www.cnn.com/2010/TECH/01/05/espn.3d/index.html
It seems like an obvious step with the 3D movies out. However, besides the fact you'll need to buy a new TV, you will also need those 3D...
Is C++ programming used in electrical engineering work, it really doesn't seem as though it would be,but what could it be useful for, some kind of possible scenario ? (E.E. encorporates the use of electricity to make things happen mainly, whereas C++ has to do with computer design)
Guide me !
hi frnds,
i am doing my computer science engineering in India and i am in 1st year.I am interested to learn some languages as i am interested in programming.Can u people please guide me .:confused:
Some people don't mind sitting down on a desk with a cup of coffee and
solve some problems on computer, (mostly coding for whatever it be).
im thinking of persuing my career as a programmer and i think it suits my personality and my
strength.
Im looking for anyone whos currently working...
Homework Statement
I can do most the question, but just get stuck on the final question. Here is the whole question
1. Gordon Ltd makes 2 products, Tennis racquets and badminton racquets, each using the same materials and the same skilled labour.
The costs of the products per unit...
I have absolutely no ides where to go from here, I am horrible at this, If you could help me I would appreciate it, I want help doing it, not just answers.
Homework Statement
You are the owner of a manufacturing plant. We've been hired by Apple to produce iPhone and iPods. Apples pays us $50...
I need help in programming a pic on a FR28 I/O board that i bought off of ebay. no software came with it, only pdf's. Essentially i want to hook up sensors (Thermocouple, ph, photon) and have the pic store the data (using flash mem). the data stored will later be uploaded to a computer.
the...
Well I am studying electric engineering and computer engineering major... i really want to get into microchips/microprocessor programing.. i don't know any programming language at this moment should i learn C? or i should start with another language like phyton?
I'm currently taking my first programming course (1st year student - using FORTRAN 77) and the way the course is taught is atrocious. We listen to the prof give his lecture (3/4 of which is him going off on tangents). We spend no time in a computer lab. The only "practice" we get is 1 lab per...
Hi all,
I am new to C and I need some help solving an issue with network programming.
So in general, i have two programs running: Program A and Program B.
Description of A:
Send out packet with SN = i
(SN is the label for the packet. i.e first pkt SN=1, 2nd pkt SN=2 etc)
Set...
Homework Statement
Write a C program to use a function to add two 16bit and two 32bit integers together and return a long integer result.
Call the function twice with different parameters and print the results.
Declare your input variables to one of the function calls as local variables (on...
What are the functions of the following C libraries?
nr.h
nrutil.h
What I understood is that these are used when u are calling functions like 'qromb or polint or trapzd' for integration. Acutally when I compile the program I get these errors.
nr.h: No such file or directory
nrutil.h: No...
Hi
I have a function that relies on n and t. I am presently drawing it with "ParametricPlot3D." I am drawing it for all t in [0,1]. Now I can either draw this for all values of n in a defined interval, say [a,b], just as I define it to draw all t. Or I can draw one value of n by using the...
I used to think that computer science was all coding and making software. That displeased me greatly since I'm not the greatest at coding. Certainly not one of those people who started at 10 or even 16. It's not that I'm fundamentally bad at it, but I just tend to dislike it. Yet I am drawn to...
I'm not a complete newbie to Python but I'm not a pro either (far from it). I played with Python on surface, like doing simple computation in python shell or creating a very simple program (such as finding roots of quadratic equations).
Anyway, i would like to explore more into this subject...
I am looking to start learning programming more or less on my own. I can make some advanced programs on the TI-83+ calculator and have been for the past year. I learned just from reading the manual and messing with the different logic operators and commands. What are some good beginner...
I'm going for a major in mechanical engineering and am planning on getting a PhD. I was planning on having a minor in Computer Science just to help with research and general programming.
With all of the programming languages out there, it gets kind of overwhelming when trying to narrow it...
I will be doing my finalyear project next year. And I thought of building a robotic butler, i.e: a robot that can be summoned by the user with a click on the remote control to bring the food/drinks that are stored in it to the user.
I am hoping that the robot could trace and go to the signal...
Hello. I'm thinking about building a 2D pathfinding robot. I was just wondering if anyone wanted to suggest a programming language. I have experience in a few, but I also like trying new ones so I'm open to anything. Any suggestions? Thanks.
Hi everyone.
I'm supposed to do a small research project for one of my C++ classes. The only requirement is that it can be rendered in 3D (opengl).
I wanted to do something AI related, like pathfinding or something.
I thought of making a 3D pacman with each ghost following a different...
I am taking a very basic programming class, and all we work with is fliowcharts and pseudocode. We use the following book: Programming Logic and Design, 5th edition, comprehensive by Joyce Farrell. We use VISIO for the flowcharts, and Word for the pseudocode. And I need help with the following...
Hello everyone,
New to the forums and I really need some help. I'm trying to create a little man program that would accept any three user inputs and return them in order from largest to smallest. I really have no clue where to start since I'm completely new to programming. Please help..
Homework Statement
Well the program has several functions but I just really need help with reading a text file and splitting the data in the file into a one-dimensional array and a two-dimensional array
The text file is like this...
21
1110 1.5 5.4 6.0 9.8. 8.5 8.3 5.6...
I'm making a program for one of my programming classes and just needed some help!
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int number;
float feet;
float metres;
float conv1;
float conv2;
cout << "Do you wish to convert 1...
Hello All,
I need to utilize a Runge Kutta second order approach to solve two coupled first order DE's simultaneously given some initial conditions and a conservation relationship.
The DE's are as follows:
\frac{dp}{dt} = aq - bp
\frac{dq}{dt} = -aq + bp
Where a and b are...
When I first started programming, I used a text editor & the command line to compile & run my programs. However, then I switched to the Eclipse IDE, and I've been using that ever since (I also used Visual Studio when I took a C++ class). As you can see, my exposure to different development...
Homework Statement
A feasible dictionary whose last row reads z = z* + ∑ cjxjdescribes an optimal solution if and only if cj ≤ 0 for all j.
Prove or disprove.
Homework Equations
The Attempt at a Solution
It is clear that if all c's are ≤ 0, then the solution is optimal since increasing any of...
hi everyone,
one of my homework questions asks me to write a computer program to evaluate the Planck distribution at any temperature and wavelength and add it to a routine for evaluating integrals for the energy density of the radiation between two wavelengths.
I have never used any...
http://img16.imageshack.us/img16/3078/15688239.gif
So here's my script:
x=[a, b, c, d];
w=[0.65 0.2 0.05 0.1]';
final=x*w;
disp(final);
if 65>final>=50
disp('Grade is: C')
elseif 80>final>=65
disp('Grade is: B')
elseif final>=80
disp('Grade is: A')
If final>=50...
hi everyone,
one of my homework questions asks me to write a computer program to evaluate the Planck distribution at any temperature and wavelength and add it to a routine for evaluating integrals for the energy density of the radiation between two wavelengths.
I have never used any programming...
TL;dr: "I am not sure how to calculate a smooth transition of thrust between one vector and another."
Hi, this looked like the right place to post this being "The mathematics of change and motion". I am programming a simple game where an enemy chases after the player in an open space (no...
Hello There,
I'm a senior at the University of Illinois Chicago, studying mathematics and chemistry; I'm at the point where I need to become familiar with a computer programming language that will not only be useful down the road but help with the admission process into graduate school...
Homework Statement
Sketch the area that fulfills :
x + y ≥ 1
3y ≥ 2x - 1
2y ≤ 3x
and find the range of x and y that are restricted.
Find the maximum value of y – 2x that satisfies the area above and find also the value of xHomework Equations
Line equationThe Attempt at a Solution
I've drawn...
I am trying to determine whether or not any part of a line segment is located within a square box.
I have the coordinates of the line segment end points and the corners of the square box.
This problem is easy for the case where one or both end points are located in the box, but I don't know...
I've got a small amount of programming under my belt right now. I learned some java in my AP Comp Sci AB class and got a 4 on the AP. I want to work on my my programming with the specific intention of getting research experience in physics.
It's a little hard for me to work on solely...
Hello everyone.
I want to start learning some sort of computer programming.
...Where do I start?...
Yes. That is all I have. I don't know what kind, cause I don't know what kind does what.
I don't even know what kinds there are, or if there are kinds.
I am blissfully ignorant...
My situation is that I taught myself Calculus 1, 2 and some 3 over the last year, and the better part of Freshman physics for majors, mechanics and EM. I bought 4 texts to learn from: Halliday, Tipler, Giancoli, and Young and Freedman. And I just started learning Diff. Eq. & Linear Algebra...
Hey guys I'm building a robot and just finished all the circuit work, and am now working on programming it. I got all the basic movement functions down, but am having trouble with a few things. How do you make it turn..fast? i can make it turn but its horrible. Also i have two light sensors put...
I'm a high school student currently learning programming. I guess my question would be what kind of side jobs are there for a high school kid that involves programming??
Hi there every one
I need some help with the following function:
function cc = find_cc(n)
global nu
cc(1)=(-8.*i.*nu1-3.*n.^2-5+4.*i.*nu1.*n-4.*n)./n./(-n-2+4.*i.*nu1);
cc(2)=(3.*n.^2+2.*n+4)./n./(-n-2+4.*i.*nu1);
cc(3)=-(n-1).*(n+1)./n./(-n-2+4.*i.*nu1);
end
where
\nu is...
Hi everyone, been reading stuff here for a while but first time poster:)
I am first year at university going for a Physics/Electrical Engineering. Looking at my options this year and I came across this paper...
i work in 3d graphic actually , and new to max script anyway there such things that i faced when studying like delta, sin, atan, atan2, ..... etc and there is much more and i know nothing about this also what its name or kind of math to begin to study.
where can i find such a resources to learn...
the foolowing program is to read inputed data and display them all at once but when i run it it asks for the first information and then runs the total program without asking for the input of other information.after that it doesn't respond and closes immediatelly.
can someone help me and tells...