199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Der_sed

OK PEOPLE I NEED HELP AGAIN........pls dont do my homework..........thats y i havnt given the question this time aroung :) the question im asking is simple : the program asks user to input product id ( a,b,c,d or e) and its quantity sold......it then saves total sale in "int sale" …

Member Avatar for vegaseat
0
189
Member Avatar for idr1978

Can anyone help? Instead of outputting the decimal 1.75, C outputs 7/4 as 1.0000. I very much need to obtain the exact decimal product of integer ratios to 2 decimal places and then compare it to another decimal number. For example, if (7/4 > 1.25) printf("Yes\n"); else printf("No\n"); --> So …

Member Avatar for idr1978
0
146
Member Avatar for Der_sed

[IMG]http://img.villagephotos.com/p/2004-8/807060/resultwanted.JPG[/IMG] the picture shows the result i wanna achieve but my program here which i modified: [CODE] #include <iostream> using namespace std; int main() { int k, m; for(k = 1; k <= 10; k++) { for(m = 0; m < k; m++) cout << "*"; cout << endl; } …

Member Avatar for Narue
0
143
Member Avatar for mattcplusplus

static void myInit() { PrimitiveType=GL_POLYGON; LineSegments=3; } can someone tell me what static does to the function?

Member Avatar for Narue
0
191
Member Avatar for Domainstop

I found a cool site to do a few programming assignments for me. My teacher is probably the worse programming teacher on the planet. It's cool because they help teach you in the code they write. I didn't feel like they were just "doing my homework". [url]www.imalamecheaterd00d.com[/url]. Check it out. …

Member Avatar for alc6379
0
97
Member Avatar for magnia

can anyone help with this i have to do a project and im running into alot of problems i have to write a discrete simulation to experiment with the performance of this strategy under different timeslice lengths and different dispatcher overhead times [dispatch latencies]. Do this by writing a simulation …

Member Avatar for magnia
0
85
Member Avatar for missy

i am a beginner, and i have 4 questions but i will only ask 2, 1. i have an assignement that says, write a program that will display one of three user-selected shapes, ('T'=triangle, 'D'=diamond, or 'R'=rectangle and 'X' to terminate). using a switch statement. please help me with the …

Member Avatar for frrossk
0
296
Member Avatar for thiodre26

Greetings: I am taking my first C++ class and am a little stuck. I keep receiving three compiler errors, but I can't seem to figure them out. Can someone please point me in the right direction. The assignment is: Write a C++ program having a recursive function recursiveMinimum that takes …

Member Avatar for Chainsaw
0
95
Member Avatar for hurdy011

the code that is attached it what i have done so far but dont seem to be able to get the test file to get it to display the informationthe code i have is shown below import java.io.*; import java.util.*; public class league{ private static final int MAX_TEAMS = 50; …

Member Avatar for hurdy011
0
109
Member Avatar for Dounia

:!: Please look at all my message it is not long as it seems. My question is at the end and thank you in advance. Here is a small class called Record that is a utility class for the InventorySet class. final class Record implements Comparable { /** * The …

Member Avatar for Dounia
0
170
Member Avatar for MrScruff

I guys and girls - im a MrScruff and found your forums when searching for some java problems. It looked like a nice place so i decided to join up! Heres my first java question which has had me perplexed for 2 days considering im sure it should be simple. …

Member Avatar for jwenting
0
284
Member Avatar for Eclipse

[QUOTE]P = R*P*(1-P) Input: R (growth rate parameter) Double values between 0 and 10. Input: P (population) Double values between 0 and 1. Output: P (New population) on the console in rows of five numbers the exit conditions are the population becomes extinct or stable. Extinction occurs when the new …

Member Avatar for jerbo
0
160
Member Avatar for paynekiller

hey all, what would be the calculations needed for making a simple sprite opject point towards the cursor position? ta

Member Avatar for vegaseat
0
137
Member Avatar for ravit

Which file supposed to replace the file crtdbg.h in embedded c++? Is it possible that I don't have it in the embedded c++ environment? I'm trying to convert a project that wrote in visual c++ to Embedded visual c++?

Member Avatar for frrossk
0
304
Member Avatar for George2

Hello everyone, Using join can control how much time will we wait for a specific thread to accomplish its execution. I am meeting with a new scenario, which is a little different. My requirement is that I want my main thread starts several threads at the same time, which will …

Member Avatar for George2
0
144
Member Avatar for missy

Write a program that will prompt a user to enter an integer between 2 and 999, inclusive. As output, the program will display all prime integers between 2 and the user-input value. This program will use a process of “cancellation

Member Avatar for Narue
0
145
Member Avatar for rohit_macharlra

[COLOR=Navy]hello everybody i developed a player using JMF in java. it is unable to play MPEG4 format. any one help me how to make my player to play MPEG4 format files[/COLOR]

Member Avatar for vrc_sekhar
0
136
Member Avatar for billfrost

Hi I have this html page in the same directory as the ilookpano.zip file as well as the int.caddy.jpg, why is it not working? I would be most gratefull if some one can help. I found this applet on someone else's site and just downloaded the .zip file which has …

Member Avatar for billfrost
0
97
Member Avatar for N3wbi3C0d3r

[CODE] //Program to collect and hold data on CD's #include <iostream> #include <fstream> using std::cout; using std::cin; using std::endl; using std::ifstream; int main() { int QA; cout << "To veiw file press v, to add a new CD press a:\n"; cin.get(QA); if (QA == v) { while (CDs.get(ch)) cout.put(ch); } …

Member Avatar for jwenting
0
146
Member Avatar for matt_5104

I'm having a problem with a GUI i'm building. I have a separate class called Calculations.class which does nothing except hold certain variables and do calculations with them. One of my classes requires a user to enter numerical data, and when a button is pressed, these variables are set in …

Member Avatar for tozaheer
0
126
Member Avatar for nutwood33

Please could someone help me with a very simple question. I use VB macros quite extensively for a variety of data contol tasks in Excel. I'm totally self taught assisted by "Help" and frustration in equal measures. "Help" tells me I'm using VBA 6.0.8435. I would like to learn more …

Member Avatar for nutwood33
0
132
Member Avatar for joey15

I have to add to an exisitng Java program the code for the DSW algorithm to balance a binary tree. I am relatively new to programming so I dont know where to start. Does anyone know where I can find an example of the code? Thanks Joey :-|

Member Avatar for joey15
0
1K
Member Avatar for Faramba

How can we print the output of the program(which is in the black environment, dos form)in the c++ visual studio 6 compiler?

Member Avatar for Extreme
0
95
Member Avatar for jcr1
Member Avatar for alc6379
0
464
Member Avatar for mendrif

I'm not sure how to get started with this. Here's the assignment and what i've done so far, but I'm not sure if i'm going the right direction with this. The assignment says to have the user enter input one character at a time. That means one letter or space …

Member Avatar for mendrif
0
169
Member Avatar for ryan_qut

Hi, i wanted to overload a + operator to add two objects..i have an error which states "invalid operands `employee *' and `employee *' to binary `operator +'".. i do not know what is wrong with that statement, can anyone pls point out my mistake?? Thanks. the problem lies with …

Member Avatar for Dani
0
168
Member Avatar for Domainstop

Can someone please tell my why the following won't compile? } void main() { I'm pulling my hair out! Kevin

Member Avatar for Tresa
0
178
Member Avatar for fivetoesonefoot

hey i was wondering if someone could help me with this problem. i am so incredibly and utterly confused. here it is... write a simple phone directory program that looks up phone numbers in a file containing a list of names and phone numbers (called input.txt). the user should be …

Member Avatar for Tresa
0
203
Member Avatar for beckerc

I do not know if this is even possible in this language, but here goes: I am looping a recordset that has been returned for update. the problem is I have many records that can be returned, so when i submit my form, I get an error because it does …

Member Avatar for beckerc
0
148
Member Avatar for tipsydesign

I have a small javascript program that basically asks a user 60 questions. Each question answer a or b, and right now it has it set up for an onclick, the variables associated with each answer increase one. The problem I have obviously, is if the person clicks on one, …

Member Avatar for beckerc
0
173
Member Avatar for old lady

I've written programs for averaging lists of exam grades but throwing in the percent is throwing me for a loop. I don't know how to handle this information. Any help will be greatly appreciated. > //Write a program that asks the user to enter a student's midterm > //and final …

Member Avatar for jwenting
0
164
Member Avatar for bajanstar

Hi, I am very new to this forum and i have a problem with my C assignment. Im using Borland C++ 4.52 and i keep getting an error saying: General Protection Exception 0x241F:0X41C1 NONAME02(1)0X241F:0X41C1 Processor Fault It not the computer its the code at least thats what i figured because …

Member Avatar for bajanstar
0
127
Member Avatar for grifflyn

Hi i have written a program to identify all the vowels in a sentance and need to output the number as Stars. at the moment it is outputting the number how would i tell the program to output 5 stars instead of the number 5 this is what i have …

Member Avatar for grifflyn
0
114
Member Avatar for psylocke

i have a public class named as clsbanking using JFrame, and then this frame has a menubar, that has FILE menuitem in it. the FILE menu has an Exit option which will actually close the whole frame for termination, unfortunately my codes doesnt work, what should be my code then. …

Member Avatar for psylocke
0
144
Member Avatar for alexis

OK here is the deal...ive looked and looked at my java book...i am in oracle 2 this year this will be my 1st year...i am doing allright in it...as long as the book can help me...but see i cant find these answers...i have found 1, 2, 3 but not the …

Member Avatar for jwenting
0
107
Member Avatar for Alfy

#include <stdio.h> #include <string.h> int i,k,type; char buffer[100],l,line[50]; struct student { char name[20]; int age; int id; }; struct student st[2],temp,*sp; int sort(struct student *p) { *sp=st[0]; p->age; for(i=0; i<l; i++) { if(st[i].age<st[i+1].age) break; else if(st[i].age>st[i+1].age) { temp=st[i]; st[i]=st[i+1]; st[i+1]=temp; }break; } printf("\t\tsorted student information\n--------------------------\n"); printf("%d",st[i].age); return(0); } int main() …

Member Avatar for jwenting
0
174
Member Avatar for Der_sed

the typical question which ask user to display THIS * ** *** **** ***** ****** ******* ******** ********* ********** using a single cout<<"*" & cout " " with the help of [B]for loops ONLY[/B]. :) ive come to this this prgram but can anyone tell me where i am going …

Member Avatar for Der_sed
0
113
Member Avatar for Programming sta

i have been asked to write a program to detect 3 classes of virus worm etc.. and remove them in any language of my choice but i do not have an idea how to do this and would much appreciate if some one please advise me!!!!

Member Avatar for BountyX
0
193
Member Avatar for Darkfoxx

Hello. I have made a program that rolls a pair of dice and then calculates the percentage of time a number has come up (see output on image). I am having a problem getting the percentages right...mostly because I calculate the average...how would I get the percent??? However, the main …

Member Avatar for Darkfoxx
0
123
Member Avatar for kiki021600

hi I am trying to write a simple cat program in C but am getting very confused. I thought i knew where to start but I dont. the assignment says: You will be writing a simple version of the program "cat". It must accept as arguments any number fo filenames. …

Member Avatar for Narue
0
1K
Member Avatar for Young Teck 06

I need some help, what would everybody out there recommend for a C++ Compiler. I am thinking about paying $110 for Visual C++ "Standard". Does anybody know if this software is great and what are the best features of it. Other recommendations are also welcome.

Member Avatar for vegaseat
0
369
Member Avatar for toadie2004

This is my project: Read the data one line at a time and store them in two different arrays. Pass the first array to a function that sorts the array in ascending order using selection sort. Pass the second array to a function that sorts the array in descending order …

Member Avatar for jasweb2002
0
103
Member Avatar for LoLo

Need help with making this work. I can't get the System.format (prepayment) to work. class Mortgage { static NumberFormat fmat = NumberFormat.getCurrencyInstance(); public static void main(String args[]) { String input_amt = JOptionPane.showInputDialog("Enter loan amount: "); double loanAmount = Double.valueOf(input_amt).doubleValue(); String input_rate = JOptionPane.showInputDialog("Enter rate: "); double interestRate = Double.valueOf(input_rate).doubleValue(); String …

Member Avatar for LoLo
0
121
Member Avatar for Dounia

:confused: Hi, I have this homework to do and I have to solve a method called: public Collection toCollection(). Here is what i solved so far: final class InventorySet { private Map _data; int thesize; InventorySet() { // TODO _data = new HashMap(); } /** * Return the number of …

Member Avatar for Dounia
0
171
Member Avatar for winds

i'm try to do a fingerprint verififcation system with minutiae matching, function include threshold, thinning, and ridge detect. can any1 help and giving sample code??

Member Avatar for jwenting
0
100
Member Avatar for wlhan

Hi All I' am a new pie in php I have finished with installing php5 and mysql and the apache server when ever I have tried to run php nuke portal I got this sample of errors Notice: Undefined variable: querystring in h:\apache group\Apache\htdocs\html\mainfile.php on line 28 Notice: Undefined variable: …

Member Avatar for wlhan
0
163
Member Avatar for SelArom

Hi I'm Josh and I'm new to these forums, and new to c++. I hope that I can get some great hints and help from the community. thank you in advance! I'm trying to create and use a hashtable class that uses a linked list for separate chaining. I've completed …

Member Avatar for SelArom
0
211
Member Avatar for cltc72

i need to a sub class for the boat rental but i am not sure how to do it i will give the code and it needs to inherit to the parent class can somw help out

Member Avatar for Narue
0
120
Member Avatar for mellinda

hia, the below program is a Simulation of Producer-Consumer Problem using Race Condition.Please can anyone help me to finish this program in java language.Thanks a lot lux melxxx Producer/Consumer code int BUFFER_SIZE = 100; int count = 0; void producer(void) { int item; while(TRUE) { produce_item(&item); if(count == BUFFER_SIZE) …

Member Avatar for jwenting
0
140
Member Avatar for dontcare

I would really like to learn how to debug my programs. The book I'm using does not have much info on debugging and my instructor hasn't said much on the topic either. I ended up re-writing my source code because of seg fault error. The program works fine now, but …

Member Avatar for Chainsaw
0
121

The End.