Search:

Type: Posts; User: bkd

Search: Search took 0.55 seconds.

  1. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    String t="t"; is just so it reads that input as t, what do i expect i really dont understand, then the }s i have removed all of them and put them at the end,they still act same, now is only the if...
  2. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    this is what i have now


    //
    import java.util.Scanner;

    public class courseWork {
    static int no_starter, no_mainCourse, no_desert, no_softDrink, no_coffee ;
    public static void...
  3. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    i really don't know how to do that, i have completely lost it
  4. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    Yes exactly. then if comparison is true then execute the nextstep.
  5. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    not an assignment statement, i meant literary it will take the response to know what to to do next, which is if t is been entered then the next thing is to ask the user of how many if not then skip...
  6. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    it must save that response in other to determine the last answers, and must execute the next step which is another question.
  7. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    ok, firstly it asks the user if he wants to order a starter if yes then it goes on to ask for how many starter he wants to order after her puts the number the program goes to the next and ask the...
  8. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    all i want to do is, if the program ask if i want t order starter the i press t, then it ask me to enter the number of staters i want, but if i press n then it jumps that and straight away ask me if...
  9. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    it seems alittle advance for me tho i checked through the API doc but i couldn't pull out anything as i'm not even sure what i'm looking for, pls help norm.
  10. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    oke i have change the method of using string to scan the string, but what operator should i use here "if (input == t)" coz i tried using this" if (input != t)" and it work but it doesont matter...
  11. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    this is the one that im currently working with, if u could just help me ajust it in such a way that i use the 'y' as input using the scanner instead of 1. And my if and else are too much and when the...
  12. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    that was the only error message it showed coz im using eclipse.
  13. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    this is the code that i was using input as string.


    //
    import java.util.*;

    public class Course_work {

    Scanner use = new Scanner(System.in);
  14. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    yh it is suppose to look like ask if the user wants to order starter if "yes" then enter the amount, but i tried using the scanner to enter input as y which will be yes but its giving me error each...
  15. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    oke now got it.:o
  16. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Re: Ugent pls help

    i don't really know how to do that. wrap my code how?
  17. Thread: Ugent pls help

    by bkd
    Replies
    33
    Views
    321

    Ugent pls help

    The owner of the ‘Lunch Café’ aims to sell daily a reasonably-priced three-course lunch to the local student community. To save costs, each day there is only a single choice of starter, main course...
Results 1 to 17 of 17