Search:

Type: Posts; User: robertsbd

Page 1 of 2 1 2

Search: Search took 0.23 seconds.

  1. Replies
    8
    Views
    1,287

    Re: help w/ PI Math java program

    ah..good shot man thanks
  2. Replies
    8
    Views
    1,287

    Re: help w/ PI Math java program

    but it never showed the output of what the value of I is for PI to = 3.1419 or lower
  3. Replies
    8
    Views
    1,287

    Re: help w/ PI Math java program

    alright i updated my code w/ a for loop and believe im getting some where


    public class Assign3_Roberts {
    public static void main(String[] args)
    {
    for (int i = 100; i <= 1000; i += 100) {...
  4. Replies
    8
    Views
    1,287

    Re: help w/ PI Math java program

    alright here is my updated code but still not sure how to calculate the pi when i =200,300, etc

    also i tried to work on the 2nd part of my code


    public class Assign3_Roberts {
    public static...
  5. Replies
    8
    Views
    1,287

    help w/ PI Math java program

    im currently in entry level java class and need help with a code..here are my instructions

    Mathematicians define the constant PI to be
    PI = 4 *( 1 - 1/(2*2-1) + 1/(2*2+1) - 1/(2*4-1) +...
  6. Re: can someone tell me if this looks right??

    alright here is my updated code..and my out put will be posted at the bottom...getting the correct results just tell me if I am on the right track thanks


    import java.io.*;
    public class...
  7. can someone tell me if this looks right??

    these are the instructions that i was given

    Write a program that calculates the area of a circle from its radius. The radius will be an integer entered via the keyboard.
    Use this formula : area =...
  8. Re: help w/ storing/scanning numbers in two dimensional arrays

    not sure is this is any better here is what i changed


    import java.util.Scanner;
    import java.io.*;


    public class Assign10_Roberts{
    public static void main(String[] args){
  9. Re: help w/ storing/scanning numbers in two dimensional arrays

    here is my updated code and errors


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

    //input Scanner
    Scanner input=new Scanner(System.in);

    int midTerm1=0;
  10. Re: help w/ storing/scanning numbers in two dimensional arrays

    ok here is my updated code and errors



    import java.util.Scanner;
    import java.io.*;


    public class Assign10_Roberts{
    public static void main(String[] args){
  11. Re: help w/ storing/scanning numbers in two dimensional arrays

    heres the errors im getting


    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Duplicate local variable i
    j cannot be resolved to a variable
    Duplicate local...
  12. help w/ storing/scanning numbers in two dimensional arrays

    have a assignment that we have to accomplish the same work as in a previous assignment except use two dimensional arrays... this is my previous assignment

    A Computer Technology Instructor has a...
  13. Re: help w/ storing/scanning numbers in arrays

    also, trying to submit this assignment within and hour so a quick response is greatly appreciated..thanks

    i updated my code and while im not getting the same error its only allowing me to enter 3...
  14. Re: help w/ storing/scanning numbers in arrays

    ok i changed that..thanks, but im still getting the same error..here's my updated code



    import java.util.Scanner;
    import java.util.Arrays;

    public class Assign9_Roberts

    {
  15. Re: help w/ storing/scanning numbers in arrays

    ok here is my updated code...when i run it, it prompts me to enter a grade and when i do i receive this error:

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10
    at...
  16. help w/ storing/scanning numbers in arrays

    these are my instructions
    A Computer Technology Instructor has a small class of 10 students. The instructor evaluates the performance of students in the class by administering 2 midterm tests and a...
  17. Replies
    12
    Views
    2,464

    Re: help w/ conversion of degrees(CtoF, FtoC)

    i think im more in the ballpark in what the assignment says..my errors are coming in the output


    import java.util.Scanner;

    public class Assign8_Roberts{

    //Converts between CandF
    private...
  18. Replies
    12
    Views
    2,464

    Re: help w/ conversion of degrees(CtoF, FtoC)

    ok i've changed my program around and while im getting the correct results, im not sure if i have it designed the way the assignment says


    public class Assign8_Roberts{

    public static void...
  19. Replies
    12
    Views
    2,464

    Re: help w/ conversion of degrees(CtoF, FtoC)

    yeah im using eclipse, ill give it a try when i get home..i just upgraded from vista to 7 so idk if that has anything to do w/ it
  20. Replies
    12
    Views
    2,464

    Re: help w/ conversion of degrees(CtoF, FtoC)

    ok sorry about my previous rant..i apologize
    but when i run the program, the output is the same as the output of another assignment on my workspace
  21. Replies
    12
    Views
    2,464

    Re: help w/ conversion of degrees(CtoF, FtoC)

    here's my updated program..when i run it, it runs previous assignment that i've done instead of this one so something isnt right


    import java.util.Scanner ;

    public class Assign8_Roberts{

    ...
  22. Replies
    12
    Views
    2,464

    help w/ conversion of degrees(CtoF, FtoC)

    here is what we're supposed to do
    This assignment is a Celsius to Fahrenheit and Fahrenheit to Celsius temperature conversion program.

    Write a class that contains the following...
  23. Replies
    8
    Views
    1,615

    Re: help using for while loop

    bump........
  24. Replies
    8
    Views
    1,615

    Re: help using for while loop

    ok i changed from !=0 to >=0 but when i enter a negative number i get this
    Exception in thread "main" java.lang.ArithmeticException: / by zero
    at Assign7_2_Roberts.main(Assign7_2_Roberts.java:26)
  25. Replies
    8
    Views
    1,615

    Re: help using for while loop

    im working on the do-while loop assignment and the output "enter a number that is positive or zero" doesnt end

    heres my code



    import java.util.Scanner ;

    public class Assign7_2_Roberts{
Results 1 to 25 of 44
Page 1 of 2 1 2