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
~12.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for gabec94

Hi, I just finished up AP Computer Science a few weeks ago and decided to write an app that allows me to quiz myself with vocab words and definitions, it works fine while I'm running it in IDE, but when I make it a JAR it refuses to open (I'm …

Member Avatar for gabec94
0
152
Member Avatar for gabec94

So I'm practicing recursion and trying to write a 'floodfill' program. The program creates a picture array with a bounded region (one of the boundaries should be the edge of the array), prints the array, flood fills a certain cell a certain color, and then prints the array a second …

0
66
Member Avatar for gabec94

Hi, I am trying to write a binary search. The main method randomly makes an array of 1 mil int's, and the binary search returns if an entered int is in the array, but I seem to be having trouble getting it to work, I've been working on it for …

Member Avatar for gabec94
0
112
Member Avatar for gabec94

for those of you not familiar with the rules they can be found [URL="en.wikipedia.org/wiki/Conway's_Game_of_Life"]here[/URL]: i am sort of new to java and i am trying to write the game of life, i have got the board made and how to randomly assign each cell a true or false (living or …

Member Avatar for gabec94
0
4K
Member Avatar for gabec94

hi! i have written a program that takes a random number from 0-999, 10000 times. I have the program calculating how many times each number comes up randomly, and finds the mode. But my program doesn't include how to find multiple largest numbers, ex. 2 and 4 each come up …

Member Avatar for gabec94
0
233
Member Avatar for gabec94

Hi I am trying to write a function [I]password_input(prompt, password)[/I] that will repeatedly ask for a password using the given prompt until the given password is entered. I have testing code, but I am completely lost upon how to do it and where to begin. This is the testing code: …

Member Avatar for Flameass
0
115
Member Avatar for gabec94

I am trying to write a program that calculates the value of pi from the infinite series of pi = 4 - 4/3 + 4/5 - 4/7 + 4/9...etc. As you can tell, the numerator stays at 4, while the denominator goes up incrementally in odd numbers, if the program …

Member Avatar for gabec94
0
1K
Member Avatar for gabec94

Hi, does anyone know what is wrong here? The program is supposed to find the largest number entered, and the 2nd largest number entered. The process for assigning the 2nd largest is not working, I do not think I am evaluating it correctly, and suggestions? [code=java] package random; import java.util.Scanner; …

Member Avatar for masijade
0
233
Member Avatar for gabec94

Hi Im trying to write simple miles per gallon program, I have gotten every part so far, but I cannot figure out how to "calculate and display the miles per gallon obtained for each tankful and print the combined miles per gallon obtained for all tankfuls up to this point." …

Member Avatar for gabec94
0
899
Member Avatar for gabec94

Hi, Im trying to write a program of a salary from a textbook problem, but am having a hard time. Hopefully you can get the gist of the program, I want it to keep asking for items of what the "salesperson" has sold, until an invalid item is entered, where …

Member Avatar for gabec94
0
75
Member Avatar for gabec94

I am writing a box program, with various extras. I understand that proper coding requires properties to be private, but I now need to add to this program getTotalEdgeLength, getSurfaceArea, and getVolume methods. Would I put these methods in the main class? I do not know a way to only …

Member Avatar for gabec94
0
104
Member Avatar for gabec94

Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is …

Member Avatar for Taniotoshi
0
553
Member Avatar for gabec94

Hi, I am trying to write a connect four program in python, which I am not very experienced at. This is what I have so far: [Code] row7 = [' ', ' ', ' ', ' ', ' ', ' ', ' '] row6 = [' ', ' ', ' …

Member Avatar for lllllIllIlllI
0
136
Member Avatar for gabec94

I am writing a program that accepts a sentence and then prints out the longest line, this is what I have so far, but I am lost on what the x variable should be equal to. Any help is appreciated, thanks. sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in range(splicedsent[1:])>splicedsent[0]: …

Member Avatar for gabec94
0
4K
Member Avatar for gabec94

I am trying to write a program that shows the longest word from an input . This is what I have so far, I am not sure what to set x equal to, or if that is even right: [CODE]sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in len(splicedsent[1:])>splicedsent[0]: longestword=x else: …

0
71
Member Avatar for gabec94

I am a freshman in highschool and have just started learning Python. This week I have an assignment on while...for...and lists. I have tried this problem and this is what I got so far, I'm not sure if it is correct at all: start=float(raw_input("Enter the starting value:")) end=float(raw_input("Enter the ending …

Member Avatar for stephendoyle75
0
84