Program Definition and 1000 Threads

A computer program is a collection of instructions that can be executed by a computer to perform a specific task.
A computer program is usually written by a computer programmer in a programming language. From the program in its human-readable form of source code, a compiler or assembler can derive machine code—a form consisting of instructions that the computer can directly execute. Alternatively, a computer program may be executed with the aid of an interpreter.
A collection of computer programs, libraries, and related data are referred to as software. Computer programs may be categorized along functional lines, such as application software and system software. The underlying method used for some calculation or manipulation is known as an algorithm.

View More On Wikipedia.org
  1. Eclair_de_XII

    Python I writing a program telling time on Python

    Homework Statement "Using the time module, write a program that tells one the current time in hours, minutes, and seconds, and time since January the first of 1970." Homework Equations import time % = mod division int = returns integer value of number The Attempt at a Solution import time...
  2. hnnhcmmngs

    Executing code, which statements are true?

    Homework Statement Question 1: def convert(degrees): degrees += 273.15 return degrees degrees = 10 print(convert(degrees)) Which of these statements are true after the code executes? (There may be more than 1 correct answer) a) The value of degrees in the main namespace is 283.15...
  3. Ottodomus

    Fortran Need to do a multitask program in Fortran 95

    Hi everyone, I am new programming in Fortran and Inhave done about three or four programs that solves different problems in trigonometry, one is the basic one it gives you hypotenuse upon two sides, the other finds the theta angle by giving hypotenuse and opposite side, other find hypotenuse by...
  4. E

    B Solving the Kerr metric in the program Maxima

    Does anyone know how to get Maxima to solve the Kerr metric? I enter the terms for that metric that I found on Wikipedia. It tries to print out the Einstein tensor (covariant, leinstein(true)) and the expressions are so long that it literally locks up my computer. And isn’t the Kerr metric a...
  5. C

    Admissions Possible to get into a Masters or PhD program with some C's?

    I am currently a double major pursuing a double major in BS mechanical engineering and a BS in applied physics, also two certificates in coding and lab instrumentation. I work as an engineering intern while going to school full time and have had research experience with a professor working on a...
  6. M

    What should one look for in an undergrad math program?

    Hi, A friend of mine wishes to pursue an undergrad in mathematics. He is looking at undergrad math programs offered by local universities. He is not sure what career he wants to pursue ultimately but want to have a solid foundation in mathematics. What are some important factors one should...
  7. D

    Python Python program to calculate Kirkwood−Buff Integrals

    I want to write a python program to calculate the Kirkwood−Buff Integrals. The equation is as: G=4π∫0 ∞ r 2 [g(r)-1] dr I have the g(r) values. Any suggestions are highly appreciated. Thank you.
  8. betamu

    Schools Virginia Tech BSc Physics Program Accreditation?

    Hello, maybe someone is knowledgeable on this sort of thing. I've recently enrolled into a Bachelor of Science in Physics program at Virginia Tech. Someone told me today that they aren't accredited for a Physics Bachelors and now I'm freaking out about whether I should attend or not. I want to...
  9. M

    Is the posted program a "Physics of Material Science" program?

    Is the posted program a program of Physics of Material Science ? Can anyone help>> https://www.uni-leipzig.de/fileadmin/user_upload/Physics_IPSP_BSc_27.04.17.pdf > https://www.uni-leipzig.de/fileadmin/user_upload/Physics_IPSP_MSc_28.04.17.pdf
  10. davidfur

    Fortran Interface between a Fortran77 program and a Fortran90 program

    Hi all, I'm new to Fortran programming, so I might probably ask some really trivial questions - please forgive me. I have two source codes of big programs. One is coded in Fortran77 and the other one in Fortran90. Now, I need to build an interface so that the Fortran90 program can call some...
  11. L

    Programs Chemistry-Based Research Program or more Math/CS Courses?

    To sum up the current biggest stress of my life into a question: do you recommend that I stay in a biology/chemistry-based research program or pursue proof-based math courses? I am a freshman physics major at a good research university. I was invited into a very difficult program for "future...
  12. J

    Accelerator radiation protection program

    Hi everyone, I have this question attached from the ABHP exam in part B you are asked to list and justify 4 major elements for accelerator radiation protection program for this specific facility, I have written some answers which are : 1) ALARA which includes : time distance shielding source...
  13. G

    Fortran Best 3D Animation Software for Numerical Simulation Data

    hello everyone, I`m trying to make 3d animation from numerical simulation data. Can someone recommend good software for me Thanks in advance
  14. D

    Trouble with an array program in C

    Homework Statement Write a function that finds if three arrays of integers are identical. The arrays are identical when they have the same values at the same indices. Below are two samples outputs. Homework Equations N/A The Attempt at a Solution I decided to compare the arrays using a...
  15. L

    Maximizing Localization in Adding Multiple Plane Waves

    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...
  16. A

    Schools Choosing the Right Graduate Program: Factors to Consider Beyond Rankings

    I’m currently trying to decide which of the following schools to attend: Ohio state University Indiana University Florida State University I would like to go into nuclear or high energy physics. I’ve contacted the schools and I had great interviews with the professors and I enjoyed the...
  17. Arman777

    Program that calculates the list of x and f(x) for a given function

    Is there an online program that for a given function value and range, it lists the f(x) and x?
  18. R

    Schools Which physics undergrad program?

    Hi, My son has to choose among these universities for an undergrad major in physics: Stony Brook, Colorado-Boulder, Georgia Tech, Santa-Barbara, Wisconsin-Madison, Boston University and Case Western. Which one offers the best undergrad program in physics if he wants to go for PhD in Theoretical...
  19. Arman777

    Looping Program Problem -- create and fill in two vector arrays....

    Homework Statement Take as input from the user an integer N. We don't want the user to enter very large integers, so exit with an error message if N>20. You may assume that N is an integer (and not a real number) and also that it is positive. Make two vectors v1 and v2 using v1.append() and...
  20. X

    Schools Exploring Physics: A High School Junior's Career Path

    Hello, I am a high school junior looking at going into a career in physics. Over the past few years, I have found that I enjoy physics, specifically in "understanding" the atom, and the mind boggling ideas of what happens at that level. I think I want to study particle physics or quantum...
  21. T

    Help with an Apollo space program flight simulation guide

    Hi all, This is my first time posting on this forum. I'm not sure if this is the right place to ask this question so apologies in advance. Perhaps someone could recommend a more appropriate forum for me to post this on. I'm working on creating documentation for a simulation. It's an Apollo...
  22. C

    MATLAB How can I create a matrix with two columns in Matlab using a modular operation?

    Hello everyone. I am trying to create a matrix in Matlab with two columns which should look like as follow: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9... 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1... Has anyone programed something like this before?
  23. J

    Testing my Discrete Fourier Transform program

    Homework Statement I've written a program that calculates the discrete Fourier transform of a set of data in FORTRAN 90. To test it, I need to "generate a perfect sine wave of given period, calculate the DFT and write both data and DFT out to file. Plot the result- does it look like what you...
  24. grandpa2390

    MATLAB What is each step of this Matlab program doing?

    So here is the program. I've spent a few hour trying to follow it. I numbered each line and after the code will try to explain what I think is going on in each line. I'm completely new to Matlab, and programming is a great weakness to me. I need help. 01. nuclei=zeros(1,100); 02. t=nuclei...
  25. N

    Schools Canadian universities for physics undergrad program

    Hello Physics Forum members! I have come to this section of the forum to ask a question that I am sure has been asked many time before on this forum; which Canadian university/universities offer the best physics undergrad program/s. I am in high school and I wish to enter become a physicist...
  26. grandpa2390

    How do I translate this program to matlab?

    Homework Statement Homework EquationsThe Attempt at a Solution I'm taking Computational Physics. And I am trying to learn how to program in matlab. But I don't understand the author's code and what it is in MATLAB code. Can someone help me?
  27. L

    Programs 2018 REU and Summer Program Acceptance Thread

    It is that time of year again. Here's a space to check on acceptances for REU programs or other summer jobs. SULI and SURF come to mind. I imagine most of them will start coming by the end of the month. What are you waiting on? What are you excited for? What do you wish you had applied for? What...
  28. yeshuamo

    Admissions What is an informal interview? (for a graduate program in the U.K.)

    I have received an invitation to interview for a graduate program in the U.K. The email came from a professor who previously expressed interest in working with me and helped me write a fellowship application. Now, my question is: what makes a graduate interview in physics "informal"? Mind you...
  29. S

    Programs Finish the ME program (BS) or switch to a BA in mathematics?

    So you I've screwed up in Mechanical engineering courses due to a combination of personal reasons and some tough professors. I have discovered that it is possible to finish a BA in mathematics in the same time frame as the Mechanical engineering BS degree, only one semester + the summer. I've...
  30. Jay123

    Working on a simple(ish) projectile motion problem for a gaming program

    Hello ladies and gentlemen I am working on a Unity 3d game project and I am in need of some physics guidance. You probably know Unity3d has a built in physics engine, and if you don't you do now. :) I am determined to figure this out more or less on my own but I need some assistance with the...
  31. Biscuit

    Programs Program Guidance for a Marine Biologist

    Hello, I am looking to change my major to become a marine biologist. As I view the different programs that are out there I have come into a couple of conflicts I was hoping you guys could help me with. The first being I have the option to either major in biology and get a masters in marine...
  32. M

    How to understand which program is blocking websites?

    I have two different security tool: One is panda for antivirus and the other is Zonealarm as firewall. Now even my yahoo searches are being blocked by now. How can I understand which one or what program is blocking them? I checked the settings of Panda but I didn't see such configurations...
  33. R

    Admissions Applying for Ph.D. program without having taken the GRE

    Hi all. I'm currently working on both an M.S. and B.S. in physics and hope to finish with both during the upcoming summer. I wanted to apply to a Ph.D. program for next fall at a different university, partly because the research here isn't quite what I'm interested in, which is computational...
  34. ilcyclista

    B.S.M.E. needing a second opinion on M.S. program

    Hello, I graduated with a B.S.M.E and minor in Applied math in 2014. I have a few months of experience with an engineering consultant firm, but quit because of a series of bad experiences and extreme negativity from the boss/owner. Ever since, I've submitted 200+ job applications but have had...
  35. W

    Programs Choosing an IE program-- balancing business and engineering

    I'm a HS senior and I'd like to be an industrial engineer. When I Iook at the courses I'd be taking, at some schools it's far more technical and in line with a typical engineering degree, while other programs are much more business-focused. Ideally I'd like to take a lot of math but not a ton...
  36. S

    I don't understand kind of program the instructions want

    Homework Statement The General Automobile Registration Office (GARO) keeps records of car registrations. It operates on multiple lists of n car registrations, where each registered car is identified by its unique license plate that consists of alphanumeric characters (e.g. R4G5OO54TE). The...
  37. Mark44

    Why does this MIPS program do what it does?

    A recent thread asking what a Python program does induced me to post this MIPS assembly program, and ask why we get the incorrect addition in the second line of output. Here's the output from this code: 5 + 2 = 7 5 + 2 = 3 And here's the code that produces that output. Edit: The first line of...
  38. Demystifier

    Python What does this Python program do?

    Can someone tell me what does this Python program do? :wink: s = 's = %r\nprint(s%%s)' print(s%s) Mentor: add html code tags
  39. N

    Physics Of A Loop Using the Program "Tracker"

    Hi guys, currently trying to figure out part of my lab for Physics I. We used the program Tracker to gather information on a metal ball rolling down a metal track and through a loop. The origin was set at the bottom perpendicular to the top of the angled track where x and y = 0. Here is the data...
  40. astroman707

    Schools Is New College of Florida good for physics?

    I'm wanted to go into theoretical astrophysics/cosmology in grad school, and I'm look for schools that will look very good to graduate admissions, and that will give me a great preparation. New College seems to have exceptional results in sending students to top grad schools according to their...
  41. T

    Other Should I continue on with my school's Honors Program?

    I am a first year undergraduate student at a state school, and I am currently enrolled in my university's honors college. Completing the honors college would require just about a gen ed per semester, while I am almost complete with my gen eds at the moment. I am fairly certain that I want to go...
  42. Z

    Reformulation of quadratic program as SDP program

    Homework Statement Reformulate the noisy linear regression ## y = X \beta + \epsilon## where ## \epsilon ## is the error as a quadratic program, a second order cone program, and a semidefinite program that solves for ## \beta ##. The purpose of this is to use a solver to study the qualitative...
  43. toforfiltum

    Program to display letter combinations on phone keypad

    Homework Statement On a phone keypad, many of the numbers have letters associated with them. For instance, the letters A, B, and C are associated with the number 2. Write a program that accepts a number as input and prints all of the possible letter combinations associated with that number. For...
  44. E

    Comp Sci How Can C++ Function Overloading Simplify Gravity Calculations?

    Homework Statement [/B] Write a function fForceOfGravity, with return type double and with two double parameters for mass (m) and gravity (g). Parameter gravity must be initialized to 9.81. The force of gravity is given by the formula F=mg. Call these functions in the main () as follows: cout...
  45. C

    Comp Sci How to debug an infinite loop in a C++ program using fork gymnastics?

    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...
  46. E

    Write a function that will find a temperature....

    Hi everybody, I seem to be having trouble coding a function that returns the integer value at which degrees celsius is equivalent to degrees fahrenheit. Here is the question: Write a function that will find a temperature that is the same in both Fahrenheit and Celsius. First define two...
  47. S

    Schools Suitable list of schools for an MS to apply for a PhD program in Optics

    Fifth Year BS-MS Student from one of the premier institutes in India CGPA: 8.1/10 GRE : 310/340 168Q 142V 4AWA TOEFL: 104/120 22R 27L 26S 29W I am applying for graduate schools in the following universities. Is the list sufficient? Any suggestion is most welcome. The list is not priority-wise...
  48. vanessa99

    Is a 10-Hour Study Schedule with Regular Breaks Effective for Concentration?

    Hello everyone! So I made a study program and it's 10 hours studying per day. I will have it everyday till May. After 30 min of studying I take a 5 min break and after 2 hours, 15 min break. Is that sound bad? Plus, till now due to different factors I have studied around 4 hours per day. How...
  49. Nikhil N

    How to make a ladder logic program for Profinet

    I have a SIMATIC S7-1200 CPU and Anybus card. I need to make communication between these. Can anybody tell how to make the ladder logic program for this in tia portal?
  50. K

    A What is the best program for MSEM? Student Request

    My research requires using the multilevel structural equation model (MSEM). I've read countless articles related to MSEM and I have not been able to pinpoint the best program. They vary from SPSS, MPlus, SAS, LISREL, AMOS, R2, etc. Any recommendations? I've asked around my academic circle and...
Back
Top