In: Computer Science
When a contractor buys materials, he or she takes them to the
contractor checkout
desk. The clerk enters the contractor name into the system. The
system displays
the contractor information, including his/her current credit
standing.
The clerk then opens up a new ticket (sale) for the contractor.
Next, the clerk then
scans in each item to be purchased. The system finds the price of
the item and
adds the item to the ticket. At the end of the purchase, the clerk
indicates end of
sale. The system compares the total amount against the contractor’s
current credit
limit, and if it is acceptable, finalizes the sale. The system
creates an electronic
ticket for the items, and the contractor’s credit limit is reduced
by the amount of
the sale. Some contractors like to keep a record of their
purchases, so they request
that the ticket details be printed out. Others aren’t interested in
a printout.
Given the above scenario, do the following:
a. Develop an activity diagram for case 2.
Note:
- There is no input/output pairing for the message total; the text doesn’t specify one but it could be specified as an input message “finish” and written under the line shown.
- The “[receipt?]” represents a conditional input (“if receipt is requested?”).
Case Study: DownTown Video Rental System
DownTown Videos is a chain of 11 video stores scattered throughout a major metropolitan area in the Midwest. The chain started with a single store several years ago and has grown to its present size. Paul Lowes, the owner of the chain, knows that to compete with the national chains will require a state-of-the-art movie rental system. You have been asked to develop the system requirements for the new system.
Each store has a stock of movies and video games for rent. It is important to keep track of each movie title to know and to identify its category (classical, drama, comedy, and so on), its rental type (new release, standard), movie rating, and other general information such as movie producer, release date, cost, and so
forth. In addition to tracking each title, the business must track each individual copy to note its purchase date, its condition, and its rental status. User functions must be provided to maintain this inventory information.
Customers, the lifeblood of the business, are also tracked. DownTown considers each family to be a customer, so special mailings and promotions are offered to each household. For any given customer, several people may be authorized to rent videos and games. The primary contact for each customer can also establish rental parameters for other members of the household. For example, if a parent wants to limit a child’s rental authorization to only PG and PG-13 movies, the system will track that.
Each time a movie is rented, the system must keep track of which copies of which movies and games are rented; the rental date and time and the return date and time; and the household and person renting the movie. Each rental is considered to be open until all of the movies and games have been returned. Customers pay for rentals when checking out videos at the store.
3. Activity Diagram for the Rent Movie (Check-Out) use case in Movie Rental System
at DownTown Videos
4. Global System Sequence Diagram for the Rent Movie (Check-Out) use case in Movie Rental System
at DownTown Videos and for the Return Movie (Check-In) use case
note: plzzz don't give dislike.....plzzz comment if you have any problem i will try to solve your problem.....plzzz give thumbs up i am in need....