The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 364 Weeks Ago, 1 Day Ago |
| Questions Answered: | 1850 |
| Tutorials Posted: | 1850 |
Graduate in Biology and Nutrition, MBA Finance
Florida State University
Aug-2000 - Jul-2007
Ass. Relationship Manager
Penn-Florida
Mar-2009 - Feb-2016
I need to create the pseudo code for this assignment. I have already completed the Java code, but need the psuedocode to match and need help...Please see the attached links for more information.
Â
package MOD2;
Â
/**
 *
 * @author tslay
 */
import javax.swing.JOptionPane;
import java.util.Scanner;
import java.lang.Math;
Â
public class AppleOranges {
Â
  public static void main(String[] args) {
    Scanner scnr = new Scanner(System.in);
Â
    String orderApples = "";
   //String haveOranges = "";
    //String needApples = "";
    //String needOranges = "";
Â
    Â
    Â
    //get how many apple does user have
    String haveApples = JOptionPane.showInputDialog("How many apples are on hand?");
    System.out.println(haveApples + " Apples are on hand.");
Â
    //get how many apples the user needs
    String needApples = JOptionPane.showInputDialog("How many apples should be in stock?");
    System.out.println(needApples + " Apple should be in stock.");
Â
    //Do math for order output
    orderApples = needApples; //When I try to subtrack like line below it breaks
    // orderApple = needApple - haveApples;
Â
    //How many oranges does the user haveÂ
    String haveOranges = JOptionPane.showInputDialog("How many oranges are on hand?");
    System.out.println(haveOranges + " Oranges are on hand.");
Â
    //how many does the user need
    String needOranges = JOptionPane.showInputDialog("How many oranges should be in stock?");
    System.out.println(needOranges + " Oranges should be in stock.");
    Â
    //show dialog box telling how many apple and oranges need to be order
    JOptionPane.showMessageDialog(null, orderApples + " apples and " + orderApples + " oranges need to be order. ");
Â
  }
Â
}
  Â
Â
Â
Attachments:Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I