Question

can you help me how to write this java code,  thanks a lot. The desired output is:...

can you help me how to write this java code,  thanks a lot.

The desired output is:

1 Project1: p8.4 page 429.

2 Programmer: John Doe.

3 Date: Tue Feb 11 16:44:08 EST 2020

4. The remaining battery_AA capacity after object instantiation is 2000.00

5. The remaining battery_AA capacity after draining 50 mAh is 1950.00

6. The remaining battery_AA capacity after charging is 2000.00

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In order to achieve the desired output, use the System.out.println();

So, this goes in the following way:

public class Print { public static void main(String[] args) {

System.out.println("1 Project1: p8.4 page 429.");

System.out.println("2 Programmer: John Doe.");

System.out.println("3 Date: Tue Feb 11 16:44:08 EST 2020");

System.out.println("4. The remaining battery_AA capacity after object instantiation is 2000.00");

System.out.println("5. The remaining battery_AA capacity after draining 50 mAh is 1950.00");

System.out.println("6. The remaining battery_AA capacity after charging is 2000.00");

}

}

Add a comment
Know the answer?
Add Answer to:
can you help me how to write this java code,  thanks a lot. The desired output is:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can you please help me with creating this Java Code using the following pseudocode? Make Change C...

    Can you please help me with creating this Java Code using the following pseudocode? Make Change Calculator (100 points + 5 ex.cr.)                                                                                                                                  2019 In this program (closely related to the change calculator done as the prior assignment) you will make “change for a dollar” using the most efficient set of coins possible. In Part A you will give the fewest quarters, dimes, nickels, and pennies possible (i.e., without regard to any ‘limits’ on coin counts), but in Part B you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT