SSL Certificate
  • Using the following chart, write an if-else-if statement that assigns
3, Using the following chart, write an if-esle-if statement that assigns.10,.15,or.20 to commission, depending on the value in sales.

Sales Commission Rate
---------------------------------------
Up to $10,000 10%
$10,000 to $15,000 15%
Over $15,000 20%

10, Convert the following if-else-f statement into a switch statement:

if (choice == 10)
{
System.out.println("You selected ten.");
}
else if (choice == 20 || choice == 30)
{
System.out.println("You selected twenty or thirty.");
}
else if (choice == 40 || choice == 50)

{
System.out.println("You selected forty or thirty.");
}
else
{
System.out.println("Select other Please.");
}


12, Assume the double variable number contains the value 98765.432. Write a statement thats uses System.outprintf to display the number as 98,765.4.

 
14, Assume the int variable number contains the value 876543.21. Write a statement thats uses System.outprintf to display the number as 876,543.21.

 
16, Assume that the double variable number holds the value 56783423.4536. Write what format would you use with the DecimalFormat class to displaythe number as 56783423.5? 

 
Excellent Java Solution
================
*Instant Download

Write a review

Please login or register to review

Using the following chart, write an if-else-if statement that assigns

  • $9.99


*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don't store credit card information on our servers and all Payments are SECURED & handled by Paypal.
SSL CertificatePaypal

Tags: java, programming, if-else-if, Sales Commission Rate