A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • one year ago

Java program

  • This Question is Open
  1. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    public class JavaJoeWeek{ public static void main(String[] args){ double money=200.0; double paintarea=0.0; //paintarea iniially set to zero for (int x=1; x<=7; x++){ // This section reveals the range of x and that x is incremental if (x==1) { //if x is equal to one program enters into one conditional sphere System.out.println("Monday"); //outputs monday under the condition if x is 1 double.shoes=30; //states the price of shoes double.total=30*1.15; //calculates hte price of the shoes after tax System.out.println("The amount Joe paid for the shoes is" + total); //shows the amount Joe paid for the shoes money=money-total; //money as passed down from the public static void main System.out.println("The amount Joe has left for himself is"+ money); } else if (x==2) { System.out.println("Tuesday"); paintarea=12*7.0; System.out.println("The area Joe paints on Tuesday is" + paintarea);} else if (x==3) { System.out.println("Wednesday"); double.paint=1.13; double.total=paint*paintarea; money=money-total; System.out.println("The total money that Joe has left for himself" + money);} else if (x==4) { System.out.println("Thursday"); double.total=36.40; double.gas=0.45; double liters=total/gas; System.out.println("The number of liters Joe refilled his gas tank is" + liters); money=money-total; System.out.println("The amount of money Joe has left for himself is" + money);} else if (x==5) { System.out.println("Saturday"); double.total=23.0; System.out.println("The money he donated for a charity is" + total); money=money-charity; System.out.println("The amount of money he left for himself is" + money);} else if (X==6) { System.out.println("Sunday"); } } } } }

  2. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @nevermind_justschool

  3. e.mccormick
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    What about it?

  4. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.