Yes if you don't mind that would be great.
Type: Posts; User: mstratmann
Yes if you don't mind that would be great.
I need help figuring out the best way to write a program that would read an existing inventory file (which is for my online store) and a new inventory file of around 10000 lines (my physical...
I have a problem with loops and arrays. I need to gather an int response between 1 and 5 and store it in to the however it will accept all ints plus after it reaches question 10 it just repeats.
...
That is what I thought the variables is exactly what my instructor told me to use.
Also you are correct originally I used String questions[] = new String[10], which seemed to work but as I said...
/*
* Author: Thomas Stratmann
* Course: IT152
* Date: Sep 2, 2013
* Program: IT152
* Phase 1 Individual Project, Customer SurveyOld
*/
public class SurveyTest24 {
I have typed this code exactly the same way on my last program and now I am getting the following error!
Exception in thread "main" java.lang.NullPointerException
at...
I have ran a test and this is what I am getting
run:
Please enter a question!
3
Please enter a question!
4
Please enter a question!
5
Please enter a question!
Hi I am confused and stuck on this I have a method enterQuestions() that uses a String array to hold 10 questions for a survey. However I also need to display these 10 questions and then store the...
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...