Search:

Type: Posts; User: Knowledge_Feeds_The_Mind

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    This is what the output should look like:

    "Please enter a date in the format mm dd yyyy: 12 99 2013
    The day value is dubious. Please try again.

    Please enter a date in the format mm dd...
  2. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    No. It still does not convert the date that I input, sigh, this is really troublesome it still give me this
    "Enter a date in the format mm dd yyyy: 12 11 1995, Enter another date? (yes/no) no"
    ...
  3. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    I changed it to "(monthValue < 1 || monthValue > 12)" Sorry about that.


    import java.util.Scanner;
    public class W10Assign9 {

    public static void main(String[] args) {
    Scanner...
  4. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    my bad, sorry. If this does not work, then I might have a bug in the program........




    import java.util.Scanner;
    public class W10Assign9 {

    public static void main(String[] args) {
    ...
  5. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    Here it is:
    Thank you for your help! :)




    public static void main(String[] args) {
    Scanner console = new Scanner(System.in);
    int monthValue;
    int dayValue;
  6. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    I do not know where to start...

    this is what it displays"
    Enter a date in the format mm dd yyyy: 13 111 111
    Enter a date in the format mm dd yyyy: 22 332 232
    Enter a date in the format mm dd...
  7. [SOLVED] Re: Problems With Throwing Exceptions in Program-Help Appreciated

    Yes. I would like the program to display: "The date you entered is November 20, 1981." When you enter: mm dd yyyy: 11 20 1981 (When a correct date is entered.) So basically it converts dates from...
  8. [SOLVED] Problems With Throwing Exceptions in Program-Help Appreciated

    Below is the code that I have now, there are some errors but I was wondering if you guys could offer me some guidance to finalize this program so that it is not as open ended. I do not really know...
  9. Help With GUI, TroubleShooting Retail Price Calculator.

    Before I start explaining what my problem is I would like to apologize for the length of the code, it is my first time doing a GUI Program.
    I have to create a GUI application where the user enters...
  10. [SOLVED] Re: Help with Multi-dimensional Arrays. Help needed urgently!

    Thanks, I finally solved my problem. I really appreciate all the help you have given me! :D :D
    If it had not been for your insight it probably would have taken me much longer, thank you so much...
  11. [SOLVED] Re: Help with Multi-dimensional Arrays. Help needed urgently!

    So, I solved it. Now I only need help with calculating the major diagonal



    public static double sumColumn(double[][] matrix, int column){

    int row;
    double sum = 0;
    //below is...
  12. [SOLVED] Re: Help with Multi-dimensional Arrays. Help needed urgently!

    this is the code where the summation is completed:
    Thank you for your assistance



    public static double sumColumn(double[][] matrix, int columnIndex){

    double sum = 0;
    //below...
  13. [SOLVED] Re: Help with Multi-dimensional Arrays. Help needed urgently!

    Thank you very much for the fast response. :)
    my output needs to look some thing like this. like this:

    "Enter a 3-by-3 matrix row by row:
    Row 1: 1 2 3
    Row 2: 5 6 7
    Row 3: 9 1 3

    The sum...
  14. [SOLVED] Help with Multi-dimensional Arrays. Help needed urgently!

    I am having trouble fixing and figuring out how to change my code. My out put is very off, and I was wondering if anyone could give me insight to why, maybe even pose a solution,

    "Enter a 3-by-3...
  15. Re: Help needed with reversing numbers entered (in Java).

    Thank you so much dicdic!:) I did not realize such a simplistic mistake. :eek:
    I truly appreciate your assistance!
    Thank you for helping me understand how to understand the foreign language of...
  16. Re: Help needed with reversing numbers entered (in Java).

    So I figured it all out, but there is a small hitch. The program prompts for 11 values, when it is supposed to prompt for only 10.......
    How do I fix this?



    This is how my code looks right...
  17. Re: Help needed with reversing numbers entered (in Java).

    So then how would i write it correctly? Thank you so much!!!!!
    Thank you for your assistance.
  18. Re: Help needed with reversing numbers entered (in Java).

    Drgy55, thanks so much B), this is so rad. Cannot believe that I did not notice this. I go by the name Vex, because it is shorter and easier :D

    My answer finally reverses!! There is a 0 though,...
  19. Re: Help needed with reversing numbers entered (in Java).

    It was my mistake for not specifying, I get the results (above) for every number I put in. It is as if those values are set in the array. I would like to know how to change it so, that when I input...
  20. Help needed with reversing numbers entered (in Java).

    I am having issues with my output and cannot figure out what is causing it. I have been struggling for 2 days now.. Any help appreciated
    Also if I can see how to calculate the minimum and the...
  21. Re: Write a class encapsulating the concept of a circle: Help Needed

    I finalized my code, but I cannot run it, the program says that there is no main class?
    "public static void main(int radius, int x, int y) {" I thought that this was my main class....
    Do you know...
  22. Re: Write a class encapsulating the concept of a circle: Help Needed

    So I sat down and reran the entire thing.
    I thought I had it but nope, did not happen :confused:



    public class NewCircle {

    public static void main(int radius, int x, int y) {
    ...
  23. Re: Write a class encapsulating the concept of a circle: Help Needed

    So I reworked the code and now I think I only have to find a way to integrate the second code into the first code






    //First Code

    import java.awt.Point;
  24. Re: Write a class encapsulating the concept of a circle: Help Needed

    I do not think I need to know exactly, put pretty close to it.
    Yes. "A toString method that prints out the location of the circle (the x, y coordinates of
    the Point) and the radius."



    ...
  25. Write a class encapsulating the concept of a circle: Help Needed

    Prompt: Write a class encapsulating the concept of a circle, assuming a circle has the following attributes: a Point representing the center of the circle, and the radius of the circle, and integer....
Results 1 to 25 of 38
Page 1 of 2 1 2