Question

using java, Declare a variable named payRate and initialize it to 55.55 Declare a variable named...

using java, Declare a variable named payRate and initialize it to 55.55 Declare a variable named flag and initialize it to true as Boolean

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

Hopefully all yours doubt will clear if you have left with any doubt please let me know in comment. I will try my best to resolve that.

Here I am posting code and screenshot of output.

Code :-

// class example
public class Example
{
   // main function body
   public static void main(String[] args)
   {
       // declaration of variable payRate with value 55.55
       double payRate = 55.55;
       // declaration of variable flag with boolean value true
       boolean flag = true;
       // display value of payRate variable
       System.out.println("payRate is : " + payRate);
       // display value of flag variable
       System.out.println("flag is : " + flag);
   }
}

Screenshot of output :-

D:java\Example.java - Notepad++ TextFX Plugins Format Language Settings File Edit Search View Macro Run Weightedavg java Word

Add a comment
Know the answer?
Add Answer to:
using java, Declare a variable named payRate and initialize it to 55.55 Declare a variable named...
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
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