How many apples are on hand

Assignment Help JAVA Programming
Reference no: EM131591861

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 a dialog box 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 a dialog box 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. Be sure to remember the following important items:
· Use commenting to describe the code.
· Practice debugging if you encounter errors.
· Ensure your program performs its intended function.
Specifically, the following critical elements must be addressed:

Documentation: Pseudocode: Break down the problem statement into programming terms through creation of pseudocode following the guidelines provided in the course.
Functioning Code: Produce fully functioning code (a code that produces no errors) that aligns with the accompanying annotations.
Code Results: Results are properly generated.
Code results generate accurate output.
Code results produce results that are streamlined, efficient, and error free.

This assignment will allow you to use pseudocode to implement the program to see the value in planning first, coding later. While coding is the glamorous part of the job, software development is a process with many steps. The program itself will focus on operators to complete an equation.

IV. Comments: All code should be well-commented. This is a practiced art that requires striking a balance between commenting everything, which adds a great deal of unneeded noise to the code, and commenting nothing.
A. Explain the purpose of lines or sections of your code, detailing the approach and method the programmer took to achieve a specific task in the code.

V. Style and Structure: Part of the lesson to be learned in this course is how to write code that is clearly readable and formatted in an organized manner.
Develop logically organized code that can be modified and maintained.
Utilize proper syntax, style, and language conventions and best practices.

Guidelines for Submission: Submit your pseudocode as a DOC or DOCX file. Submit the program as a JAVA file.

Reference no: EM131591861

Questions Cloud

Did you find yourself stumped by any of the questions : Did you find yourself stumped by any of the questions? If so, which questions tripped you up? Why do you think they were difficult to answer?
Estimate future costs to complete the project : BE18-7 Turner, Inc. began work on a $7,000,000 contract in 2014 to construct an office building. During 2014, Turner, Inc. incurred costs of $1,700,000.
Calculate book value and gain for sale of truck : Yoshi Company completed the following transactions and events involving its delivery trucks. Calculate book value and gain (loss) for sale of Truck on December
How you will communicate to your stakeholders : ow you will communicate to your stakeholders "what's in it for them" regarding the upcoming initiatives.
How many apples are on hand : 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,
Discussion-development plan insights : Now that you have completed most of your development plan and the semester is drawing to a close, share the following with your colleagues:
Total interest earned and future value : How much total interest is earned on the original deposit? How much is interest earned on interest?
Make a contract to construct an office building : O'Neil, Inc. began work on a $7,000,000 contract in 2014 to construct an office building. O'Neil uses the percentage-of-completion method.
Do you think younger customers are often stereotyped : Do you think younger customers are often stereotyped? In what way? How might serving an elderly person be different than serving a young person?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java test program

Write a Java test program, all the code should be in a single main method that calculates and outputs the average of the numbers 1, 2, 9, 27, and 54.

  Write a java application that reads a file containing text

Write a Java application that reads a file containing text. Your program should read each line and display it on the console screen preceded by line numbers.

  Implement elliptic curve encryption - decryption in java

Implement Elliptic Curve encryption - decryption in java. Specifically, your program will read parameters, plaintext and ciphertextfrom a file

  Assume that you are developing a java program which uses

suppose that youre developing a java program that uses decimal numbers and youd like to control the formatting of your

  Create java program to describe inheritance and polymorphism

Create a Java program based on the geometric shapes example described at the beginning of this lesson using Classes Square, Triangle, Rectangle, and Circ leto help describe inheritance and polymorphism.

  Write java classes for the class diagram

Write Java classes for the class diagram. You don't need to write any set and get methods for simplicity.

  Write a java program to compute salary

Write a Java program which computes the Salary for a given number of employees. The program prompts user to enter n the number of employees.

  Develop an end application whereas program component working

The biggest confusion is delivering an end application whereas the program component workings are the most valuable part of this stage.

  Compute the distance between the first two points

Compute the distance between the first two points and initialize the variable that represents the second shortest distance - Display the second shortest distance and the second closest two points.

  Create a gui version of the game mini sudoku.

Each row has the numbers 1 to 6,Each column has the numbers 1 to 6,Each group of 2 rows by 3 columns also has the numbers 1 to 6.

  Write a java program to simulate a die

Write a Java program to simulate a die. A die has values of either 1, 2, 3, 4, 5 or 6 on the face. You should use the Math.Random() or the java.util.Random() class to generate the values on the die.

  Discuss the use of a binary tree

Discuss the use of a binary tree when searching for keys in an array. Discuss the use of a binary tree when searching for keys in a linked list

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd