For my final project I need to code a program to handle a bookstore. Because the Java console isn't meant for stuff like this I decided to make my own UI.
The inventory, reports, and cashier section each get their own tab.
Each tab has a console output screen, a box showing what you just...
Hello,
I am a physics student and I am currently writing my Bachelor thesis in theoretical Physics. A thing which has sometimes crossed my mind over the past months is this: I have always loved computers and programming. I always find it fun to solve some programing related problem. E.g...
hello,
One can wonder what is the relation between the title of this thread and the subject of quantum mechanics,
well, i was reading in a book about quantum computation and information and it was talking about computer science in some chapter where it shows a basic understanding of Turing...
idk if some of you remember Recommend a book on Python Programming thread i created a while back. As some of you suggested, i bought Lutz's book. I've looked into (or at least skimmed through) most of the book...i really liked it.
I'm currently working on GUI Tkinter, it seems interesting...
Simplex Method --- Programming Problem
Homework Statement
Here's the question -
Conside the linear programming problem:
maximise P = -3x + y,
subject to 3x + 2y =< 24,
4x + 9y =< 36,
-2x + y =< 1,
and...
I've recently decided to really try and learn a computer language for the first time. I've had a standard computer science course that covered C material but I found that language to be overly tedious and absolutely miserable. Matlab was interesting, and I enjoy using it for dynamics and other...
I've seen references to using the graphics processing unit (GPU) of computers instead of the CPU for scientific / general purpose computing:
http://groups.google.com/group/sci.math.num-analysis/browse_thread/thread/76eac4d19d044096/0c46d5c5e04deeb3?lnk=gst&q=GPU#0c46d5c5e04deeb3
but can't...
Ok, let me introduce you to my problem. I am very interested in and am actively applying to many summer research positions but I find myself somewhat limited towards what I can apply for.
My issue is that most of the positions, if not all, want programming experience and I have only done 1...
This program is supposed to add 2 integers ,according to the compiler, there are 2 warnings and 1 error ,the error is (undefined symbol' end')
the warnings are 'sum' and 'y' are declared but never used
here is the program :
# include <iostream>
# include <conio.h>
intmain()
{
int x;
int...
My goal is just a simple bot that could "play" or do basic functions without human aid, on a online game of some sort, for example facebook's farmville or something similar.
Hi, I was wondering if anyone could help me, I am studying industrial design at Loughborough and as part of my coursework I am re-designing a stopwatch. Along with this coursework I need to submit a simulation of the electronics that would be involved.
We have all ben given a basic circuit...
Homework Statement
Homework Statement
Omega Manufacturing Company has excess manufacturing capacity and is considering
devoting its excess capacity to product 1,2, and 3.
The production process uses three types of machines and the available capacity on the machines is as follows:
Milling...
Homework Statement
Omega Manufacturing Company has excess manufacturing capacity and is considering
devoting its excess capacity to product 1,2, and 3.
The production process uses three types of machines and the available capacity on the machines is as follows:
Milling Machine: 550...
Homework Statement
1) Given three already declared int variables, i , j , and temp , write some code that swaps the values in i and j . Use temp to hold the value of i and then assign j 's value to i . The original value of i , which was saved in temp , can now be assigned to j .
2)...
Homework Statement
1) Given an integer variable strawsOnCamel , write a statement that uses the auto-increment operator to increase the value of that variable by 1.
2) Given an integer variable timer , write a statement that uses the auto-decrement operator to decrease the value of that...
Hello folks. I just finished my phd in theoretical chemistry and my work thus far hasn't involved any parallel programming. In the future I'm sure I'll be expected to know and use parallel methods, so I'm trying to learn it now. The books that I'm reading from begin by describing the different...
I'm trying to minimize a function over a rather complicated surface. I'm using an algorithm that takes an initial guess, finds the tangent plane at that point, minimizes using a linear programming algorithm, then (tries to) project back onto the complicated surface.
More specifically, if \xi...
Just some basic questions i have about function prototypes (functions)
What's an example of a code which has no parameters? ie: double func(void)
what is the purpose if the thing doesn't take in parameters? also, what if there is keyboard input and screen input what does that mean in the...
Howdy Folks-
I've developed an online programming environment that physics enthusiasts would find useful. You can use it to write programs & publish them online. There's built-in graphics capabilities, if you want to do fancy visualization stuff.
http://sporkforge.com/sporkapps/build.php
I am currently in the process of writing a program in VBA that will numerically "solve" a given n-body gravitational problem. I'm doing this pretty much just for fun and am by no means a programmer (had a 1 semester course in c++). The question I have is something that seems to keep coming into...
I was reading this story on CNN about how ESPN is starting to develop and implement 3D programming.
http://www.cnn.com/2010/TECH/01/05/espn.3d/index.html
It seems like an obvious step with the 3D movies out. However, besides the fact you'll need to buy a new TV, you will also need those 3D...
Is C++ programming used in electrical engineering work, it really doesn't seem as though it would be,but what could it be useful for, some kind of possible scenario ? (E.E. encorporates the use of electricity to make things happen mainly, whereas C++ has to do with computer design)
Guide me !
hi frnds,
i am doing my computer science engineering in India and i am in 1st year.I am interested to learn some languages as i am interested in programming.Can u people please guide me .:confused:
Some people don't mind sitting down on a desk with a cup of coffee and
solve some problems on computer, (mostly coding for whatever it be).
im thinking of persuing my career as a programmer and i think it suits my personality and my
strength.
Im looking for anyone whos currently working...
Homework Statement
I can do most the question, but just get stuck on the final question. Here is the whole question
1. Gordon Ltd makes 2 products, Tennis racquets and badminton racquets, each using the same materials and the same skilled labour.
The costs of the products per unit...
I have absolutely no ides where to go from here, I am horrible at this, If you could help me I would appreciate it, I want help doing it, not just answers.
Homework Statement
You are the owner of a manufacturing plant. We've been hired by Apple to produce iPhone and iPods. Apples pays us $50...
I need help in programming a pic on a FR28 I/O board that i bought off of ebay. no software came with it, only pdf's. Essentially i want to hook up sensors (Thermocouple, ph, photon) and have the pic store the data (using flash mem). the data stored will later be uploaded to a computer.
the...
Well I am studying electric engineering and computer engineering major... i really want to get into microchips/microprocessor programing.. i don't know any programming language at this moment should i learn C? or i should start with another language like phyton?
I'm currently taking my first programming course (1st year student - using FORTRAN 77) and the way the course is taught is atrocious. We listen to the prof give his lecture (3/4 of which is him going off on tangents). We spend no time in a computer lab. The only "practice" we get is 1 lab per...
Hi all,
I am new to C and I need some help solving an issue with network programming.
So in general, i have two programs running: Program A and Program B.
Description of A:
Send out packet with SN = i
(SN is the label for the packet. i.e first pkt SN=1, 2nd pkt SN=2 etc)
Set...
Homework Statement
Write a C program to use a function to add two 16bit and two 32bit integers together and return a long integer result.
Call the function twice with different parameters and print the results.
Declare your input variables to one of the function calls as local variables (on...
What are the functions of the following C libraries?
nr.h
nrutil.h
What I understood is that these are used when u are calling functions like 'qromb or polint or trapzd' for integration. Acutally when I compile the program I get these errors.
nr.h: No such file or directory
nrutil.h: No...
Hi
I have a function that relies on n and t. I am presently drawing it with "ParametricPlot3D." I am drawing it for all t in [0,1]. Now I can either draw this for all values of n in a defined interval, say [a,b], just as I define it to draw all t. Or I can draw one value of n by using the...
I used to think that computer science was all coding and making software. That displeased me greatly since I'm not the greatest at coding. Certainly not one of those people who started at 10 or even 16. It's not that I'm fundamentally bad at it, but I just tend to dislike it. Yet I am drawn to...
I'm not a complete newbie to Python but I'm not a pro either (far from it). I played with Python on surface, like doing simple computation in python shell or creating a very simple program (such as finding roots of quadratic equations).
Anyway, i would like to explore more into this subject...
[SIZE="3"][FONT="Times New Roman"]I am looking to start learning programming more or less on my own. I can make some advanced programs on the TI-83+ calculator and have been for the past year. I learned just from reading the manual and messing with the different logic operators and commands...
I'm going for a major in mechanical engineering and am planning on getting a PhD. I was planning on having a minor in Computer Science just to help with research and general programming.
With all of the programming languages out there, it gets kind of overwhelming when trying to narrow it...
I will be doing my finalyear project next year. And I thought of building a robotic butler, i.e: a robot that can be summoned by the user with a click on the remote control to bring the food/drinks that are stored in it to the user.
I am hoping that the robot could trace and go to the signal...
Hello. I'm thinking about building a 2D pathfinding robot. I was just wondering if anyone wanted to suggest a programming language. I have experience in a few, but I also like trying new ones so I'm open to anything. Any suggestions? Thanks.
Hi everyone.
I'm supposed to do a small research project for one of my C++ classes. The only requirement is that it can be rendered in 3D (opengl).
I wanted to do something AI related, like pathfinding or something.
I thought of making a 3D pacman with each ghost following a different...
I am taking a very basic programming class, and all we work with is fliowcharts and pseudocode. We use the following book: Programming Logic and Design, 5th edition, comprehensive by Joyce Farrell. We use VISIO for the flowcharts, and Word for the pseudocode. And I need help with the following...
Hello everyone,
New to the forums and I really need some help. I'm trying to create a little man program that would accept any three user inputs and return them in order from largest to smallest. I really have no clue where to start since I'm completely new to programming. Please help..
Homework Statement
Well the program has several functions but I just really need help with reading a text file and splitting the data in the file into a one-dimensional array and a two-dimensional array
The text file is like this...
21
1110 1.5 5.4 6.0 9.8. 8.5 8.3 5.6...
I'm making a program for one of my programming classes and just needed some help!
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int number;
float feet;
float metres;
float conv1;
float conv2;
cout << "Do you wish to convert 1...
Hello All,
I need to utilize a Runge Kutta second order approach to solve two coupled first order DE's simultaneously given some initial conditions and a conservation relationship.
The DE's are as follows:
\frac{dp}{dt} = aq - bp
\frac{dq}{dt} = -aq + bp
Where a and b are...
When I first started programming, I used a text editor & the command line to compile & run my programs. However, then I switched to the Eclipse IDE, and I've been using that ever since (I also used Visual Studio when I took a C++ class). As you can see, my exposure to different development...
Homework Statement
A feasible dictionary whose last row reads z = z* + ∑ cjxjdescribes an optimal solution if and only if cj ≤ 0 for all j.
Prove or disprove.
Homework Equations
The Attempt at a Solution
It is clear that if all c's are ≤ 0, then the solution is optimal since increasing any of...
hi everyone,
one of my homework questions asks me to write a computer program to evaluate the Planck distribution at any temperature and wavelength and add it to a routine for evaluating integrals for the energy density of the radiation between two wavelengths.
I have never used any...