Search:

Type: Posts; User: baueml01

Search: Search took 0.35 seconds.

  1. Replies
    6
    Views
    3,129

    Re: Conversions Between Celsius and Fahrenheit

    What I have finished so far will not compile in cmd.
  2. Replies
    6
    Views
    3,129

    Re: Conversions Between Celsius and Fahrenheit

    ok here is the whole question in the book:

    (Conversions between Celsius and Fahrenheit) Write a class that contains the following two methods:
    //Converts from celsius to fahrenheit
    public static...
  3. Replies
    6
    Views
    3,129

    Re: Conversions Between Celsius and Fahrenheit

    //Michael Bauer Exercise 5.8
    public class ConversionsBetweenCelsiusAndFahrenheit{
    public static void main(String[] args){
    for(double celsius=40; celsius<=31.0; celsius--){
    ...
  4. Replies
    6
    Views
    3,129

    Conversions Between Celsius and Fahrenheit

    Ok, I am trying to write code to convert both celsius to fahrenheit and fahrenheit to celsius. I have to use the two methods public static double celsiusToFahrenheit(double celsius) and public static...
  5. Replies
    9
    Views
    847

    Re: Bubble Sort help

    Ok I hope and think I solved the previous 8 errors but now I am getting 1 error. It is a class, interface, enum expected error. Here is my code that I have so far and I will follow it with what cmd...
  6. Replies
    9
    Views
    847

    Re: Bubble Sort help

    Ok when I compile my program now it is giving me 8 errors within the [B]public static void bubble_sort( int a[], int n){ line. I am confused as to why this is doing this. All the errors are illegal...
  7. Replies
    9
    Views
    847

    Re: Bubble Sort help

    Does anyone have any idea what is wrong with my code? I stayed up till 1:30am last night searching on the internet and looking in my school book and I just can't figure the problem out. Please help!
  8. Replies
    9
    Views
    847

    Re: Bubble Sort help

    mport java.util.Scanner;
    public class Homework5{
    public static void main(String[] args){
    Scanner input= new Scanner(System.in);

    System.out.println("Enter number of students: ");

    int...
  9. Replies
    9
    Views
    847

    Bubble Sort help

    I have to creat a bubble sort program for homework in my programming 1 class. My requirements are to write a program that allows the user to enter in the number of students, the students name, and...
  10. Replies
    7
    Views
    4,012

    Re: Decimal to binary conversion

    Ok, after taking the rest of the day to figure out how to convert a decimal number into a binary number I will have to say that I can successfully do it. I am still stumped on coming up with an...
  11. Replies
    7
    Views
    4,012

    Re: Decimal to binary conversion

    Honestly I am too new at this to completely understand what exactly I am supposed to do. To be completely honest our teacher said the code we are supposed to come up with is only 3 lines different...
  12. Replies
    7
    Views
    4,012

    Re: Decimal to binary conversion

    565Attached is what the output is. It is not calculating right I don't think. When I type a number in for the input it keeps giving me a 101010 for the output. You will see in the attached file. I...
  13. Replies
    7
    Views
    4,012

    Decimal to binary conversion

    I am new to the java world and I am currently taking a Programming I class. My homework assignment for the week is to write a java program using methods to allow a user to enter in a decimal...
Results 1 to 13 of 13