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.
Is an electrical engineering major like myself going to have a hard time gettin through my bachelors if i can't stand learning a programming language? I love studying the sciences but something about cse bores the crap out of me.
1. In what direction does a compiler read a program? Left to right, top to bottom?
2. What does it mean when a function is called by another. Like when main() is called by the operating system, what is going on within the computer? Does the OS send a code in binary or what?
3. When the...
1. Basically, I want to take a piece of hardware and do system programming by using C and C++ computer languages and I want to develop User Interface using C# in .Net framework.
So, what I intend to do is I want to use Visual Studio Integrated Development Environment 2010 and develop user...
I'm graduating within a phd in theoretical cosmology in several months and have found that it is very difficult to land a job in the industry without any demonstrated programming experience. Knowing that the academic road isn't for me practically, I've read books on C++ and coded a little, but...
Here is my story problem:
An electronics store stocks VCRs, stereo systems, and television sets. They have limited storage space and can stock a total of at most 210 of these three machines. They know from past experience that they should stock twice as many VCRs as stereo systems and at least...
I will be going into university this summer, and I intend to learn to code during the summer as it is important to physicist. I have virtually no programming experience. Which language is at the right level and can run complex physical simulations?
thanks
Hello, I am working on a basic cash register c program and I've run into a few errors/logical errors I don't know where to begin to fix.
I am limited to knowing only how to use, scant, printf, if/elseif/else, do/dowhile. The problem is if you compile it and test it, my validcode flag is not...
Hi all,
I want ask you about root programming, if I have the SMM data
How I can do the following:
1- Draw the charge, mass and energy distribution of the reaction products
2- Draw the multiplicity of intermediate mass fragments as function of impact parameter and excitation energy...
Author: Bjarne Stroustrup
Title: The C++ Programming Language
Amazon Link: https://www.amazon.com/dp/0201700735/?tag=pfamazon01-20
Prerequisities:
Contents:
Homework Statement
A factory has stocked a lot of pipes (sufficient). Each standard pipe is 5-meter long. But this kind of pipe cannot be used directly. We should cut them into three types: 140cm, 95cm and 65cm. In addition, the proportion of these three types of pipes must be 2:4:1. In...
I am trying to teach mips to my self and wrote a fairly simple program and it isn't working and found out that the strings I declared in .data are somehow affecting one of my pointers.
Here is the code:
#Write a program that allows the user to enter 5 ints and store these ints in an array...
I'm learning C on my own time. I'm going at a pretty fast pace, but I'm highlighting most of the important things or at least, what I think is important so I can refer back to it later. I struggle with most of the back of the chapter exercises mainly because I'm going through it really fast and...
Hi there,
As the title suggests, I am looking to start learning my first programming language. I am a mature student (24) who has recently returned to school to pursue physics. A friend of mine who does physics suggested that I learn Fortran (90/95) as my first language. I am looking online...
I have been solving some programming questions and all are some sort of puzzles?
What are they trying to teach us with puzzles? What skills are they trying to develop by solving puzzles?
Hi everyone~
I think that I have used polling here where I shouldn't have done. Does anyone have any ideas?
#include "p18f8722.h"
#include "timers.h"
void configure_PB2_interrupt (void);
void enable_global_interrupts(void);
unsigned char PB2_pressed (void);
void isr...
Under what circumstances would you use ADCON1=0x0F? All I know at the moment is for using the pushbuttons and using the switches and then I saw a piece of code using the pushbuttons without this line in it and I was wondering whether I was wrong all of this time. I have tried googling and...
// Program to categorize a single character that is entered at the terminal
#include <stdio.h>
int main (void)
{
char c;
printf ("Enter a single character:\n");
scanf ("%c", &c);
if ( (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') )
printf ("It's...
Hi all,
I want ask you about root programming , if I have A (mass number) for output and input data for experiment how I can comparison between A input and A output
see attachments
The table below records the profits that are made when one unit of material is sold by factories A,B, C to dealers L,M,N, P. The output of each factory and demand from each dealer are given in brackets
( A,B,C ) -> L(30) M(30) N(30) P(45)
A(100) -> 25 30 20 20
B(20) -> 30 25 15 10
C(15) -> 10 35...
Queston From Mathematical Programming:?
Find the minimum value of P(x,y,z)=Z+1/2(x^2+ y^2+1/10 z^2)
constrained by and where r is a positive constant.
Solve the problem when r=1, r=5.
Can you find the solution for general r?
(Note this is a mixed Kuhn-Tucker/ Lagrange problem. The inequality...
The universe keeps (emphatically) yowling at me to learn a progamming language. As part of my research in computational biophysics I'm attempting to learn python as rapidly as possible. But I'm trying to figure out which languages are most useful to learn, and which languages I should learn...
I want to start with assembly language programming after some years with C, cause I think it's a good way to learn how a computer actually works.
But how I can compile assembly code under Mac OS X?
I went to a library, and I had found out that many books are outdated, and no book covers...
Hi guys, I've started a programming internship about a month ago and i have some concerns and I'm hoping to hear some of your programming internship (or any internship for that matter) experiences.
My biggest concern is that i feel that i am doing too much rummaging. I am always searching on...
Fortran has been around since the 1950s and obviously there is a large amount of Fortran code lying around. However, I'm curious if C or another programming language will someday supplant Fortran. Perhaps scientists will gravitate towards high-level math packages like Matlab and Maple, and...
Ok, so ill start this off with this, I don't know a whole lot about math. I do however have a question that I am pretty sure someone on these forums can help me out with.
What I am looking for is an equation that I can later plug different numbers into.
Lets say you have $1,000,000...
Hello,
I was looking at an Introduction to C++ class I might be taking next semester
Description:
This course is an introduction to the basic principles of programming using
C++ as the development tool. Topics include the structure and design of algorithms, input/output,
branching...
Not sure what's going one, as soon as I remove the line with String[] arraySuit... all errors go away. With that statement in I get errors on several lines. Cannot figure out what's wrong.
/*
* Semester Project
* Blackjack Class
*/
package project;
import java.util.*;
/**
*...
I don't think I fully understand what "object oriented" actually means. Anyway, is it useful for a physics major hoping to get into grad. school to know object oriented programming? I have yet to take two compulsory computational physics courses where we will cover several numerical methods for...
Homework Statement
Create a program that computes for the value of sine function. Then compute for its
integral from 0 to pi with N intervals, where N=4,8,16,256 and 1024 and compare the
result for the trapezoid and simpson method.
Homework Equations
Trapezoid rule of Integration...
I am afraid this is going to be a very stupid question but nonetheless i am asking: -
I have been programming for 6 months now and i always program on a text editor. I learned that an OS is also a program which is first loaded onto the computer. Also the text editors are also computer...
Homework Statement
Write a MARIE program that repeatedly receives a sequence of decimal digits (one digit at a time) and counts the number of occurrences of ‘0’ and stores it in memory location Count until a non-digit is received. Assemble and run your program using the MARIE simulator...
Hi guys
I'm reading a book about linear programming and network flows. In chapter 2 when it talks about convex sets and their analysis it talks about extreme points and extreme directions of a convex set. I understand the definitions of extreme points and extreme directions, but I don't know...
Homework Statement
On a 8x8 chess board format an Integer program to optimize the amount of knights required such that every square is covered by at least one knight.
Homework Equations
I know of a similar problem where we use duality for the placing 5 queens such that the maximum...
I am doing a project for a a programming class where we create AI bots for the game Xpilot. Xpilot is a space physics game where you control a ship that attempt to shoot other ships. I am attempting to create an aiming function for the ship, but cannot figure out the physics of it.
The given...
Homework Statement
Alright, I actually solved this problem myself, it is just ugly and hilariously inelegant. I won't lose points since it is an introductory course, and it technically works, but I wondered what the "right way" to do this is.
Here is what I had to do. Create an array where...
Homework Statement
Alright, so for my engineering programming class I have an assignment where I have to create a program with an array, and then do things with the array, such as create a search function for it, and list how many numbers fall within a certain range, ect, ect.
So I...
Homework Statement
Not sure if this type of math goes in this section, but I have a quick question regarding a MIP problem. It's simple to grasp, but I'm not sure whether or not I am formulating this problem correctly.
A city needs to hire workers to clean the snow. The city is divided into j...
Southwestern Oil supplies two distributors in the Northwest from two outlets. S1 and S2. Distributor S1 needs at least 3000 barrels of oil, and D2 needs at least 5000 barrels. The two outlets can each furnish exactly 5000 barrels of oil. The cost per barrel to ship the oil are:S1: D1=$30...
I want to learn something new. Something that takes time to accomplish and that would 'enrich' me somehow. I thought about learning programming or learning playing the piano. I tried both at a very elementary level and find them both fascinating, but only would have the time (and energy!) for...
The Chemistry department at a local college decides to stock at least 900 small test tubes and 600 large test tubes. It wants to buy at least 2700 test tubes to take advantage of a special price. Since the small test tubes are broken twice as often as the large, the department will order at...
there are many prime number algorithm the simplest being dividing all the number less than the prime number. then comes division of number less than or equal half of the number to prime number with the prime number finally the division by all the smaller prime number than the given number...
Hi everyone,
It's that time again at my school-registration. I've been picking out my classes but I came across a rather annoying dilemma. My discrete math and data structures and program design classes conflict temporally. The discrete math class would count for my math minor, and the data...
Hello,
So basically I am worried that once I begin learning math subjects beyond algebra I will struggle. I can program in C and BASIC and was wondering if that programmer knowledge will help me with the abstract thinking and problem solving part of it.
Hello,
What programming languages are used in the majority of satellites? I was thinking it would be C,C++, and Ada because these languages are close to the processor. I'm sure ASM is also used too.
Am I correct? I don't think any satellite uses Java but I could be wrong.
I'm an IT consultant and would like to ask for opinions. Do you think it is smarter to program algorithms or buy them from a library? Especially for complicated algorithms involving higher math functions. Some libraries charge a flat rate with unlimited downloads, they check their algorithms...
Homework Statement
Ok, I'm learning C programming and I'm trying to create a dynamic 2D array. This is the code that seems to work in creating a dyamic array. I found it in a book.
//rows and cols are values entered by the user when the program runs.
int **(matA) =...
Homework Statement
Solve the following LP problem GRAPHICALLY
Minimise -x1+x2
subject to constraints x1+x2 >=1,
x1+2x2<=8,
x1-x2<=5,
x1>=0, x2>=0.
a)by sketching the feasible set
b)finding...
I'm updating some particle physics code from Pang's An Introduction to Computational Physics. It looks like he updated F77 code to F90, but kept a lot of iffy practices in like putting all of his functions, subroutines, and modules into one file without the use of a contains.
What I'm aiming...