I didn't deny getting great advice. I'm just not grasping the subject matter the way I had hoped. I'm looking for what I think is a few lines of code that will make my program work. I just don't know...
Type: Posts; User: divebomb33
I didn't deny getting great advice. I'm just not grasping the subject matter the way I had hoped. I'm looking for what I think is a few lines of code that will make my program work. I just don't know...
I understand. I believe the mod suggested I do that. What I have so far shows no errors, however the output doesn't show the way I'm looking for-
import java.text.*;
import java.util.Scanner;...
Well I imported this-
import java.text.*;
I also added
DecimalFormat formattedDollars= new DecimalFormat("$#,##0.00");
I made the following changes but they still yield this output message
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: class...
Any help guys?
Here is what I have so far that is fully functional. All I'd like to do is possibly add-
import java.text.DecimalFormat;
import java.text.NumberFormat
in conjunction with what I already...
I also found this link which looked helpful but again don't grasp where to put code like this with my code
Make cents with BigDecimal - JavaWorld
Here's what I tried recently-
import java.util.Scanner;
public class Commission{
public static void main (String[] args){
Scanner kb = new Scanner(System.in);
double...
I've been trying to add the code mentioned but I'm struggling to put it in the right places.
The problem I'm having is each of you pointed out several techniques to help me get my desired results. I'm so new at this that I have no idea where the suggested code might go in conjunction to my...
Can either of you show me how I incorporate your suggested code into what I already have in my first post? Thanks in advance!
This looks extremely helpful. The only problem I'm having is where to place the code you described in conjunction with my code. Any help you could offer would be amazing!
Also my output looks like this-
run:
What is your fixed salary?
50000
Your fixed salary is $50000.0
With the current commission being 10% of total sales, your total annual compensation is...
A program I've been working on needs to calculate a number(salary), add a 10% commission to the salary and output to the user the total annual earnings. My programs gets those results, however the...