Question: Please solve in java. 1.Rewrite assignment 1.2 (the pounds to ounces program) so that it repeats itself until the user wants to quit. Use a
Please solve in java.
1.Rewrite assignment 1.2 (the pounds to ounces program) so that it repeats itself until the user wants to quit. Use a question-type loop. Make sure to follow the patterns introduced in this lesson 4.1 closely, and make sure that you assume that the user may not want to execute the loop even once.
2.Rewrite assignment 1.2 (the pounds to ounces program) so that it repeats itself until the user wants to quit. Use a special-value-type loop. Make sure to follow the patterns introduced in lesson 4.2 closely, and make sure that you assume that the user may not want to execute the loop even once.

1 import java.util.Scanner; 3 public class A1 2 0 4 public static final int OUNCES_PER_POUND 16; // the number of ounces in a pound 7 public static void main(String[] args)f int numOunces; int numPounds; 10 12 13 14 15 16 Scanner input -new Scanner (System.in); System.out.print("enter pounds "); numPoundsinput.nextInt(); numOunces numPoundsOUNCES_PER_ POUND; System.out.println (numPounds "pounds is "numOunces ounces."); input.close(); 18 19 20 21 al Problems a Javadoc Declaration Console A1 2 [Java Application] C:\Program Files\Javayre 1.8.0 201\bin\javaw.exe (20192134:49:36 enter pounds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
