Search:

Type: Posts; User: sternfox

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: A Loop statement and a switch statement issue

    Okay, I discovered that the issue is with the following:

    we are asked to use the following code to generate a unique customerID number.


    long customerID =...
  2. [SOLVED] Re: A Loop statement and a switch statement issue

    Here posting the entire process:


    *** ***
    *** Welcome to Cash for Metals Calculator!!! ***
    *** ***
    1. Create Personal Customer
    2. Create Commercial Customer
    3. Record...
  3. [SOLVED] Re: A Loop statement and a switch statement issue

    So the following is correct because account 123 does not exist.

    *** ***
    *** Welcome to Cash for Metals Calculator!!! ***
    *** ***
    1. Create Personal Customer
    2. Create...
  4. [SOLVED] Re: A Loop statement and a switch statement issue

    ok if I remove the if (trans != null) error



    public static Transaction recordTransaction(){

    System.out.println("Enter the customer ID to create the transaction > ");

    ...
  5. [SOLVED] Re: A Loop statement and a switch statement issue

    The problem that i am trying to solve in this situation is the following:
    the customer id is entered, and if the customer id is not matched in the array, the error read out in case 3 is generated...
  6. [SOLVED] Re: A Loop statement and a switch statement issue

    This is the part that is tripping me up. In addition I have the following helper method. Could I use it in this situation?

    // Helper method to determine if a customer exists
    public static...
  7. [SOLVED] A Loop statement and a switch statement issue

    I was given the following code by my prof.



    public static void main(String[] args) {

    Customer customer;
    Transaction transaction;
    double withdrawalAmount...
  8. Predicting the Outcome without a compiler **Not a Homework Question**

    I am trying to understand the out come of the following problem:



    public class Whatever {
    public static void main(String[] args) {

    for(int i = 1; i < 5; i++) {

    ...
  9. Replies
    1
    Views
    1,170

    [SOLVED] Coin Loop Selective Print Statement Problem

    This is a homework assignment and I am stuck and I have researched every book I know that talks about loops.
    I am required to print the loop at every 25th loop up to 500, i.e. 1-25th, 26-75th,...
  10. Replies
    4
    Views
    1,025

    Re: Guidance/Help with Code CleanUp

    Thank you and everyone else for all of your helpful suggestions and comments.
  11. Replies
    4
    Views
    1,025

    Guidance/Help with Code CleanUp

    First of all, yes this is homework and I already solved the problem, which required the programmer to write a program to determine if the digits in a three-digit number supplied by a user are all...
Results 1 to 11 of 12