What I have finished so far will not compile in cmd.
Type: Posts; User: baueml01
What I have finished so far will not compile in cmd.
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...
//Michael Bauer Exercise 5.8
public class ConversionsBetweenCelsiusAndFahrenheit{
public static void main(String[] args){
for(double celsius=40; celsius<=31.0; celsius--){
...
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...
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...
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...
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!
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...
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...
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...
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...
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...
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...