java programming

posted by .

write a java program using arrays function for hotel bill calculation?

  • java programming -

    r5t67u

  • java programming -

    class Hotel{
    int bills;
    public class Hotel(int hotelbills){
    int bills = int hotelbills;
    double myList = {$1.9, $2.9, $3.4, $3.5}
    for ( int vat = 0 ;vat < myList.length;i++){
    System.out.println("Total");
    }
    public static void main (String||args){
    Hotel bills = new Hotel;
    bills.int hotelbills();
    }

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Java

    I am trying to write an algorithm for my JAVA class and am having some issues....if I were to post my program is there anyone on here that could help me figure out what I am doing wrong?
  2. programming

    Having troube with java, i am not a regular programmer, if anybody can help me out writting this program: write a program that takes two numbers from the java console representing, respectively, an investment and an interest rate(you …
  3. programming

    I am having trouble writing this program for java. can anybody help write a program that prints the letter X composed of asterisk.
  4. JAVA PROGRAMMING

    "POWERS" Compute the power of a number given the base and exponent. Do three versions of this program using a while loop, a do-while loop and a for-loop. Introduction Please help..i don't know how to input this in java...please help.tnx
  5. Java Programming

    I'm new to Java and I'm not sure how to write the source code for this problem I got in class... Write a java program using the while and if statement that will accept ten student grades and that will display the sum of the grades, …
  6. programming

    Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
  7. JAVA PROGRAMMING

    Create a java program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as total point value per grade available.
  8. java programming

    Create a java program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as total point value per grade available.
  9. java programming

    the learner is asked to write a program using java with user input that caculate and displays, the number of months it will take the user to save an amount of money. the user must enter the
  10. computer, science, java, software

    Write a Java program to declare and store numbers from 1 to 10 in a single dimensional array and display the output in the following format. 1 2 3 4 5 6 7 8 9 10

More Similar Questions