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.
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...
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...
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...
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...
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...
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...
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.
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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?
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...
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...
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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?
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...