I have a very simple assignment which I’m a complete newbie and can’t seem to figure out in java.
——–
VERY IMPORTANT, I WILL NEED THE SOURCE .java code to this assignment and I also need you to put comments in the form of
// COMMENT EXPLAINING EXACTLY WHAT YOU ARE DOING
——–
The program I need for Location.java
There are 3 categories:
Petite:
Moyenne:
Grande:
In those 3 categories, they have products
Petite: pelle, arrosoir
Moyenne: scie, taille-haie, tondeuse
Grande: tracteur, tronconneuse
Each category has a price tag
Petite: $10/day
Moyenne: $20/day
Grande: $30/day + $20 security deposit
I need the program to work in the following way:
The cost of rental will need to be calculated in a way so that for example if I write:
java Location pelle 1 2 -> s.o.p will be “The price of location for the ‘pelle’ for 2 day(s) is 20 $”
java Location tondeuse 2 1-> s.o.p will be “The price of location for ‘tondeuse’ for 1 day(s) is 20 $”
java Location tracteur 3 1 -> s.o.p will be “The price of location for the ‘tracteur’ for 1 day(s) is 50 $”
** I ALSO NEED A VERIFICATION TO MAKE SURE THAT THERE ARE THREE ARGUMENTS args[0], args[1] args[2] in the entry**
For even an intermediate java programmer, this should be a piece of cake, but i need it right away, within the next 3 hours.
*Please remember to put comments explaining what it is that you are doing*
THANKS!!