When a customer buys an item from the store

Assignment Help Operating System
Reference no: EM13894380

1) When a customer buys an item (or several) from the store, several changes to database tables will occur. Explain what those might be.

2) The owner of the antique store doesn't want to train his people in SQL, or to teach them about all the tables in the database. He asks you to write a program that will take sales information, and then make all the changes automatically, including whatever error checking may be necessary. The clerk will enter a customer phone number (assume this is used as the Customer ID primary key in the Customer
table), an item ID (from a tag on the item), and the sale price.

In pseudo code, outline how your program would record a sale. Show how you would use a transaction to insure the integrity of the database updates. Also, explain the error checking (such as verifying that the customer is already in the database) you would perform in your program, and how your program would recover from problems such as:

• The customer is not in the database.

• The item number is not in the database.

• The item is already sold.

3)  When an item is sold, should the item row be removed from the Items table? Why or why not?

4)  What transaction isolation level should apply to this application? Why do you make this choice?

Reference no: EM13894380

Questions Cloud

Identify three uses for a frequency distribution : 1. Identify three uses for a frequency distribution. Please provide realistic health related examples.
Should software be copyrightable : Should software be copyrightable or patentable? Ignoring the law for the moment, argue the question from the Kantian, Utilitarian, and Social Contract Theory perspectives.
Advise hamid if this contract with speed connect is valid : Hamid is a refugee from Afghanistan who was recently released from the detention centre in PNG and is currently living in Adelaide. Advise Hamid if this contract with Speed Connect is valid? Can he get out of this contract
Develop a wbs for the process for recovering your computer : Develop a WBS for the process for recovering your computer. Estimate the time it will take you to perform each task.
When a customer buys an item from the store : When a customer buys an item (or several) from the store, several changes to database tables will occur. Explain what those might be.
Situations when company tend to adopt assimilation strategy : In which situations do companies tend to adopt assimilation strategy normally and assimilation is one of the main strategies that can be used in merging organizational cultures.
Question regarding the statistical power of the study : Suppose the effect size of your research study is very large. What does this tell you about your results? If you were not able to reject the null hypothesis and determined that the statistical power of the study was low, what could you do to incre..
What is the single most important task for users on a system : What is the single most important task for users on a systems development project? Do you agree? Why or why not? Why must requirements emerge as a result of a conversation between users and IT professionals?
Which group decision-making technique do you recommend : The top management team members are all extroverts who are not afraid to speak up at meetings, but they are often prone to conventional thinking. Which group decision-making technique do you recommend? Explain your reasoning, and use references to..

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd