Below is an algorithm to compute tip. Translate the following algoríthm into Java code. Make sure to define the right data ype. Step 1: Declare a variable named subtotal with initial value 30. Step 2:...

Hand write the code
Below is an algorithm to compute tip. Translate the following algoríthm into Java code. Make sure to define the right data ype.<br>Step 1: Declare a variable named subtotal with initial value 30.<br>Step 2: Declare a constant named TIP RATE with value 0.2.<br>Step 3: Declare a variable named tip, multiply subtotal and TIP RATE, and assign the result to tip.<br>Step 4: Display tip to the console.<br>Sample Run<br>Your tip is $6.0<br>

Extracted text: Below is an algorithm to compute tip. Translate the following algoríthm into Java code. Make sure to define the right data ype. Step 1: Declare a variable named subtotal with initial value 30. Step 2: Declare a constant named TIP RATE with value 0.2. Step 3: Declare a variable named tip, multiply subtotal and TIP RATE, and assign the result to tip. Step 4: Display tip to the console. Sample Run Your tip is $6.0

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here