APlusGrades

Not Rated (0)

$15/per page/Negotiable

About APlusGrades

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing,Foreign Languages,Geography,Geology,Health & Medical,HR Management,Law,Management,Physics,Programming,Science,Statistics Hide all
Teaching Since: Jul 2017
Last Sign in: 364 Weeks Ago, 1 Day Ago
Questions Answered: 1850
Tutorials Posted: 1850

Education

  • Graduate in Biology and Nutrition, MBA Finance
    Florida State University
    Aug-2000 - Jul-2007

Experience

  • Ass. Relationship Manager
    Penn-Florida
    Mar-2009 - Feb-2016

Category > Programming Posted 19 Jul 2017 My Price 12.00

package MOD2; /** * * @author tslay */ import javax.swing.JOptionPane; import java.util.Scanner; import java.lang.Math; public class AppleOranges {

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:

Answers

Not Rated (0)
Status NEW Posted 19 Jul 2017 11:07 AM My Price 12.00

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

Not Rated(0)