I apologize. Fibonacci Sequence final project (Beginning Java forum at JavaRanch)
Type: Posts; User: Sylis
I apologize. Fibonacci Sequence final project (Beginning Java forum at JavaRanch)
Right, I did end up making a post at code ranch, and make a great deal of headway. I do however have another problem at the moment. I've added some exceptions and moved some stuff around in order...
I'm adding 2 to the variable inside the for loop because I've already got index 0 and 1 filled with the first 2 digits of the sequence. And they're used in the equation. The next index that needs...
So say the user inputs 5 for the amount of digits they wish to display of the fibonacci sequence it creates an array 0-4. This is what is displayed
1Exception in thread "main"...
The amount of indexes are set by the user. If they want to display the first ten numbers of the sequence then the array would have ten indexes. And all of them need to be printed. Hope that...
I'm having some trouble with my program for the final project.
My assignment is to take a user input of how many digits of the fibonacci sequence they wish to display, and then....display them....
I figured as much. An if statement for if the boolean value is true, would look into asking for user input again.
I'm creating a java program for an assignment that is supposed to take a test score 0-100, that throws an exception if the score entered is outside of that range. Once the error message is displayed...
how might one go about comparing strings with capitols to strings with non-capitols.
For example according to the instructions the Rosebud or RoSeBuD or any variation there of should be able to...
Thank you!
I guess I was googling the wrong stuff.
It's funny, I was thinking that about 6 hours ago and totally forgot that equals() method was a thing.
Thank you much.
Nothing on about adding an enter key actionlistener though? >.<
My assignment is to create a password validation applet, that compares user input to a specified set of passwords stored in an array.
For some reason, no matter what I type in, it gives me the error...
I do have another problem, when I print the code, everything prints correctly, except the interest.
For the checking accounts, it doesn't print at all, and for the savings accounts, it prints...
Thank you so very much! I had asked that question earlier, but I guess I ask so many questions at once usually, that people don't really want to respond, or whatever.
Thank you very much, that...
I've got this code for an assignment, and for some reason my output displays zero's instead of the information I've added to the constructors. Also, the checking account is also supposed to display...
You sir are a gentleman and a scholar.
I like that you gave me the answers I was looking for without just giving it to me. Made me think, and using my head, I figured it out, and instantly...
Well, I use the methods to set the customer number, customer name, order quantity, and unit cost from Order, and then computePrice from a shipped order class in order to calculate the four dollars...
Shouldn't it be the ShippedOrder method? The first set of dialog boxes set up the information, and then the computeOrder() in Order computes only quantity * price, and the computeOrder uses quantity...
Yes I have.
import javax.swing.*;
public class Order
{
private String customer, numb, quant, unitPrice;
private int custNumber;
private double orderQuant, unitCost;
public double total;
Thank you, I figured it out by using:
import javax.swing.*;
public class UseOrder
{
public static void main(String[] args)
{
Order anOrder = new Order();...
You mean to instead of creating three different classes I should just have one class with an Order and ShippedOrder method in the one class? The assignment is to create three classes I can't really...
I'm having some trouble getting this program to work, my assignment deals with inheritance, and I'm basically trying to call my methods in main in order to run them.... so here's what I've gotten so...
First off, I had an assignment last week, and was curious if I was reading to far into the assignment or assuming what needed to happen.
The assignment was:
The purpose of this assignment is to...
I know I should've included the errors exactly as they were, but they were very confusing to me for some reason, I ended up changing my entire program around. I have two classes. Here's the entire...
I have this assignment I need to do using an array. I get this error at the end of the line containing the array.
public class UseTaxPayer
{
public static void main(String[] args)
...