199,114 Archived Topics
Remove Filter ![]() | |
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" … | |
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 … | |
[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; } … | |
static void myInit() { PrimitiveType=GL_POLYGON; LineSegments=3; } can someone tell me what static does to the function? | |
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. … | |
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 … | |
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 … | |
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 … | |
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; … | |
:!: 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 … | |
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. … | |
[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 … | |
hey all, what would be the calculations needed for making a simple sprite opject point towards the cursor position? ta | |
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++? | |
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 … | |
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 | |
[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] | |
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 … | |
[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); } … | |
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 … | |
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 … | |
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 :-| | |
How can we print the output of the program(which is in the black environment, dos form)in the c++ visual studio 6 compiler? | |
| |
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 … | |
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 … | |
Can someone please tell my why the following won't compile? } void main() { I'm pulling my hair out! Kevin | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
#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() … | |
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 … | |
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!!!! | |
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 … | |
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. … | |
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. | |
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 … | |
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 … | |
: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 … | |
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?? | |
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: … | |
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 … | |
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 | |
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) … | |
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 … |
The End.