anonymous
  • anonymous
Java program
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
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"); } } } } }
anonymous
  • anonymous
@nevermind_justschool
e.mccormick
  • e.mccormick
What about it?

Looking for something else?

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