Programming

Programming questions? Ask a programmer for answers ASAP

Connect one-on-one with {0} who will answer your question

Related Programming Questions
Having a lot of trouble with the week 4 assignment. Modify
Having a lot of trouble with the week 4 assignment. Modify the Week Three Java application using NetBeans IDE to meet these additional and changed business requirements: •The application will now comp… read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
I can't get this program to work. // * PRG/420 /* @author
// * PRG/420 /* @author Jeneen */ package yearlycomp2;import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Scanner;public class YearlyComp2 { //main() method public static void main(String[] args){ SalesAgent2 salesobject = new SalesAgent2(); salesobject.pleasewait(); SalesAgent2 money = new SalesAgent2(); money.newSalary(); } } //Second Class /** * * @author Jeneen */ public class SalesAgent2 {//Variables double fixedCompensation = 50000; //Sets a fixed Salary double newSalary; //The total of the salesman salary and compensation double salesTarget = 120000; //Sets the sales target double salesIncentive = 0.80 * salesTarget; //Calculates 80% of Sales target for incentive double commissionRate = .15; //Sets the commission rate to 15% double accelerationFactor = .1875; //Sets the acceleration factor to 1.25 of 15% double salesOverTarget; //Calculates sales over the target for the accleration factor double acceleratedCommission; //Total of the accelerated commission double baseCommission; //Total of base commission double salesAmount; //Sales Amount Variable for table double maxSales = 1.50 * salesAmount; //Max Sales for table displaypublic void salesperson(){ Scanner input = new Scanner(System.in); do { //Ask user to enter annual sales amount System.out.print("Please enter your annual sales: "); while (!input.hasNextDouble()){ //Only numeric characters entered System.out.println("Only enter numeric values."); input.next(); } salesAmount = input.nextDouble(); } while (salesAmount <= 0); } public void totalCompensationCalculation(){ if (salesAmount >= salesIncentive && salesAmount <= salesTarget){ baseCommission = salesAmount * commissionRate; newSalary = baseCommission + fixedCompensation; } else if (salesAmount >= salesTarget){ salesOverTarget = salesAmount - salesTarget; acceleratedCommission = salesOverTarget * accelerationFactor; baseCommission = salesTarget * commissionRate; newSalary = fixedCompensation + acceleratedCommission + baseCommission; } else { commissionRate = 0; newSalary = 0; } } public void displayTable() { NumberFormat numberFormat = NumberFormat.getCurrencyInstance(); System.out.println("Total compensation: " + numberFormat.format(newSalary)); //Display Table System.out.println("Annual Sales: \tTotal Compensation:"); while (salesAmount <= maxSales) { System.out.println(numberFormat.format(salesAmount) + "\t" + "\t" + numberFormat.format(newSalary)); salesAmount = salesAmount + 5000; } }void newSalary() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }void pleasewait() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } … read more
Ingo U
Ingo U
Master's Degree
509 satisfied customers
Trying to write a java program comparing the salary and
Trying to write a java program comparing the salary and commission of twp sales employees...I have never programmed before … read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
I need to add a function in my existing application that
I need to add a function in my existing application that will compare the different input … read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
I need help with my Homework. I am very bad at understanding
I need help with my Homework. I am very bad at understanding Java. I have kinda written the first half of the assignment and will submit the class files. I need to use the fist half to complete the 2n… read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional
Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: •The application will now compare the total annual compensation of at leas… read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
A salesperson will continue to earn a fixed salary of $50,000.
A salesperson will continue to earn a fixed salary of $50,000. The current sales target for every salesperson is $80,000. · The sales incentive will only start when 80% of the sales target is met. The… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
"For ProLogic Only" Week 4 pain-Please post so I can compair
"For ProLogic Only" Week 4 pain-Please post so I can compair the code have it compiled just needing verification Here is the file already compiled last: http://www.mediafire.com/?5552nl9d3os8a10… read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
Can anybody help with a Java project that I have to do?
Can anybody help with a Java project that I have to do? The application will now compare the total annual compensation of at least two salespersons. It will calculate the additional amount of sales th… read more
Steve The IT Guy
Steve The IT Guy
Master's Degree
108 satisfied customers
Modify the Week Two Java application using Java Netbeans IDE
Modify the Week Two Java application using Java Netbeans IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improv… read more
jatechexpert
jatechexpert
Master's Degree
1,337 satisfied customers
PART 1 Write a Java™ application using NetBeans™ Integrated
PART 1 Write a Java™ application using NetBeans™ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson … read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
Modify the Week Three Java™ application using Java™ NetBeans™
Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: · The application will now compare the total annual compensation of at lea… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
To: Raj Hi Raj! I have another question this week. It deals
To: Raj Hi Raj! I have another question this week. It deals with the question you helped me with last week. I have to use that same file, but the following requirements need to be added: * The applica… read more
Raj
Raj
Computer Engg.
Master's Degree
1,290 satisfied customers
Modify the Week Three Java™ application using Java™ NetBeans™
Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: The application will now compare the total annual compensation of at least… read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
I have a new question for you. I need it answered by Saturday
I have a new question for you. I need it answered by Saturday night. If you could reply and let me know when you're ready to start working on it I would greatly appreciate it.… read more
Raj
Raj
Computer Engg.
Master's Degree
1,290 satisfied customers
i need help Write a simple commission calculation program using
i need help Write a simple commission calculation program using IDE. Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: • The… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
Can you help me again with my Java homework for this week?
Can you help me again with my Java homework for this week? It is due tomorrow, Monday, May 20 at 12 pm Arizona Time.… read more
LogicPro
LogicPro
Computer Software Engineer
29,117 satisfied customers
I have my first Java programming class and I am not a programmer.
I have my first Java programming class and I am not a programmer. I need someone that could write this for me because I just don't understand it. There are two parts or two seperate programs but the s… read more
jatechexpert
jatechexpert
Master's Degree
1,337 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Computer Software Engineer

29,117 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

The-PC-Guy

The-PC-Guy

Software Engineer

930 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

Rafael Martins

Rafael Martins

Computer Software Engineer

449 satisfied customers

Desktop, Mobile and Web Developer. 10+ years of experience. Creative solutions provider.

Ramesh Patil

Ramesh Patil

Computer Software Engineer

406 satisfied customers

MCA, 3+ years of experience in Asp.Net, C#, SSIS, VB.Net, Ms-SqlServer2005, MySql, Javascript,

Arty

Arty

Computer Software Engineer

377 satisfied customers

15+ years of programming, C, C++, Java, PHP, awk, ruby, shell, ASM, Forth, Raptor, M.A.R.I.E, Excel

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x