Search Results

Showing results 1 to 38 of 38
Search took 0.01 seconds.
Search: Posts Made By: cproud21
Forum: C++ 11 Days Ago
Replies: 2
Views: 197
Posted By cproud21
I have the following code that tests a string to see if it is a palindrome. The only error I am getting is when I try to pass each character to the queue and stack. Is there another way to pass it to...
Forum: C++ Mar 25th, 2009
Replies: 2
Views: 325
Posted By cproud21
I have the following program that declares 100 Book objects... The way that I have it now, each item in the array is set to a default value. Is there a way to add only the items that are input by...
Forum: C++ Mar 25th, 2009
Replies: 7
Views: 688
Posted By cproud21
OK, I think I have the sort... Now im having problems with the search, if I cannot get it to return the index... It returns -1 every time....

#include <iostream>
using namespace std;
#include...
Forum: C++ Mar 24th, 2009
Replies: 7
Views: 688
Posted By cproud21
closer???

void selectionSort(Book bookList[], int SIZE)
{
int a, b;
Book temp;
for (a = 0; a < (SIZE - 1); a++)
{
bookList[b] = bookList[a];
temp = bookList[a];
Forum: C++ Mar 24th, 2009
Replies: 7
Views: 688
Posted By cproud21
Ok, thank you am I getting closer with this...

void selectionSort(Book bookList[], int SIZE)
{
int startScan, minIndex;
string strName;
for (startScan = 0; startScan < (SIZE - 1);...
Forum: C++ Mar 23rd, 2009
Replies: 7
Views: 688
Posted By cproud21
I understand how to search and sort an array of int type. However I am confused how to sort/ search an array of object's in which I sort/search by a string in the object. (alphabetically) Here is the...
Forum: C++ Feb 20th, 2009
Replies: 2
Views: 369
Posted By cproud21
Why is this array not printing in 2D?

#include <iostream>
#include <iomanip>
using namespace std;

const int COLS = 5;
const int ROWS = 5;
void showArray(int [][COLS], int);
void...
Forum: C++ Feb 17th, 2009
Replies: 3
Views: 335
Posted By cproud21
I have the following array that prints out the amount of rainfall for each month, and then uses a bubble sort to sort it in ascending order... How can I display the name of the month along with the...
Forum: Java Dec 8th, 2008
Replies: 1
Views: 316
Posted By cproud21
I am to design an applet that produces a six sided polygon in which the coordinates are set according to the location of the mouse when it is clicked. I am struggling setting each of the clicks to...
Forum: Java Dec 2nd, 2008
Replies: 2
Views: 349
Posted By cproud21
I have the following code that produces an applet of two eyeballs. I have a mouseMotionListener that is set so that when the mouse is moved around the pair of eyes, the eyeballs follow the pointer. I...
Forum: Java Nov 24th, 2008
Replies: 1
Views: 794
Posted By cproud21
The following applet that I have displays a house with two windows and a door that are colored in black. I want to display these items with window panes in them to show that they are open when the...
Forum: Java Nov 19th, 2008
Replies: 5
Views: 794
Posted By cproud21
i am getting warnings in the

(selection == decks[0])
deckPrice = 60;
if (selection == decks[1])
deckPrice = 45;
if (selection == decks[2])
...
Forum: Java Nov 19th, 2008
Replies: 5
Views: 794
Posted By cproud21
its on gettting the total even though that line was wrong ask well..
Forum: Java Nov 19th, 2008
Replies: 5
Views: 794
Posted By cproud21
I have a GUI app which in which I need to pass a value from an array to a List... here is what I have... The problem occurs when I try to pass the array element to the ActionListener...

im not...
Forum: Java Nov 18th, 2008
Replies: 0
Views: 466
Posted By cproud21
I have the following listing application that allows the user to make selections to build a skateboard. How can I add the values to the arrays which are declared? I do not understand how each value...
Forum: Java Nov 18th, 2008
Replies: 4
Views: 293
Posted By cproud21
Im not seeing any error in that line, it is set up the same way as the line above it, which doesn't show an error, and copied in the same manner as in my book..
Forum: Java Nov 18th, 2008
Replies: 4
Views: 293
Posted By cproud21
I am getting the following error...

init:
deps-jar:
compile-single:
run-single:
Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container
at...
Forum: Java Nov 17th, 2008
Replies: 2
Views: 595
Posted By cproud21
I am to create a menu application for a cell phone company. The user is to select their package, phone, and any additional add ons they would like, and it is to disply the prices. This is by far the...
Forum: Java Nov 10th, 2008
Replies: 2
Views: 421
Posted By cproud21
I wrote the code for the following 2 combo boxes which display a drop-down list of dorm buildings and meal plans for a college student. The code works, and both boxes are displayed. I have completed...
Forum: Java Nov 10th, 2008
Replies: 2
Views: 511
Posted By cproud21
I created a combo box for the selection of a dorm....

I need to create another combo box for the selection of a meal plan...

Should I write that in another class, or can I add it to this class?...
Forum: C++ Oct 28th, 2008
Replies: 4
Views: 360
Posted By cproud21
The assignment calls for me to find the area with the fewest accidents (north, south, east, west, central) in a city. I am to write two functions:

-getNumAccidents() is passed the name of the...
Forum: C++ Oct 28th, 2008
Replies: 4
Views: 361
Posted By cproud21
Is there an easier way? The assignment wants me to use one function to get the number of accidents in five areas from the user, and use another to determines which has the lowest amount of accidents...
Forum: C++ Oct 28th, 2008
Replies: 4
Views: 361
Posted By cproud21
If i have 5 int variables with values stored in them, is there a command to find the lowest valued variable?
Forum: Java Oct 27th, 2008
Replies: 1
Views: 529
Posted By cproud21
I have written the following class, and demo, in which I used a default exception (InvalidInputException)... I ran it, and it worked. So I tried my own exception, which I cannot get to work. How do I...
Forum: Java Oct 27th, 2008
Replies: 3
Views: 403
Posted By cproud21
Yes, I know that but what I meant is that the demo class does not run... Im not sure as to what I did wrong...
Forum: Java Oct 27th, 2008
Replies: 3
Views: 403
Posted By cproud21
I am trying to write an exception to throw, for an invalid testScore array. If the scores are greater than 100 or less than one. I attached the three classes I have created. I also have to return the...
Forum: C++ Oct 21st, 2008
Replies: 3
Views: 363
Posted By cproud21
Ok, that makes sense thank you!
Forum: C++ Oct 21st, 2008
Replies: 3
Views: 363
Posted By cproud21
The following program is a game in which there is a pile of coins. When the loop runs two players take turns removing coins. Whoever gets the last coin wins the game. ... How can I get the looping to...
Forum: Java Oct 19th, 2008
Replies: 1
Views: 549
Posted By cproud21
I have the following prgoramming challenge to complete.. I am confused with a few things.. I have created the three classes which I have attached. I am struggling with the following if anyone could...
Forum: Java Oct 7th, 2008
Replies: 5
Views: 839
Posted By cproud21
I have attached 4 classes which I have created for the following assignment, as well as a test program which tests the other four classes. The only thing that I am having a problem with is reporting...
Forum: Java Oct 7th, 2008
Replies: 6
Views: 703
Posted By cproud21
okay thank you should the first two classes look more like this....


import java.util.Scanner;


public class parkedCar

{
Forum: Java Oct 7th, 2008
Replies: 6
Views: 703
Posted By cproud21
I have the following programming challenge to complete, and am stuck. I know what i have to do, which is to get information from the other three classes into the parking ticket class, and then print...
Forum: Java Oct 5th, 2008
Replies: 2
Views: 550
Posted By cproud21
I need to print the following array and am not sure how to do so. It uses an object which is already created named TimeAT....


import java.util.Scanner;
import java.util.Random;


/*
* To...
Forum: Java Sep 29th, 2008
Replies: 1
Views: 350
Posted By cproud21
I have the following classes completed and have to create a driver that:
rite a driver program to test your Clock class. The driver program should allow the user to enter both the current time and...
Forum: Java Sep 29th, 2008
Replies: 4
Views: 1,839
Posted By cproud21
Thank you Javaadict that makes so much more sense to me... I understand that I was not using the Time class... I also do not understand the driver program that tests the clock Class... I am unsure...
Forum: Java Sep 29th, 2008
Replies: 4
Views: 1,839
Posted By cproud21
I have the following program to write: given the TimeAT class:

The time class uses two integers, one to store the hours and one to store the minutes of a given point in time.

Write a Clock...
Forum: Java Sep 23rd, 2008
Replies: 5
Views: 833
Posted By cproud21
I so far I have two classes... main and month

Im not sure that I have them set up correctly... here is what I have so far:

package cjpmonthclass;



public class Main
{
Forum: Java Sep 22nd, 2008
Replies: 5
Views: 833
Posted By cproud21
I am new to programming and was thrown into an online java course before I took the prerequisite course. I love programming so far, but am lost in java and would appreciate any help that anyone has. ...
Showing results 1 to 38 of 38

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC