-Venti Caramel Java Chip Frapp with two (or double??) extra shots hazelnut.?? and can i have it double bleended?
(i never tried to put extra shots on my frapps :) i would love to try)
Whats the exact way to order this kind of drink? i dont like the barista correcting me. lol
please tell me if u know :)
and dont say to JUST ASK THE BARISTA.
what more extra shots i could add on my drink to make it more yumm?
whats the different extra shots i could add on frapps drinks?
Here are the constructors I have- but I get the error message that "The public type ScoreKeeper must be defined in its own file". What am I doing wrong?
public class ScoreKeeper
{
private int numRight- numWrong- numGuessed- bestScore- meanGuess- gamesPlayed;
public ScoreKeeper()
{
numRight = 0;
numWrong = 0;
numGuessed = 0;
bestScore = 0;
meanGuess = 0;
gamesPlayed = 0;
}
public ScoreKeeper(FileManager f)
{
numRight = 0;
numWrong = 0;
numGuessed = 0;
bestScore = f.getBestScore();
meanGuess = f.getMeanGuess();
gamesPlayed = f.getGamesPlayed();
}
I am having 4.5 years of experience in java/j2ee related technologies. Currently i am working in an MNC in India.
I am resident of India.
I have a 150 gallon tank. I just bought some java ferns- swords- and anubias.
What is wrong with this code
http://www.paste-it.net/public/u601cb4/
The problem seems to be with the line
Beginning frame = new Beginning();
but i don t know why.
import java.util.Scanner;
public class CalCommission {
public static void main(String[] args){
int sales;
Scanner sc = new Scanner(System.in);
System.out.println("sales: ");
sales = sc.nextInt();
double Commission_Rate;
System.out.print("Commission_Rate: ");
Commission_Rate = sc.nextDouble();
double Commission;
Commission = Commission_Rate * sales;
System.out.println("Commission: " + Commission);
System.out.println("Commission_Rate: " + Commission_Rate);
if (sales == 2000){
Commission_Rate = 0.02;
}
else if (sales >= 2001 && sales <= 4000) {
Commission_Rate = 0.04;
}
else if (sales >= 4001 && sales <= 6000){
Commission_Rate = 0.07;
}
else if (sales > 6000) {
Commission_Rate = 0.10;
}
System.out.println("Commission: " + Commission);
}
}
Write a program to calculate the commission for a salesperson- given the amount of sales. The table below summarize the sales against commission rate. (Commission = Commission rate * total sales).
Sales:...........Commission Rate
<= 2000........0.02
2001-4000......0.04
4001-6000......0.07
>6000.............0.10
something is wrong with the output..
output:
sales:
6500
Commission_Rate: 0.1
Commission: 650.0
Commission_Rate: 0.1
Commission: 650.0
i don t want the commission_rate to appear there as if it appears that i wld have to input a value to it...
No comments:
Post a Comment