Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By JosAH

Thread: Simple Program that displays "PASSED/FAILED VOLTAGE TEST"

  1. #1
    DPdieciocho is offline Member
    Join Date
    Jun 2013
    Location
    Philippines
    Posts
    15
    Rep Power
    0

    Post Simple Program that displays "PASSED/FAILED VOLTAGE TEST"

    An insulation test for a wire requires that the insulation withstand at least 600 volts. Accept a test voltage and display the message “PASSED VOLTAGE TEST” or the message “FAILED VOLTAGE TEST,” as appropriate.

    would you mind to tell me what shall I do with this? I know that it'll let me output the voltage test if it is Passed or Failed but, am I going to use if-else statements? and will enter a value? or something like that. Thanks! :)

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,574
    Blog Entries
    7
    Rep Power
    21

    Default Re: Simple Program that displays "PASSED/FAILED VOLTAGE TEST"

    Duh, that's easy:

    Java Code:
    if (goesKABOOM(voltage))
       System.out.println("FAILED VOLTAGE TEST");
    else
       System.out.println("PASSED VOLTAGE TEST");
    kind regards,

    Jos
    kiddo likes this.
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,055
    Rep Power
    6

    Default Re: Simple Program that displays "PASSED/FAILED VOLTAGE TEST"

    Quote Originally Posted by DPdieciocho View Post
    and will enter a value?
    Try reading the problem description, it actually literally states Accept a test voltage.

Similar Threads

  1. Replies: 5
    Last Post: 03-14-2013, 11:39 AM
  2. Simple "Refresh" and "Forward" buttons
    By needSolution in forum AWT / Swing
    Replies: 3
    Last Post: 12-12-2011, 01:15 AM
  3. Binary Translator Displays "null"
    By Baconator in forum New To Java
    Replies: 1
    Last Post: 10-13-2011, 01:18 AM
  4. Replies: 3
    Last Post: 03-21-2011, 01:48 PM
  5. Need help with "a simple order entry program"
    By sentica in forum New To Java
    Replies: 6
    Last Post: 10-17-2008, 05:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •