Programming Definition and 1000 Threads
-
M
Solving MIPS Programming: Enter 5 Ints & Reverse Order
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...- missinglink
- Thread
- Mips Programming
- Replies: 1
- Forum: Programming and Computer Science
-
P
How much of C do you have to know before programming microcontrollers?
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...- pyroknife
- Thread
- Programming
- Replies: 8
- Forum: Electrical Engineering
-
L
Fortran Fortran tutorial for someone with no prior programming experience?
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...- Light Bearer
- Thread
- Experience Fortran Programming Tutorial
- Replies: 7
- Forum: Programming and Computer Science
-
J
What skills do puzzles in programming develop?
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?- jd12345
- Thread
- Programming
- Replies: 10
- Forum: Programming and Computer Science
-
F
C Programming with Interrupts: How to Avoid Polling and Optimize Processor Usage
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...- fractal01
- Thread
- C programming Programming
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
F
When to use ADCON1 in c programming on the pic18f8722
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...- fractal01
- Thread
- C programming Programming
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
P
Need help interpreting this C (programming) Code
// 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...- pyroknife
- Thread
- Code Programming
- Replies: 3
- Forum: Mechanical Engineering
-
L
Root Programming: Input/Output Comparison
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- lamyaa
- Thread
- Programming Root
- Replies: 3
- Forum: Programming and Computer Science
-
R
Which Allocation Maximizes Factory Profits?
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...- ra_forever8
- Thread
- Mathematical Programming
- Replies: 1
- Forum: General Math
-
Useful programming languages to learn?
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...- Arsenic&Lace
- Thread
- Programming
- Replies: 31
- Forum: STEM Career Guidance
-
A
Assembly Language Programming under Mac OS X
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...- Agisch
- Thread
- Assembly Assembly language Language Mac Os Programming
- Replies: 4
- Forum: Programming and Computer Science
-
P
What programming environment to use?
I'm planning on learning C over winter break. What is the best programming environment to use for C?- pyroknife
- Thread
- Programming
- Replies: 8
- Forum: Mechanical Engineering
-
T
Need advice on programming internship
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...- trickslapper
- Thread
- Internship Need advice Programming
- Replies: 5
- Forum: STEM Career Guidance
-
Fortran Will FORTRAN always be the premier programming language for science?
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...- Aaronvan
- Thread
- Fortran Language Programming Science
- Replies: 24
- Forum: Programming and Computer Science
-
U
How Can Linear Programming Optimize Seating Capacity Within a Budget?
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...- uberw00t
- Thread
- Linear Linear programming Programming
- Replies: 3
- Forum: Set Theory, Logic, Probability, Statistics
-
M
C/C++ Jumping straight into C++ without programming knowledge
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...- member 392791
- Thread
- C++ Knowledge Programming
- Replies: 26
- Forum: Programming and Computer Science
-
O
Programming project. blackjack, String array issue
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.*; /** *...- opaquin
- Thread
- Array Programming Project String
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
C
Questions on Object Oriented Programming
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...- cesaruelas
- Thread
- Programming
- Replies: 11
- Forum: STEM Academic Advising
-
J
Comp Sci Computational Physics Programming using fortran g95
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...- jhosamelly
- Thread
- Computational Computational physics Fortran Physics Programming
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
J
Creating an OS: Understanding the Basics of Programming and Text Editors
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...- jd12345
- Thread
- Os Programming
- Replies: 23
- Forum: Programming and Computer Science
-
How can the MARIE processor be used to count the number of zeroes in user input?
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...- twoski
- Thread
- Programming
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
A
Linear programming: How to find extreme points and extreme directions?
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...- Arian.D
- Thread
- Linear Linear programming Points Programming
- Replies: 2
- Forum: General Math
-
T
Optimizing Knights on 8x8 Chess Board with Integer Programming
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...- thomas49th
- Thread
- Chess Integer Integer programming Programming Square
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
W
Python Intersecting Vectors(python programming)
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...- woods9910
- Thread
- Programming
- Replies: 1
- Forum: Programming and Computer Science
-
V
Programming in C question. Printing Arrays
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...- Vagabond7
- Thread
- Arrays Printing Programming
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
V
Programming in C, creating an Array user gets to input
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...- Vagabond7
- Thread
- Array Input Programming
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
P
Dynamic Programming with 2 state variables
Homework Statement Derive the Euler Equation of the dynamic programming problem: \[max_{\{ z_t \}^\infty_{t=0}} \sum_{t=0}^{\infty} \delta^t f(x_t, y_t, z_t) \] subject to: x_{t+1} = g_1(x_t, y_t, z_t), \ y_{t+1} = g_2(x_t, y_t, z_t), \ x_0 = x^0, y_0 = y^0 and where \delta <1...- physicsguy142
- Thread
- Dynamic Dynamic programming Programming State Variables
- Replies: 2
- Forum: Calculus and Beyond Homework Help
-
A
MHB Linear Programming using the simplex method
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...- arl2267
- Thread
- Linear Linear programming Method Programming
- Replies: 1
- Forum: General Math
-
L
Piano or Programming: Which Should I Learn?
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...- Lapidus
- Thread
- Piano Programming
- Replies: 4
- Forum: Programming and Computer Science
-
A
MHB Linear Programming using the simplex method
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...- arl2267
- Thread
- Linear Linear programming Method Programming
- Replies: 6
- Forum: General Math
-
S
Evolving Prime Number Algorithms: Can Computers Duplicate Human Programming?
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...- shivakumar06
- Thread
- Algorithms Computers Human Prime Programming
- Replies: 1
- Forum: Computing and Technology
-
B
Take the Math Class or the Programming Class?
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...- BrainFloss
- Thread
- Class Programming
- Replies: 5
- Forum: STEM Academic Advising
-
T
Can Programming Skills Improve Your Math Abilities?
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.- tackyattack
- Thread
- Programming
- Replies: 8
- Forum: General Math
-
Programming language for satellites?
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.- Biosyn
- Thread
- Language Programming Satellites
- Replies: 5
- Forum: Aerospace Engineering
-
S
Programming algorithms vs. Buying
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...- Schastain1
- Thread
- Algorithms Programming
- Replies: 4
- Forum: Programming and Computer Science
-
A
C Programming: Dynamic allocation of 2D arrays using an array of pointers.
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) =...- ashwinnarayan
- Thread
- 2d Array Arrays C programming Dynamic Pointers Programming
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
A
How to solve this Linear Programming problem graphically
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...- ashina14
- Thread
- Linear Linear programming Programming
- Replies: 2
- Forum: Calculus and Beyond Homework Help
-
S
Fortran [Fortran] Bad Programming Practices
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...- swartzism
- Thread
- Fortran Programming
- Replies: 25
- Forum: Programming and Computer Science
-
A
Help! C++ Struggles: My First Programming Class
I am taking C++ this semester, and am not really good at it. It is my first programming class, and I kind of stink, though I am trying. I don't think I'm going to get a great grade, and it will bring down my average. I was thinking of dropping it, but then had a look at the class averages...most...- andryd9
- Thread
- C++ Class Programming
- Replies: 15
- Forum: STEM Academic Advising
-
T
C/C++ [C++] Basic programming problem, user inputting wrong variable type
I'm fairly new to programming. I'm doing an undergrad ENG degree and one of my first year mandatory courses is programming. It's my first time ever doing it so I don't know much yet. I'm currently learning C++. I'm in the middle of working on a problem that pretty much involves me making a...- tbarker5
- Thread
- Programming Type Variable
- Replies: 4
- Forum: Programming and Computer Science
-
V
Engineering Major? Test Your Programming Skills in this Odd/Even Game!
Homework Statement This is an introductory programming class for Engineering majors. So I am making a simple game. It requires that you enter say, 3 numbers, then test to see if the sum of the numbers is even or odd. If it is even you win, odd, you lose. The game repeats several times, and...- Vagabond7
- Thread
- Engineering Game Major Programming Skills Test
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
J
What is the best way to learn programming?
I started programming like 1-2 months ago - In most of the questions I actually try to tell the computer what I would actually do to solve the problem. I am just telling the computer what humans would do to solve that problem. Is that the right practice?- jd12345
- Thread
- Programming
- Replies: 5
- Forum: Programming and Computer Science
-
J
Is it possible to linearize the non-linear equation in this linear programming?
Have typed the question is latex format, here it is: http://i.stack.imgur.com/grxgI.png- jack1234
- Thread
- Linear Linear programming Linearize Non-linear Programming
- Replies: 1
- Forum: General Math
-
I
Linear Programming Involving Indices
Homework Statement A marketing team is given a budget of 30,000 to advertise a new show. It wants to promote this show using two methods, internet and posters. The executives have decided that the overall budget used on the internet can't be greater than double the budget used on posters...- I Like Pi
- Thread
- Indices Linear Linear programming Programming
- Replies: 12
- Forum: Calculus and Beyond Homework Help
-
I
Linear Programming Dealing with Defects?
Homework Statement The problem goes like this: A man is selling two types of lightbulbs. Lightbulb X costs $1.70, but 9% are defective, and so, cannot be sold. Lightbulb Y costs $0.90, but 12% are defective. The man wants to purchase at least 10 000 lightbulbs of each type, but he wants at...- I Like Pi
- Thread
- Linear Linear programming Programming
- Replies: 6
- Forum: Calculus and Beyond Homework Help
-
D
Programming language named something like GEOT 4?
Evening all, Today I went to a guest lecture at my university. In it, the good professor was talking about a programming language or environment having to do with labs, that "would make anyone looking at your grad school resume look twice". The name sounds like GEOT 4 (gee-aught 4), but I'm...- dlivingston
- Thread
- Language Programming
- Replies: 3
- Forum: Programming and Computer Science
-
IE and Sony Vegas Programming languages
So I have been tasked with picking an operating system (windows 7) and finding out what language it's written in. (C C++ C#) Now I also have to pick 3 user applications that Windows 7 supports and find out what language they're written in. I have chosen Internet Explorer, Photoshop and Sony...- Darth Frodo
- Thread
- Photoshop Programming
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
Windows 7 Programming Language.
Hi guys, I REALLY need help on this. I need to find out what languages Windows 7 is programmed in, I know it's a combination of C, C++, C#, Fortan and Assembly. I can't seem to find this info on a "reputable site". I need to reference this, and I can't use wikipedia, Yahoo Answers etc...- Darth Frodo
- Thread
- Language Programming Windows windows 7
- Replies: 2
- Forum: Programming and Computer Science
-
P
I want to learn more programming. Fun method a la physics forum?
I've made a few efforts to learn to program in the past, but I've never lasted more than a few days. What are ideas on ways to make it fun? Websites maybe? Or forums? For learning science/engineering principles, this forum is great. Do you guys have suggestions for ways to make...- pa5tabear
- Thread
- Forum Fun Method Physics Programming
- Replies: 2
- Forum: STEM Academic Advising
-
N
Linear Programming Problem Setup
We were given this problem in a Linear Programming class and asked to define the constraints. Homework Statement max Z = max (xεS) {min {Z1, Z2...Zq}} where Zi=C1ix1 + C2ix2+...+Cnixn Homework Equations Constraints need to be defined to set up the problem. The Attempt at a...- nikki__10234
- Thread
- Linear Linear programming Programming
- Replies: 3
- Forum: Calculus and Beyond Homework Help