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...
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 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...
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...
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,...
Homework #3-2 a) (Use software for this problem) Four independent samples are collected form four normally...
Homework #3-2 a) (Use software for this problem) Four independent samples are collected form four normally distributed populations. The data are:         Group 1:       12     11     14     10     12     10         Group 2:       14     12     16     15         Group 3:       17     18     20     22     23         Group 4:       10     9       13     13 The SST is equal to 305.68. Conduct a test...
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...
PROBLEM 5. A box contains 10 tickets labeled 1, 2, 3, 4, 5, 6, 7, 8,...
PROBLEM 5. A box contains 10 tickets labeled 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. Draw four tickets and find the probability that the largest number drawn is 8 if: (a) the draws are made with replacement. (b) the draws are made without replacement. PROBLEM 6. Suppose a bakery mixes up a batch of cookie dough for 1,000 cookies. If there are raisins in the dough, it's reasonable to assume raisins will independently have a .001 chance...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT