Question

In: Computer Science

Java Problem 3: The Snake Box Factory Overview Dear Respectable Software Engineer, Here at the world...

Java Problem 3: The Snake Box Factory

Overview Dear Respectable Software Engineer,

Here at the world renowned Snake Box Factory, we pride ourselves on our ability to deliver the highest quality, custom sized, cardboard boxes to our customers. Our boxes are filled with the highest quality, custom-ordered snakes. We service thousands of accounts worldwide and have a solid 98% satisfaction rating with customers. However, the entire ordering process is currently written on cardboard, which is transported between departments via carrier snake. We thought this would be a good way to show confidence in the quality and usefulness of our product. But as our business continues to grow, we’re realizing this was a bad idea. We believe it’s time for a more conventional and digitized approach to our operations. Would you be able to help us develop the software we need to make this happen?

Sincerely,

President George Johnson, The Snake Box Factory

Tasks:

Read the scenario found in the overview and consider what objects could be modeled as part of creating a software solution. Identify 3 objects from this scenario (remember, objects can be either tangible or abstract. List 3 properties and 3 behaviors belonging to each object.

Write your solution as a document rather than a .java file.

Solutions

Expert Solution

We can create a software solution for the above case by separating the above functionalities in three objects as below.

1) The Snake Box Factory

The factory will produce the Snake Boxes. The factory could be abstract, so that it can be extended to other product types.

Properties:

a)Create a List of Orders

b)Product Type

c)Pricing  

Behaviors:

a) Fill boxes with custom-ordered snakes

b)Ship to the customer.

c)Create billing

2) The Snake Box

Properties:

a)Quantity

b)Name/Names of products

c)Price per product

d)delivery information

Behaviors:

a)Encapsulate the box contents from others.

b)Assure Safety of products (protect from manipulation)

c)Maintain its integrity and Tracking details from place to place.

3)Customer

Properties

a)Name

b)Location

c)Payment Details

d)Contact Details

Behaviors:

a)Order for products

b)Provide feedback to the factory(company)

c)Complete payment procedure

ps-Along with these, we can also add the managers of the factory as an object.


Related Solutions

Case Study: 3 Ms. Marry, a software engineer started a Midway Software Development Firm in London....
Case Study: 3 Ms. Marry, a software engineer started a Midway Software Development Firm in London. As she got 2 decade of experience in software development and having good contacts, she could able to secure two projects for her firm. The first one is from Express Delivery Services of London for maintaining their online delivery services at an annual cost of £50,000 and second one from London Hyper Market for development & maintenance of counter billing system receiving an annual...
C PROGRAM Problem Specification: You are a software engineer of a Car Sale company. And Car...
C PROGRAM Problem Specification: You are a software engineer of a Car Sale company. And Car Sales is preparing for the end of the year sale. CEO wants to track the sales of your four sales people. You have been asked to help with the preparations for the sales event. The CEO asked for a program to quickly tabulate their sale. It will be your job to implement this program in C. You are not required to use functions in...
Java Recursion (Timelimit: 3 seconds) Problem Description Write a Java program to solve the following problem....
Java Recursion (Timelimit: 3 seconds) Problem Description Write a Java program to solve the following problem. Recursion may appear in various contexts and in different forms. For fast implementation, we should always aim at transforming recursions into a simpler form of computation. In this assignment, the task is to evaluate X(·), which is defined as follows:               |0,if m = 0 or n = 0               | X(m,n−1),if n is odd and m is even X(m,n) = | X(m−1,n),if m...
A Java program that solves a real-world problem The remaining amount (balance) for a prepaid cellular...
A Java program that solves a real-world problem The remaining amount (balance) for a prepaid cellular phone, is computed by subtracting the cost of the phone usage from the original phone load. The phone usage is based only on the total cost of text messages and phone calls. The cost of text messages is determined from the number of text messages sent and the cost of phone calls is determined from the number of minutes of calls made. ● Based...
Problem 3. A quality-control engineer wants to check whether (in accordance with specifications) 95% of the...
Problem 3. A quality-control engineer wants to check whether (in accordance with specifications) 95% of the concrete beams shipped by his company pass the strength test (i.e., the strength is greater or equal to 32). To this end, he randomly selects a sample of 20 beams from each large lot ready to be shipped and passes the lot if at most one of the 20 selected beams fails the test; otherwise, each of the beams in the lot is checked....
Java Collatz Conjecture (Timelimit: 3 seconds) Problem Description Write a Java program to solve the following...
Java Collatz Conjecture (Timelimit: 3 seconds) Problem Description Write a Java program to solve the following problem. The Collatz conjecture is about a sequence: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half the previous term. If the previous term is odd, the next term is 3 times the previous term plus 1. The conjecture is that no matter what...
Problem 3. Consider two identical boxes filled with hydrogen atoms. The atoms in Box A are...
Problem 3. Consider two identical boxes filled with hydrogen atoms. The atoms in Box A are illuminated by a beam of ultraviolet light, while the atoms in Box B collide with a beam of electrons. The light has a wavelength of 97.3 nm in vacuum. Each electron in the electron beam has the same energy as each photon in the beam of light. a) Calculate the energy of the electron beam b) How many spectral absorption lines do you expect...
java Problem 3: An Interesting Problem Write a program that accepts two positive integers: a deposited...
java Problem 3: An Interesting Problem Write a program that accepts two positive integers: a deposited amount of money and an interest rate, as an annual percentage rate. Your program will calculate the number of years that will take for the account balance to reach $1, 000,000. You can assume that the initial deposit is less than $1,000,000 Input The input will begin with a single line containing T , the number of test cases to follow. The remaining lines...
This is an Intro to Java Question, Please respond with code and pseudocode. Problem 3: RSA...
This is an Intro to Java Question, Please respond with code and pseudocode. Problem 3: RSA Private Key (10 points) (Cyber Security) In the RSA algorithm, encrypting and decrypting a message is done using a pair of numbers that are multiplicative inverses with respect to a carefully selected modulus. In this task, you must calculate the modular multiplicative inverse for given set of values. What is the Modular Multiplicative Inverse? In mathematics, each operation typically has an inverse. For example,...
Problem 3-7 Financial Statements (LO1) Here are the 2015 and 2016 (incomplete) balance sheets for Newble...
Problem 3-7 Financial Statements (LO1) Here are the 2015 and 2016 (incomplete) balance sheets for Newble Oil Corp. BALANCE SHEET AT END OF YEAR (Figures in $ millions) Assets 2015 2016 Liabilities and Shareholders' Equity 2015 2016 Current assets $ 326 $ 500 Current liabilities $ 290 $ 256 Net fixed assets 1,360 1,500 Long-term debt 910 1,080 a&b. What was owners’ equity at the end of 2015 and 2016? (Enter your answers in millions.) c. If Newble paid dividends...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT