Question

Consider the following description of a Point-of-Sale (POS) system: A department store wants to develop a...

Consider the following description of a Point-of-Sale (POS) system:

A department store wants to develop a software system to help control the running of business.

The back-end database, which holds information about the stock and transactions, already exists. But it is not currently integrated with any POS devices. The purpose the new system is to make this integration.

The business analyst has identified the following POS’s and activities where the new software system should help:

• At the checkout counter, where the store’s employees check out items bought by customers

• At the information counter, where the store’s employees handle laybys and goods returns

• It should be possible for the system to help a customer check an item’s price by themselves

• The store manager requires the ability to set the discount prices for certain items for a day (i.e. 24 hours) with the condition that the original price must be restored after 24 hours by the Timer (the Timer is an internal actor: it is part of the system).

Write formal specification for the following atomic use cases:

(i) Set Discount Price, and

(ii) Restore Price

Homework Answers

Answer #1

Formal Specificatoin:-

SetDiscountPrice:

void setDiscountPrice(Object item_id){

item_id.price = item_id.price - discount;

}

Here this is a formal implementation of setDiscountPrice() method where price is decremented by a specific discount value. Here item id is passed as an argument which will be used to find out the product for which price has to be decremented.

RestorePrice:

void RestorePrice(Object item_id){

if(time_counter>24)

item_id.price = item_id.price + discount;

}

Here this is a formal implementation of restorePrice() method where price is incremented by a specific discount value. Here item id is passed as an argument which will be used to find out the product for which price has to be incremented. A check is placed just above the restoring statement where it checks if the time elapsed has been more than 24 hours or not.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the purchases and fixed assets business areas. Prepare a 12- to 16-slide presentation describing the purchases and fixed assets business areas. Be sure to incorporate speaker notes as well as appropriate visuals, graphics, fonts, etc. Include any associated risk in these areas. Describe specific internal controls that include authorization of transactions, segregation of duties, adequate records and documentation, security of assets, and independent checks and...
IKEA’s Global Strategy Walk into an IKEA store anywhere in the world, and you would recognize...
IKEA’s Global Strategy Walk into an IKEA store anywhere in the world, and you would recognize it instantly. Global strategy standardization is rampant! The warehouse-type stores all sell the same broad range of affordable home furnishings, kitchens, accessories, and food. Most of the products are instantly recognizable as IKEA merchandise, with their clean yet tasteful lines and functional design. With a heritage from Sweden (IKEA was founded in 1943 as a mail-order company, and the first store opened in Sweden...
IKEA’s Global Strategy Walk into an IKEA store anywhere in the world, and you would recognize...
IKEA’s Global Strategy Walk into an IKEA store anywhere in the world, and you would recognize it instantly. Global strategy standardization is rampant! The warehouse-type stores all sell the same broad range of affordable home furnishings, kitchens, accessories, and food. Most of the products are instantly recognizable as IKEA merchandise, with their clean yet tasteful lines and functional design. With a heritage from Sweden (IKEA was founded in 1943 as a mail-order company, and the first store opened in Sweden...
1. Based upon the following data, estimate the cost of ending inventory using the gross profit...
1. Based upon the following data, estimate the cost of ending inventory using the gross profit method. Sales $882,000 Estimated gross profit rate 32% Beginning inventory $75,700 Purchases (net) 794,000 Merchandise available for sale $869,700 2. Multiple-Step Income Statement On March 31, 20Y9, the balances of the accounts appearing in the ledger of Royal Furnishings Company, a furniture store, are as follows: Accounts Receivable $170,000 Inventory $1,019,950 Accumulated Depreciation—Building 762,600 Notes Payable 273,300 Administrative Expenses 559,700 Office Supplies 19,950 Building...
Business Problem-Solving Case Walmart and Amazon Duke It Out for E-Commerce Supremacy Walmart is the world’s...
Business Problem-Solving Case Walmart and Amazon Duke It Out for E-Commerce Supremacy Walmart is the world’s largest and most successful retailer, with $487.5 billion in 2014 sales and nearly 11,000 stores worldwide, including more than 4,000 in the United States. Walmart has 2.2 million employees and ranks first on the Fortune 500 list of companies. Walmart had such a large and powerful selling machine that it really didn’t have any serious competitors—until now. Today, Walmart’s greatest threat is Amazon.com, often...
Analysis: This section should include the issue register as a bare minimum, but may include also...
Analysis: This section should include the issue register as a bare minimum, but may include also why-why diagrams, a Pareto chart, a waste table and/or value-added analysis table. Flow analysis or simulation of this case study might be possible but might require making a lot of assumptions given the provided data. The first part of the project: Introduction    Walmart has continued to retain the top position on the Fortune 500 list for a consecutive fifth year. The brand has...
1. The failure of the new supply chain system affected Nike adversely. What were the reasons...
1. The failure of the new supply chain system affected Nike adversely. What were the reasons for the failure and how did the breakdown harm Nike? 2. What are the important elements to be kept in mind while implementing a new system in an organization? What is the importance of a good working relationship between partners and the sharing of responsibility in implementing critical projects? What mistakes did Nike and i2 make? 3. comment on the lessons learned and the...
1.Establishing the virtual Management: As known, managing virtual staff requires a different method or approach than...
1.Establishing the virtual Management: As known, managing virtual staff requires a different method or approach than managing local staff. Due to that reason, Golden Scent has developed a strategic plan to successfully manage its virtual staff in the USA. Identify the suitable manager. to make sure our work will proceed as we planned, Golden Scent willrecruit a virtual manager with the essential skills and knowledge required to manage virtual employees. Find the skilled people to work with. Since not everyone...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
GoodClothes and MIS: Case from struggle to revamp Headquartered in Dubai, GoodClothes is a highly successful...
GoodClothes and MIS: Case from struggle to revamp Headquartered in Dubai, GoodClothes is a highly successful department retailer offering completely designed casual clothing and accessories. The company operates 10 stores in all seven emirates and 1 store in Al Ain. The company owns 6 stores and franchises 5. For some time, marketing managers targeted population between the ages 40 and 60 who like loose, comfortable clothes. Then, management was tempted to stock its stores with clothes for a younger population...