Question: 44) Write the Java code to Convert To Double the String value stored in s trRate and store it in double variable rate . 45)Write

44) Write the Java code to Convert To Double the String value stored in strRate and store it in double variable rate.

45)Write Java code to print to output Console what you stored in the rate variable using printf () method.

46) What is a Modulus operator and what is the symbol used for Modulus operator?

47)Can you use the Modulus operator to determine if a Number is Odd or Even, for example number 11?

48)Write the Java code to Declare an integer variable called Number 1 and assign it the value 9.

49)Write Java code to Declare another Integer variable called remainder. Use Module Operator to divide Number1 by 2 and store result in remainder variable.

50)What is a Named Constant, how it is customary to define a Constant Name variable?

51)Write the Java code to define a Named Constant called Sales Tax Rate and assign it the value 0.08.

52)Write the Java code to Calculate Sales tax by multiplying Total Purchases Amount by the Constant Name Sales Tax Rate.

53)Write the Java code to format with Currency $ the value stored in Gross Pay with 2 Decimal Places proceeded with the message Your Gross Pay is = .

54)What is the Assignment Operator = ( 1 = sign) used for, give examples?

55)What is the Equality Operator = ( 2 == sign) used for, give examples?

56)What is the String.equals() method used for?

57)Write the Java code to use the String.equals() method to compare 2 String names (name1 and name2) and write to Console the result of comparison.

59)Write the Java code to use the == Operator to compare 2 String names (name1 and name2) and write to output Console the result of comparison.

60)What is the String.compareTo() method used for?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!