Reputation: 48 Craftsman
- Active Members
- Active Posts:
- 255 (0.12 per day)
- 04-February 10
- Profile Views:
- Last Active:
- Dec 18 2015 02:37 AM
- OS Preference:
- Who Cares
- Favorite Browser:
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
Posts I've Made
Posted 17 Dec 2015Programming is just a concrete application of logic. If you can formalize your ideas into logical expressions, programming is just learning new names for things you already know. If you're not one of those people, you can try to learn for as long as you want; you'll memorize things, but you won't be able to extend on most of the concepts.
How beautifully put.
From when I was young I spent many hours playing around on the 64 and Amiga writing small codes and seeing what they would do, now I spend time learning in my spare time for something that may be far fetched; yet I still chase the dream.
For me transport logistics is my forte and the money is for my taking; but to code....
Yes, I have written a few programs but they are nothing worthy of been called a programmer.
That is a marvelous statement, I have never seen it written so well.
Posted 19 Feb 2014I would suggest doing some searching around before asking this, the internet has many examples of a credit card account.
But I suggest breaking it down to what has been asked:
You know you will have to have 7 customers
You know you need to ask the customer for 5 pieces of information,what can you use to get this information from a customer?
You know that if -1 is entered it will close the program.
and so on...
Then just work out what you will need to get each of these particulars done, prompt user for input and use the scanner class to save to a variable?
Get the pen and paper out and read it carefully, breaking it down makes it a lot easier than been overwhelmed with a full paragraph of blah.
This post may help you understand a bit more about some (but not all) of what you could do.
Posted 19 Feb 2014because intFuelgauge is an int, your handing it a string
I do not know enough about blueJ but from the image that is what has happened, change it to an int and see what happens, my though is it will run fine but?
Posted 19 Feb 2014referring to first post why not put your JOptionPane in a method and use a switch and if it is wrong have it call the JOptionPane again after displaying a default error message?
Posted 19 Feb 2014Have you tried making a little test harness to see what happens?
It looks like it will run but what are you passing as the object?
Car car = new Car(); Car car2= new Car("ford", "red", 10);
These should work.
But as salazar says more information for a better answer.
- Member Title:
- D.I.C Regular
- Age Unknown
- Birthday Unknown
- some page on the web
- Reading,Gardening,Computers,Cooking,Soccer,Anything tech.
- Years Programming:
- Programming Languages:
Learner of all languages.
Current main interest PHP,Java,Web Development
Anything and everything.
- Click here to e-mail me