{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

module2.java - import java.util.Scanner public class...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Scanner; public class ClassName { // Pseudocode // IMPORT dialog box // INTEGER ApplesOnHand // INTEGER ApplesInStock // INTEGER OrangesOnHand // INTEGER OrangesInStock // INTEGER How many apples needed // INTEGER How many oranges needed // CREATE Dialog box input for ApplesOnHand // CREATE Dialog box input for ApplesInStock // CREATE Dialog box input for OrangesOnHand // CREATE Dialog box input for OrangesInStock // applesNeeded in stock - applesOnHand = Order quantity // orangesNeeded in stock - orangesOnHand = Order quantity // CREATE final dialog box for how many apples and oranges need to be ordered public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int applesOnHand; int applesInStock; int orangesOnHand; int orangesInStock; int applesNeeded; int orangesNeeded; // User inputs how many Apples are on hand
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}