Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~23.4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for lbgladson

Last week I was working on some assignments using JDBC and now when I try to run programs in Eclipse this is what I get...and this is only part of the message that appears in the Console box instead of what should show when I run a program. What did …

0
79
Member Avatar for lbgladson

I have an assignment where I am creating a BankAccount program. I have to create an ArrayList of BankAccounts and have the program ask the user how many accounts to create and then have a loop to ask the user for the accountId, name, and initial balance for each account …

Member Avatar for NormR1
0
2K
Member Avatar for lbgladson

I am in a capstone programming class where I have to create my own program. The instructor is not giving us any help and told us it was our responsibility to find our own help in creating this program. What I want to do is have the user click on …

Member Avatar for AndreRet
0
92
Member Avatar for lbgladson

I have a Capstone Project this summer where I have to create a program from start to finish. The instructor told us we are not allowed to ask him for help or advice we have to find it ourself so that is why I'm posting here. My idea for my …

Member Avatar for Begginnerdev
0
90
Member Avatar for lbgladson

I have the following code which allows a user to play Rock, Paper, Scissors with the computer. The code allows for 10 rounds and counts the number of wins and ties. I need to allow for user misspelling by allowing the input to be accepted if the user types the …

Member Avatar for stultuske
0
171
Member Avatar for lbgladson

In the program below I am trying to overload the +, -, *, >>, <<, ==, and != operators. I cannot get the code to compile and am not sure what I'm doing wrong. I have posted the code and error messages below: Complex.h [code] #include <iostream> using namespace std; …

Member Avatar for lbgladson
0
595
Member Avatar for lbgladson

I have an assignment to get the area and perimeter of a rectangle. I have to set the width and length to 1 initially and use set and get functions. I have the following code but am not getting the correct answers for area and perimeter. Any suggestions? Rectangle.h [code] …

Member Avatar for Moschops
0
1K
Member Avatar for lbgladson

How do I get the console from closing immediatley upon opening in a Console Application program? I have all of the code written but when I run the program it pops up the console window and then immediatley exits so I am unable to read what is in the window …

Member Avatar for Begginnerdev
0
246
Member Avatar for lbgladson

I have to display the following pattern using a loop: @@@@@@@@@& @@@@@@@@&& @@@@@@@&&& @@@@@@&&&& @@@@@&&&&& @@@@&&&&&& @@@&&&&&&& @@&&&&&&&& @&&&&&&&&& I have the following program that is using a loop but it displays 9 rows of 10 @ symbols instead of incorporating the & symbols. What do I need to do …

Member Avatar for stultuske
0
434
Member Avatar for lbgladson

I have the following classes for a bank account. I am hoping someone can point me to where the problems in my code are. When I run the program my output is: account1 Inheritance_Part1.SavingsAccount Interest rate: 0.00% Interest earned: $25.00 Balance: $25.00 account2 Inheritance_Part1.CheckingAccount Transaction fee: $1.00 Balance: $80.00 Attempting …

0
66
Member Avatar for lbgladson

I have the following program to reduce rational numbers but am getting error messages at the lines x = c.subtraction( d ); and for multiplication, addition and division that says no operator "=" matches these operands. I do not know why. Could someone please help? [code] class Rational { private: …

Member Avatar for Schol-R-LEA
0
6K
Member Avatar for lbgladson

I am trying to use a combo box to change the background color. I have the following code but it is not working correctly. The combo box is there with the three choices but the choices are not changing the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for Ezzaral
0
101
Member Avatar for lbgladson

Where would I need to save a picture on my computer to be able to use it as an icon on a button in a program?

Member Avatar for hfx642
0
85
Member Avatar for lbgladson

I have the following code where I am trying to put an icon on the redButton but what I have done is not correct and I'm not sure what to do. There is no where in my book that explains how to do this and I keep getting confused looking …

Member Avatar for lbgladson
0
85
Member Avatar for lbgladson

I have to create a GUI that when I click on the buttons it changes the color of the background. Below is what I have but I can't figure out what code to put in and where to change the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for Ezzaral
0
5K
Member Avatar for lbgladson

I have a program to write an application that takes the initial balance, annual rate, and number of years and finds the balance of the account at the end of each year. I have the following code but my Annual Rate label is in the incorrect place, the calculate button …

0
75
Member Avatar for lbgladson

I have the following program written where Square extends Rectangle. I cannot figure out how to get the correct display for the x and y coordinates. It should display Expected: Square[x=5, y=5, width=30, height=30] but instead it displays Square[x=10,y=20,width=30,height=30]. [code] import java.awt.Rectangle; public class Square extends Rectangle { private int …

Member Avatar for niranga
0
113
Member Avatar for lbgladson

I have to create a form that accepts three test grades for three students and then writes them to a file and displays them to a list box and then it opens the file and displays it into a different list box. I have the following code but cannot get …

0
49
Member Avatar for lbgladson

I have an assignment to create Random Shapes by creating a method randomShape that randomly generates objects implementing the Shape interface. This is what I have so far and don't know where to go from here. [code] import javax.swing.JFrame; public class RandomShapeViewer { public static void main(String[] args) { JFrame …

Member Avatar for JamesCherrill
0
154
Member Avatar for lbgladson

I have a problem to Modify the Coin class to have it implement the Comparable interface. The following code is not working correctly and I don't know why. [code] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; …

Member Avatar for lbgladson
0
135
Member Avatar for lbgladson

I have to create a form that I enter the price of gas each month over a year. I enter the price in a text box and click the enter button to send the price to a list box immediatley and use an array. I have the following code but …

Member Avatar for lolafuertes
0
142
Member Avatar for lbgladson

I need to create an array of decimals by getting input from the user. I know how to create one of random numbers but do not know how to get the input from a user through a text box to a list box.

Member Avatar for Reverend Jim
0
111
Member Avatar for lbgladson

I am developing a form that calculates a Business Travel Expense for a business trip. Everything is fine and dandy but I have to display the information in a listbox using zone ouput. There is nothing in my book about zone output...the teacher provided us with this Dim fmtStr As …

Member Avatar for Reverend Jim
0
121
Member Avatar for lbgladson

I have an assignment to create a class Input and have method public static int readInt(Scanner in, String prompt, String error, int min, int max) I was provided the main method but have no idea what I'm supposed to be putting in the class Input. This is what I have: …

Member Avatar for stultuske
0
166
Member Avatar for lbgladson

I wrote a program called Geometry that finds the volume and surface area of a sphere, cone and cylinder. I have to use JUnit 4 Testing to test the separate classes. I have written the following code but when I run the test it says it fails even though my …

Member Avatar for JeffGrigg
0
182
Member Avatar for lbgladson

I have an assignment to take the functions and use array subscripting and pointer arithmetic to write the functions. int stringLength(const char* s); char* stringCopy(char* s1, const char* s2); char* stringConcatenate(char* s1, const char* s2); and use the following tester driver: but I have no idea where to start when …

Member Avatar for WaltP
0
133
Member Avatar for lbgladson

I have the following code to generate an array of random numbers. How can I get it to print the array like [5,89,76,34,2] instead of printing down. I don't think it is actually printing the array just the numbers. [code] import java.util.Random; public class RandomIntArray { private int[] numbers; public …

Member Avatar for lbgladson
0
376
Member Avatar for lbgladson

I have an assignment to reverse the sequence of coins in a purse. I cannot use any methods from the Collections or Arrays Class. I have the following code but have no idea what to do from here to get the purse contents to reverse. [code] import java.util.ArrayList; public class …

Member Avatar for Taywin
0
164
Member Avatar for lbgladson

I have an assignment to create a class Purse and print the coins in the purse, reverse the sequence of the coins, transfer the contents of one purse to another, and compare to see if two purses have the same contents. I have the following code but the transfer is …

Member Avatar for Taywin
0
247
Member Avatar for lbgladson

I have a program to add coins into a piggy bank and calculate the total but my program is not asking how many of each coin and will not give me the total. [code] import java.util.Scanner; public class PiggyBankTester { public static void main(String[] args) { int pennies; int nickels; …

Member Avatar for sirlink99
0
1K