Search:

Type: Posts; User: Messi5454

Search: Search took 0.13 seconds.

  1. Replies
    0
    Views
    761

    Help on Homework due at 12!!

    There is something wrong with my main. I cant call my getrating method without it showing an error



    (Note that this is Problem 7 on p.467 of your textbook.) Complete and fully test the class...
  2. Replies
    6
    Views
    397

    Re: Help centering the square inside

    the x and the y are set the same. except for the one that cant be the same and thats the square inside the circle


    filledObjects.square_x1 = 175;
    filledObjects.square_y1 = 175;
    ...
  3. Replies
    28
    Views
    1,502

    Re: Help on Homework

    did it just like you told me but it still isnt centered.

    // of the shapes
    filledObjects.square_x1 = 175;
    filledObjects.square_y1 = 175;
    filledObjects.square_width1...
  4. Replies
    6
    Views
    397

    Re: Help centering the square inside

    i have honestly been on this computer since 2 trying to figure it out. Yes i have done that. i have even seeked help from one of my geometry teachers in high school. and he said all the fourmals were...
  5. Replies
    28
    Views
    1,502

    Re: Help on Homework

    alright i did added at the end. but my square is still not centered in my circle
  6. Replies
    6
    Views
    397

    Help centering the square inside

    I emailed the instructor my code and he said the only thing i have to do is center my inner square .
    i attached picture
    5522



    import java.awt.*;

    import javax.swing.*;
  7. Replies
    28
    Views
    1,502

    Re: Help on Homework

    I emailed the instructor my code and he said the only thing i have to do is center my inner square . 55225522



    import java.awt.*;

    import javax.swing.*;


    // begining of the Gepmetry class
  8. Replies
    28
    Views
    1,502

    Re: Help on Homework

    i think there is a problem with finding my width and length with the largest square inside the circle.
    5520
  9. Replies
    28
    Views
    1,502

    Re: Help on Homework

    i see two squares and a circle?
  10. Replies
    28
    Views
    1,502

    Re: Help on Homework

    and what is wrong with the second square im drawing?
  11. Replies
    28
    Views
    1,502

    Re: Help on Homework

    wait, so what i'm doing its pointless? the diameter is not being inputted correctly?
  12. Replies
    28
    Views
    1,502

    Re: Help on Homework

    thank you but i have no idea what that meant.I know i dont sound very intellegent but As i said before our instructor didn't really teach us anything. I did however moved some codes around and now...
  13. Replies
    28
    Views
    1,502

    Re: Help on Homework

    okay so the proffesor extended our due date and gave us this code for the image of the that this is suppose produce and told us to work from there.
    Im inputing all my measurments and integers and...
  14. Replies
    28
    Views
    1,502

    Re: Help on Homework

    Okay so now how do i start to find the rest?
    How do i draw the circle and then find the area of the biggest square?


    import javax.swing.*;
    public class Hw2 {

    public static void...
  15. Replies
    28
    Views
    1,502

    Re: Help on Homework

    They haven't taught me anything about import javax.swing.*; or how to print the image of the circle or how to find the are of the smallest square in a circle? Our professor just kind of threw it at...
  16. Replies
    28
    Views
    1,502

    Help on Homework

    Got this so far

    import javax.swing.*;
    import javax.swing.JOptionPane;
    public class Hw2 {

    public static void main(String[] args) {
    // TODO Auto-generated method stub...
  17. Replies
    9
    Views
    478

    Re: Help! what im i doing wrong

    what about if i use this


    double Sum = 0,Average, Smallest= Double.POSITIVE_INFINITY, Largest=Double.NEGATIVE_INFINITY ,Range = 0,Value = 0;
  18. Replies
    9
    Views
    478

    Re: Help! what im i doing wrong

    Alright thanks you are very helpful. but if i set the largest number to a small number and the smallest number to a really large number wouldnt that be considered as hard coding?
  19. Replies
    9
    Views
    478

    Re: Help! what im i doing wrong

    Okay so i tried to put it in tags this time. Sorry if im not doing it right. but thanks for the all the help. now i did it but it only works if at least one of the inputs is a negative integer. How...
  20. Replies
    9
    Views
    478

    Re: Help! what im i doing wrong

    well when i write run the application it doesnt tell me the correct average or the maximum or the minimum or the range. and i apologize that was my first post ever and i am two weeks into my freshman...
  21. Replies
    9
    Views
    478

    Help! what im i doing wrong

    Write a Java program that asks a user to input a number of values of type double and then prints:

    the average of the values
    the smallest of the values
    the largest of the values
    the range, that...
Results 1 to 21 of 24