Hi I am trying to pass information from one method in to a 2 dimensional array any help is appreciated.
import java.io.PrintStream;
import java.util.Scanner;
public class Survey {
...
Type: Posts; User: mstratmann
Hi I am trying to pass information from one method in to a 2 dimensional array any help is appreciated.
import java.io.PrintStream;
import java.util.Scanner;
public class Survey {
...
Ok here is the code!!
public WebHostOrder14() {
WebHost webHost;
double average;
ShippingData shipping;
ShippingData highest;
ShippingData lowest;
Hi I am trying to finish a simple program up and having a few issues with the code and the output. Here is my output!
Welcome to the Web Host Ordering System
Please enter the price of the new...
I have got it to work for the most part however I now get this as my output! Any suggestions on why my loop does not continue to run?
run:
Welcome to the Web Host Ordering System
Please enter...
I guess not, I just see the one I sent you in it if it is not to much trouble could you look over the WebHostOrder14 class and correct me if I'm wrong?
If I am not mistaking WebHost webHost; is what you are asking about right?
Ok I see the confusion now because shipping is defined in public class WebHostOrder14 as well as highest and lowest, however highest and lowest is also defined in the overloaded constructor in...
WebHost
code is posted in post 1
shipping
highest
lowest
I guess I am not following what your asking I am sorry the code has worked until I added this new step and it has all been tested up to this point I guess the easiest way to explain what I need to do...
Yes as far as I understand I need to use printf() to display the output. I need to display the highest input value and the lowest inputed value, also I need to display the accumulated total of the...
In the computeShippingCharges() method I need to display total shipping, highest charge, and the lowest charge. I added to the WebHost() class I do not know if that is correct I am lost on this one!
I am working on a project where I need to return 3 values I understand I can only return one using a method alone! So I need to add 2 instance variables, that will return the other 2 values. Can...
I am sorry could you please give me an example; I do not understand like I said I am a newbie!
sorry autocorrect will respond in 30 minutes from my work
--- Update ---
Welcome to the Web Host Ordering System
Enter 0 to end
Please enter the price of the new package: $
150
Please...
at the end of the loop at Justins no option to repeat in account all the inputs for the loop not just the price part of the loop
I need to ask if the user wants to add another product receive a yes or no and run the loop again? Also I need to count the products and add the prices together to figure an average?
private...
I changed the text color of the "while" section
do {
System.out.print("What will be the product ID: ");
while (!scanner.hasNextInt()) {
...
when I run the code this is the error I am getting
run:
Welcome to the Web Host Ordering System
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return...
Like I said I am new at this and I found the do{....}while{.....scanner.next();} online for validation
The error I am getting says "while expected" when I try to close the do statement
I am trying to validate that a user input valid information at the prompt but I keep getting errors please help!
Here is my code:
private double computeAverageSales() {
WebHost...
Thanks for the help I was finally able to finish debugging my code and now I can move on with the programming. \:D/ I was wondering how would I go about connecting my programs to a database?
Here is my code
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package payroll;
/**
*