Programming

Programming questions? Ask a programmer for answers ASAP

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

Related Programming Questions
I need to read a txt file and create an object and store the
I need to read a txt file and create an object and store the specific numbers in an array to do a calculation then display it … read more
Kaiser
Kaiser
Computer Engineer I
Bachelor of Science in Mechanical Engineering
2,889 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
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
Bachelor of Technology
8,603 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
I need some help I have been trying this homework many different
I need some help I have been trying this homework many different ways and I am lost I am new to Java and this is the out first Homework. I know it takes some time to help and I am on a deadline. It is… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
I need help ASAP with my week 4 assignment in Java.
I need help ASAP with my week 4 assignment in Java. It involved an ArrayList The requirements are: Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and change… read more
Raj
Raj
SAP ABAP Consultant
Master's Degree
925 satisfied customers
Cat.java Class FileCreate a new class called Cat that includes
Cat.java Class File Create a new class called Cat that includes the functionality below The new class has the attributes of: name – type String age – type integer weight – type double breed - type Str… read more
jatechexpert
jatechexpert
Computer Software Engineer
Master's Degree
1,433 satisfied customers
A salesperson will continue to earn a fixed salary of $20,000.
A salesperson will continue to earn a fixed salary of $20,000. The current sales target for every salesperson is $120,000. The sales incentive will only start when 80% of the sales target met. The cur… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
I need a class to correspond with the following: /** *
I need a class to correspond with the following: /** * This is the tester class for a program that: * a) Stores and returns a username * b) Stores and returns an ID (first 3 letters of username plus r… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
My program below doesnt show any errors, but it wont run...
My program below doesn't show any errors, but it won't run... Any ideas? import java.util.Scanner; public class ScoreCalculator { public static void main(String[]args) {} static double employeeScore =… read more
Emanuel
Emanuel
Bachelor's Degree
15 satisfied customers
Laboratory 4 Assignment Cover Sheet Name __________Karen
Laboratory 4: Assignment Cover Sheet Name __________Karen Harkins_____ Date _____Aug 10, 2011__________________ Section _________________________________________ Fill in the following table showing wh… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
Identifying Errors For Questions 1-5, consider that inside
Identifying Errors For Questions 1-5, consider that inside the class Gift, we have already coded the following: public class Gift { private String description; private double price; private String occ… read more
Ramesh Patil
Ramesh Patil
Computer Software Engineer
Master's Degree
406 satisfied customers
i need help with inventory program part 2, my code compiles
i need help with inventory program part 2, my code compiles but im getting errors when i run it. project is due at midnight and im freaking out! please help! ok im running out of time, please answer m… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
Write a program that reads ten integers and displays them in
Write a program that reads ten integers and displays them in the reverse of the order in which they were read. This is dealing with arrays and this is what I have so far: public class arraysReversed {… read more
Ansh P.
Ansh P.
System Analyst
Bachelor's Degree
6,385 satisfied customers
Hey, I have this assignment due Monday May 3rd By MIDNIGHT.
Hey, I have this assignment due Monday May 3rd By MIDNIGHT. It is much easier than the previous question. I can pay you for this assignment. Here is the pdf : http://wikisend.com/download/607290/Lab_1… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
Ok Major Question Ok This Is The Inventory Program Part
Ok Major Question? Ok This Is The Inventory Program Part 1 And This Is The 1 I Did But It Has 2 Errors Do You Mind Helping Me On That Resource: Java: How to Program Due Date: Friday in the Individual … read more
Scott
Scott
MIT Graduate
Master's Degree
247 satisfied customers
i need some help with this java program i am writing for school.
i need some help with this java program i am writing for school. I am having trouble mainly with the methods and returning them..can someone look at it and help me out please… read more
Hirash Riyal
Hirash Riyal
Higher Diploma In IT
174 satisfied customers
Modify the Inventory Program so the application can handle
CheckPoint: Inventory Program Part 3 · Resource: Java: How to Program · Due Date: Day 7 [Individual] forum · Modify the Inventory Program by creating a subclass of the product class that uses one addi… read more
Expert
Expert
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

8,603 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