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.

~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for kayleigh0411

I am trying to make a calculator, but I can not seem to figure out how to get the = operation to work. Everything else seems to be working fine, but I am just really struggling with the =. Any guidance in the right direction would be super helpful! import …

Member Avatar for JamesCherrill
0
1K
Member Avatar for kayleigh0411

I am trying to use a hash set to do a Monte Carlo analysis of the Birthday Paradox. Here is my pseudo code: Set number of collisions to zero Loop (10 to100 by 10) Loop: Generate a birthday. (use 1-365) See if it is already in the set. If it …

Member Avatar for JamesCherrill
0
2K
Member Avatar for kayleigh0411

I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as type double. My program is compiling with no errors, however the standard deviation is incorrect. It is outputting the standard …

Member Avatar for Traevel
0
929
Member Avatar for kayleigh0411

Everything is working fine in my program with no compliling errors. However, when I go to list the data, it writes it twice. I can't figure out what is wrong in my code. #include <stdio.h> #include <string.h> struct inventory { int number; char toolName[15]; int quantity; double price; }; int …

Member Avatar for kayleigh0411
0
159
Member Avatar for kayleigh0411

I am creating a doubly linked list and printing a backwards function. Everything is working great in my code, but when the function is printed in reverse, I need it to say NULL at the end, as it does going forward. When I put puts("NULL") (line 193) it splits up …

Member Avatar for kayleigh0411
0
274
Member Avatar for kayleigh0411

I am trying to implement a test program to describe what this function does: int mystery( const char *s1, const char *s2 ) { for( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ) { if( *s1 != *s2 ) { return 0; }//end if }//end for return …

Member Avatar for rubberman
0
301
Member Avatar for kayleigh0411

My program compiles with no errors, but when I try to use it, the results do not show up and there is an error. Please help!!! import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.*; public class RetailSales extends JFrame { // declarations Color black = new Color(0, 0, 0); Color …

Member Avatar for kayleigh0411
0
330
Member Avatar for kayleigh0411

I am trying to make a program that will tell how much a ticket costs and what the admission status is for a movie based on the age of the person. For ages 1-4 and 55 and up, it is $0.00 and "Free". For ages 5-12 it is $4.25 and …

Member Avatar for stultuske
0
153
Member Avatar for kayleigh0411

I need to make this program GradeCalculator.java, and I can't figure out what is wrong with it. I'm really struggling, could someone please help! Thanks!! In the GradeCalculator.java program the user clicks the Enter button. The first input is a JOptionPane that asks the user, “Number of score to be …

Member Avatar for stultuske
0
183
Member Avatar for kayleigh0411

I have to create a program that will calculate the the average miles per tank and the cost to fill tank of a car. The inputs are tank capacity, miles per gallon, and price per gallon, the outputs are average miles per tank and cost to fill tank. I have …

Member Avatar for Tarek_2
0
202
Member Avatar for kayleigh0411

There are no errors or anything in my code, and the program runs and works. However, when I only enter a value in one of the text fields to test the error message, it enters "0" in all of the text fields below it. How can I get it so …

Member Avatar for stultuske
0
277
Member Avatar for kayleigh0411

There are no errors when I compile the program, but when I run it and use the "Enter" or "Clear" buttons, they do not work. ----jGRASP exec: java IncomeTax Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at IncomeTax.enterJButtonActionPerformed(IncomeTax.java:182) at IncomeTax$1.actionPerformed(IncomeTax.java:125) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6525) …

Member Avatar for stultuske
0
2K