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.
Latest buzzwords include "functional programming" and "stateless." What's funny is these are not new, just a reversion from OOP back to procedural programming the way you write code in C. Create objects that are just value bags with no behavior and write functions that modify the values.
Or...
Classical physics is difficult because it is based on differential equations, and the differential equations of interest are usually unsolvable. The student must invest a lot of time in learning difficult math, and still can only analyze very simple systems.
This difficulty arises in the first...
Hi! Will be taking BS Math in 2019, and as early as now I would like to practice my necessary skills so that I would not end up left behind.
I'm still currently in 12th grade under a specialized STEM program.
Hi all;
I've already posted to P_Anywhere's site but... I'm trying to run a script that needs a data file piped to it. Now P_ Anywhere gives you a resident directory and mine contains the program and the data file. Sooo...
bonds.py ethane.xyz maybe? Nah. Doesn't like that. But! I did get it to...
I don't usually need help in locating software, but I'm having a heck of a time tracking down a good open-source bit of software which solves integer programming problems using arbitrary precision! If I don't find one soon, I'll need to write it myself. Which I don't mind, but it's silly to...
Hi,
I need ideas for developing a portfolio project to land a computer programming/front end developer position. So far I've developed a simple tic-tac-toe web app game. Plus I have my portfolio website at the ready to be uploaded. Any ideas for portfolio projects?
Thanks!
Hi,
I would like to implement voltage regulator based on microcontroller + triac.
I am able to calculate source RMS voltage by sampling signal using ADC, but don't know how to calculate triac angle to set desired RMS voltage.
For example i have 250v source RMS voltage and i need to calculate...
My lecture notes and recommended textbook Hillier and Liberman are not enough for me.
My methodology and formulation of problems still seems like too much guess-work.
Can anyone recommend any good resources, lecture notes or textbooks, for stochastic DP?
Many thanks
To whom it may concern,
I am having issues with a given assignment in my quantum mechanics class. The instructions listed below are all I have to go on since the prof. is not available for discussion and I have searched through at least 15 articles regarding plane waves and a dozen textbooks...
Hello!
I am going to make a project for my programming class.
So I am just looking for some ideas about what can I make my project about. I mean, I try to make something that would have an special significance for PHYSICS or even MATH (Modeling or solving) , and something that would be a...
I'm reading about the Simplex method to solve a Linear Program. If a program is rejected as being infeasible, is there a method to identify which equations are causing it to be infeasible and a technique for reducing the program in an optimal way? (I'm not sure what 'optimal' is exactly, but my...
Hi, I was trying to write a code in fortran that takes an array 'fx' of length 'm', and integrates it between a and b using the successive trapezoidal rule. Off course, the length of the array, m, has to be a power of 2, and the underlying grid uniform. So, I'm not sure on how to call the vector...
Hi.
I know few rules that let's me write great code:
1.
"don't pollute the global namespace" when I sit down to write JavaScript code.
2.
SOLID
3.
KISS
4.
Liskov's Open-Closed principle
Can someone help me complete the list of such rules?
Thanks!
Have a great day!
I'm organizing my electives for Fall 2019, and I want to take Parallel Programming. I will have finished my math minor this Summer Semester, and will have completed CS Foundations I/II as well as Data Strcutures and Algorithms all taught in C++. I didn't know any programming prior to starting my...
<Moderator's note: Continued from a technical forum and thus no template. Re-opening has been approved by moderator.>
Hi, my question is related to simplex algorithm anticycling rule called Bland's rule. While I was working with the proof in the link...
Hello!
I'm trying to write a 2D program that uses simple physics. I was wondering what would be the best 2D physics engine to use in my case, and if it even matter what engine I choose. I also want my simulation to run in real time, so at least 30 fps on a decent home computer. I prefer a fast...
Homework Statement
I'm attempting to write a FORTRAN program that calcuates the magnetic field, B, at any point outside of a bar magnet. I will be using a simple first order euler scheme for numerical surface integration. Homework Equations
Here is the exact method I will be using...
If you're looking to get a serious but entertaining introduction to computer programming, I wholeheartedly recommend Anne, Andrew, and Genevieve's course, "Programming Fundamentals".
https://www.coursera.org/learn/programming-fundamentals
I know one of the instructors from my days at Penn, and...
hi, my question is related to a proof involves bland rule for avoiding the degeneracy. Initially I emphasized some sentences which have importance in attachment/file with yellow color.
At the beginning, it says xs is entering variable and when it enters objective value does not change( because...
Hello,, I want to know how to buy the Fortran software,? I use Fortran programming to simulate some my work for my study. Do you have any suggestion about that??
Aloha guys,
I am a recently graduated physics major going on my next adventure in education. I am trying to teach my self programming through the Micro Chip platform, lucky I have a large learning curve working for my family business.
I was wondering if anyone had insight or any suggestions on...
Please bear with me...
In a curriculum in mechanical engineering, there is a set of standard topics: statics, dynamics, vibrations, fluid mechanics, thermondynamics, etc.
What is Artificial Intelligence, and what does it entail?
(at the moment, it seems like a buzz phrase that does not...
Good day to you all,
I'm starting to get interested in making a project which involves using PICs but since I am a newbie at this I want to start by making a PIC blink LEDs like in christmas lights. But upon looking it up on the net I was bombarded with multiple options for "basic PIC...
Hello all,
I am newbie here. I am interested to learn about programming like- HTML, CSS, Java, mySQL and many more. So looking for a reliable place to learn. Is there any reliable website where I can try for?
Please let me know. Thanks!
Hello, I am assigned to write a code using bisection method (aka binary search method)
The equation is 10sin(x) - x^3 - N where N = 1,2,3,4,5,6,7
My code is
from math import sin
def neg(a, b):
return a*b> 0
def bisectx(funcx, lowx, highx,n):
assert not neg(funcx(lowx,n), funcx(highx,n))...
Homework Statement
Write a BinaryTree Class using these specifications:
A Class Node represents a standard node of the tree with fields and a constructor like given below:
int start, end;
const Complex* value; //I will provide more information about Complex later because that was the...
Homework Statement
Formulate as a mixed integer programming problem but do not solve. Maximize ##x_1 + x_2## subject to ##2x_1 + 3x_2 \le 12## or {##3x_1 + 4x_2 \le 24## and ##-x_1 + x_2 \ge 1##} ##x_1, x_2 \ge 0##
Homework EquationsThe Attempt at a Solution
if the first constraint is met, we...
Which programming language would you like being taught if you were a very young person (5 to 7 years old), as a first programming language?
Worded differently, which programming language would you like to teach to your son/daughter if he/she was that age?
I've heard about Scratch and Logo. Then...
Homework Statement
I am quite new to C++. I have completed my C course and am now taking a C++ course at my college. The first problem i encountered is with classes and custom made constructors. In the first part of the problem I am supposed to create a class with a field which is a dynamic...
I was given the problem attached in the photo below and the first question is to define the decision variables and formulate the problem as a linear program. There are no solutions online, so it would be helpful if someone on the mighty PF could check them to see if they are correct, thanks...
Hi,
I would like to provide the PLC control for a scenario where the temperature in a machine, heated by the two electric heaters, is controlled with use of 1 TCK and 2 s/s relays. Please see draft “PLC4” sent attach. The TCK is fixed to the machine and is not in a physical contact with the...
I know there can be an infinite number of solutions when the objective function with 2 variables has an equal slope as a constraint's slope (assuming the constraint is affecting the feasible region and not a redundant constraint).
How can you know there are multiple optimal solutions for...
I'm working on an old test fixture that uses JTAG to program a microcontroller (uC) and its Flash memory chip on production PC Board Assemblies. The programming works fine with an old version of the PCBAs, but for some reason it is failing with a new version of the PCBA that should have had no...
This is what I did but I'm getting an infinite loop of the reversed string whenever I run the program. I don't know why
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> /* for fork() and getpid() */
#include <sys/types.h>
#include <iostream>
using namespace std...
Hello all,
I have recently graduated with a BSc in physics and have been accepted into the MSc program for Applied Physics. However, due to the job outlook for the position I actually want to do I am deeply interested in pursuing my second interest, which is, AI.
Question: My main question is...
Salami Allocator
In this warm-up submission you will write a totally trivial allocator:
The function init allocator() reserves a given portion of memory for the allocator. Every call to my_malloc() cuts off the requested amount of memory from the remainder of the reserved memory. The call to...
I am wondering what programming language, whether it is C, C++, or other, would be best for programming micro controllers. What are the benefits of either one. I understand C is easier to learn but does that actually make it better? I need to use these micro controllers for sensor applications...
I am currently an undergraduate researching Supernovae. We are doing some luminosity calculations using CIAO and HEASOFT which take anywhere between 7 to 13 hours for each remnant. To make the process quicker, I wrote a script that reduces that time to about 40 minutes for each remnant. One of...
I'm at the third year of my MechE course, and in those three years I've developed a keen interest in software/coding. I still like my degree, things like fluid dynamics/aerodynamics fascinate me, but more and more I see myself working with software and coding. One of the things that I like about...
Probably everyone is aware of the new cpu's by intel and amd, which will have many cores. The threadripper will be launched on August 10, and it will have up to 16 cores. I am making plans to build a workstation, the idea is to code in parallel, so the more cores is obviously the better. Also, I...
I am about to begin an MSc in Nuclear Engineering. I am competent in MatLab language but wish to practice/learn another in the time before my course starts. Would I be well served in continuing to practice MatLab or to learn another from scratch (C/Java/Labview)? Are there any particular areas...
Is there a computer friendly list with the known bodies in the Solar System astroid belt, that contains their physical properties, position and velocities?
Hi, as a side project I am making a solar system simulator in Python, but I am getting extreme inaccuracies.
As the image shows - I am comparing the simulation to data obtained from NASA's Horizon.
I have written a a basic Verlet integrator in the Python class posten below:
import numpy as...
Hello guys, I programmed a physics simulation where a particle with some initial conditions bounces off the walls of a 2d container. The simulation also includes gravity in the y-coordinates. The aim of the project is to produce a visual animation and further on include more particles and...
is it PHP-MySQL?
In websites accounts of users tend to be stored in servers, and on these servers they store the data in some syntax and use PHP, RUBY or something else to add/change the information.
Is it the same in bank accounts? In what format is banking information stored?
I will be starting my undergraduate career this coming fall and was wondering how I should prepare for the programming that I will need for my studies. My first computational physics course will be in my second year, therefor I have quite a bit of time to practice my coding.
I have taken two...
Homework Statement
Analyze the code below and figure out what it outputs if it's started with this command:
The correct solution is given so i can better understand the parts of the problem.
Homework Equations
3. The Attempt at a Solution [/B]
I had typed it out and tried to get the same...