Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java code (pseudocode) Imagine that you are a merchant and need to keep better tabs on your merchandise to know when to reorder supplies. First,

java code (pseudocode)

Imagine that you are a merchant and need to keep better tabs on your merchandise to know when to reorder supplies. First, write out pseudocode, and then create a program to help you by accomplishing the following tasks:

 Use command line interface to ask the user to input the following. (You will need to convert this from a string to an integer.)

○ How many apples are on hand

○ How many apples should be in stock

○ How many oranges are on hand

○ How many oranges should be in stock

 Perform an operation to determine how many of each item should be ordered to maintain the stock.

 Use command line interface to output the number of apples and oranges that need to be ordered.

Once you have the program laid out, build it by creating a functional program. Use your pseudocode as a guide.

Step by Step Solution

3.37 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

Editable code Sample Code for Merchant order import javaxswingJOptionPane class Merchant Public Static void mainString Arg int AppleInHandAppleReqOran... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Technology For Managers

Authors: George Reynolds

2nd Edition

1305482492, 1305389832, 9781305482494, 978-1305389830

More Books

Students also viewed these Accounting questions

Question

Show that if A is any m n matrix, then Im A = A and AIn = A.

Answered: 1 week ago

Question

How would you define business intelligence

Answered: 1 week ago

Question

What internal parts does the character have?

Answered: 1 week ago

Question

How do the events of the story follow or challenge the script?

Answered: 1 week ago