jeff cantrell

Ranch Hand
+ Follow
since Sep 23, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by jeff cantrell

Junilu Lacar wrote:

jeff cantrell wrote:right I have seen that work in netbean with the classes.  I will try it.  But am I right with having to have them all work together with week two.


I don't believe you correctly understood what is being asked of you.

The requirements say:
A salesperson will continue to earn a fixed salary of $50,000

That change you made, fixedSalary = 100000, is direct contradiction to that requirement.

The requirements say:
Sample Table: Assuming a total annual sales of $100,000, the table would look like this:

Look carefully at your code for SalesPerson for something that represents the annual sales.



So you are saying that I changed that wrong thing and it should stay at the 100,000.  Also I understand that it is my job to find how to connect them dont I use some kind of command to call them to work or something like that.
8 years ago
this is what comes out when I run it no table or anything like it should..


The Salesperson earns a fixed monthly salary of $4166.666666666667.
The Salesperson earns a fixed annual salary of $50000.0.
The Salesperson will receive a commission of 5%.
Enter annual sales: 125000
The annual sales of the salesperson is $6250.0 using a 5% commission.
The total annual compensation of the salesperson is: $56250.0.
BUILD SUCCESSFUL (total time: 3 seconds)
8 years ago
this is how I set it up and it only runs how it did last week only the commissioncalculation portions will run the rest of the classes will not run with the program.


8 years ago
Ok if I was to do that where would I put them...
8 years ago
right I have seen that work in netbean with the classes.  I will try it.  But am I right with having to have them all work together with week two.
8 years ago
there was one portion i had to change in my code due to it having 100000 instead of the actual 50000 for the fixed salary

}
        fixedSalary=50000;// set fixed salary is 50000$
       
8 years ago
I thought I had to combine the two.  in order for them to work but i may have read this wrong I may just need the two classes now.

Modify the Week Two Java application using NetBeans IDE to meet these additional and changed business requirements:
The company has recently changed its total annual compensation policy to improve sales.
A salesperson will continue to earn a fixed salary of  $50,000. The current sales target for every salesperson is $110,000.
The sales incentive will only start when 80% of the sales target is met. The current commission is 5 percent of total sales.
If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.5.
The application should ask the user to enter annual sales, and it should display the total annual compensation.
The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson's annual sales, until it reaches 50% above the salesperson's annual sales.
Sample Table: Assuming a total annual sales of $100,000, the table would look like this:

Total Sales
Total Compensation
100,000
<<Program calculated value>>
105,000
<<Program calculated value>>
110,000
<<Program calculated value>>
115,000
<<Program calculated value>>
120,000
<<Program calculated value>>
125,000
<<Program calculated value>>
130,000
<<Program calculated value>>
135,000
<<Program calculated value>>
140,000
<<Program calculated value>>
145,000
<<Program calculated value>>
150,000
<<Program calculated value>>
The Java application should also meet these technical requirements:
The application should have at least one class, in addition to the application's controlling class.
The source code must demonstrate the use of conditional and looping structures.
There should be proper documentation in the source code.
8 years ago
I really think it needs to be these three codes added together some how and I dont know how to add them together.









8 years ago
here is the code for my week 3 assignment.  I have a driver class and a salesperson class that are going to be separate code classes from my understanding if i'm correct.  They each have their own page for their class.  away from the commissioncalculation1 and the driver and salesperson classes will make the table show up but then the commissioncalculation portion will not be a part of that as well.


this is the Driver calculator


then this is the Salesperson class

8 years ago
This is week 2s assignment that I did my teacher said that it was ok for the assignment I seen some post on here that said I needed to change some things but I need some help understanding what to change.  in order to get my week 3 assignments to work with this assignment.

8 years ago
I barely got what I had I really don't understand any of it I see that it has to be in different classes which puts them on different pages when you are using netbean.  So lets start with the code that I had from week 2 and fix it if we can salvage it to make sure that it is correct even though week two is done.  I want to be able to combine week threes with week twos I think I have week threes now If you can take a look at what I have for week three I had a little extra help on three.  Now I am having trouble combining it with two.
i will post the two weeks on the next couple of threads so you can tell me what is wrong with them
8 years ago

Junilu Lacar wrote:

jeff cantrell wrote:I did this for week two and this is what I came up with and it is correct for the assignment I am struggling with the table portion for week three which is what the assignment I ask questions about is added on to this.


jeff cantrell wrote:this was week 2's assignment question
...
The Java application should meet these technical requirements:
The application should have at least one class, in addition to the application's controlling class (a controlling class is where the main function resides).
There should be proper documentation in the source code.


One fundamental problem is that you think your Week 2 submission was correct but it actually isn't. I have often railed against the way students are taught these days and this is just another prime example of the kind of problems I see in the quality of instruction. It's all giving without proper guiding. You're (hopefully) given a lot of material to digest but you're not guided on the right ways to do things.

Here are the problems with your week II solution:

1. All your code is in the static main() method. This makes what you wrote more of a script, not a proper Java program.

2. You were required to "have at least one class in addition to the application's controlling class" which you do not have. Again, this is because all your code is jammed into one place: the main() method of what basically should be your "controlling class".

3. Because you failed to provide an additional class, I doubt you understand what the requirement aims to teach. I tried to explain what you needed to do in the previous replies that I posted. I realize that you probably looked at those long posts and your eyes glazed over but those are some of the things that can help you understand the goal of the requirement. I tried to give simple examples to hold your interest but the concepts are not trivial and you really need to study those examples and see how everything fits together. IMO, understanding what I tried to explain there would actually help you move forward.

4. I think #3 because you think you can just add on to what you did in week II to get a solution for week III. If you tried hard and long enough, you might succeed in producing the desired output but if you stay on the trajectory that you're on right now, the resulting code will still not meet the technical requirement and it will be a big mass of code that's hard to understand, otherwise known as a Big Ball of Mud.

I asked whether you were willing to throw away most of the code that you wrote before and basically start over with the pattern I gave you. It seems like you're not inclined to do that though, which is fine but a little disappointing. Good luck.







I am willing to do what ever it takes to get this done if I have help I am so new at writing all of this java it is very confusing to me and very hard I am not use to doing all of this programming without a book handy to me.  if you could please help me with getting it done I am willing to start fresh.  I have until monday to get it done but I have to turn it in to my group by friday which I can always have them do it later I can explain why.  thanks everyone for your then help
8 years ago
Or do you think that this would be good enough not to have to put week 2's with week 3's
8 years ago
I think this is what he is looking for can you give me some input on how to add it to my other code.


8 years ago