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.
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?
|