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 assistance on some java hw can you guys help? I have
I need assistance on some java hw can you guys help? … read more
UgoA
UgoA
BA/BS
1,392 satisfied customers
Write a complete main method that does the following: 1.
Write a complete main method that does the following: 1. Takes 2 command line arguments, both integers. 2. If there are not 2 arguments, throw an IllegalArgumentException with an appropriate message. … read more
Hema Malini
Hema Malini
B Tech
610 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
How do I get to calculates the total annual compensation of
How do I get to calculates the total annual compensation of the salesperson … read more
George Sibiya
George Sibiya
PhD
372 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
Computer Software Engineer
Master's Degree
9,151 satisfied customers
Write the program in Java (without a graphical user interface)
Write the program in Java (without a graphical user interface) using a loan amount of $200,000 with an interest rate of 5.75% and a 30 year term. Display the mortgage payment amount and then list the … read more
teknosof
teknosof
Software Engineer
Master's Degree
18 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
Computer Software Engineer
Master's Degree
9,151 satisfied customers
Write a program that asks the user to enter 5 test scores.
Write a program that asks the user to enter 5 test scores. The program should display a letter grade for each score and the average test score. Write the following methods in the program: calcAverage … read more
lifesaver
lifesaver
Bachelor's Degree
5,463 satisfied customers
Write a program that asks the user to enter 5 test scores.
Write a program that asks the user to enter 5 test scores. The program should display a letter grade for each score and the average test score. Write the following methods in the program: calcAverage … read more
jatechexpert
jatechexpert
Master's Degree
1,337 satisfied customers
I wrote this program, but I having an issue, when I ask the
I wrote this program, but I having an issue, when I ask the user How many occupied rooms does the floor has and he tells me a negative number or a number greater than the amount of available rooms I n… read more
Emanuel
Emanuel
Bachelor's Degree
15 satisfied customers
What am I missing in this program /* This program is
What am I missing in this program?? /* This program is supposed to let the user input a number and then tell the user whether the number is XXXXX or EVEN */ import java.util.Scanner; /** * * @author P… read more
neelimark
neelimark
Embedded Software Engineer
Bachelor's Degree
441 satisfied customers
package payrollprogrampartone; I can only get this program
package payrollprogrampartone; I can only get this program to output the enter employee name,, After I enter the name it gives me an error.. enter employee name: ryan Exception in thread "main" java.u… read more
jeff
jeff
Software Developer
Master's Degree
153 satisfied customers
I pThis is a Java program issueThe program below is
I p This is a Java program issue The program below is suppose to except unknown numbers of positive integers form the user, and then display the average. It does not display the correct average I need… read more
Philip Chapman
Philip Chapman
Owner/Software Consultant
High School or GED
60 satisfied customers
teacher at a local elementary school has asked your company
teacher at a local elementary school has asked your company to create a program to perform a computation using two numbers input by the user. The user may choose to add, subtract, multiply, or divide … read more
Rafael Martins
Rafael Martins
Computer Software Engineer
449 satisfied customers
Does anyone know how to write this The program will then
Does anyone know how to write this: The program will then calculate a seven percent (7%) sales tax. Commission is computed based on the following: order amount $1 - $200 commission is 2%, order amount… read more
unavailable
unavailable
271 satisfied customers
I not sure what this means or do for (i 0; i 4; i++
I not sure what this means or do for (i= 0; i<= 4; i++ ) { for (int j= 1; j<= num; j++ ) System.out.print( "*"); System.out.printf( "\n");… read more
Hirash Riyal
Hirash Riyal
Higher Diploma In IT
174 satisfied customers
Write a program that asks the user to enter todays sales for
Write a program that asks the user to enter today's sales for five stores. The program should then display a bar chart(horizontally) comparing each store's sales. Create each bar in the bar chart by d… read more
MichalR
MichalR
Master's Degree
36 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

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