Appreciate your patience.
Type: Posts; User: toppcon
Appreciate your patience.
Sorry I didn't realize part of my code didn't make it through.
my code:
Main:
public class InvoiceApp
{
public static void main(String[] args)
{
String message;
double discountPercent=0;
If you look at my #7 post, you will see what output I get. Also, the copy/paste method here might leave some stuff behind. It compiles and runs on my machine.
Now type "n" and see what the formatted output does. Can you tell me if the setter method-calculate is right? Aren't setters void but have no parameters?
Can you tell me if I'm using the setter-calculate- right? Usually it's a void with no arguments right?
right, now hit "n" and look at output.
By "stopped" I mean they either are not being passed to getInvoice() or the output is not formatted right. After the calculate setter, the customerType and subtotal are still being passed and even...
My Code:
Main:
public class InvoiceApp
{
public static void main(String[] args)
{
String message;
Yes the program executed the way i expected it to.
The string output is the way i have to have it formatted
I'm not sure why blanks are being printed...thats what i'm trying to figure out.
I placed prinln's along the way to see what was happening, but there was nothing in the variables-blanks were printed. And no errors.
My output is not printing to the screen, I only get zero's. I ran a dummy out.print in the getCustType and the values of sCustomerType and subtotal were printing right. But when I call the getInvoice...
I am writing a program that you have to enter either "R", "T", or "C" for some code to execute. I have everything running but cannot figure out how to handle if a different letter is entered or a...
I need to declare private vars-not static, and need to load arrays then output them to the console. I get some funky output:
The Baker College Grade Standard is:
Grade@19821f 90-100...
Problem: I am trying to output different attributes of balls - golf, soccer, baseball.
I am trying the output to look like the following:
color = red and hardness = median and size = big
but...