Premium Essay

A Program Module

In:

Submitted By SamehIbrahim
Words 439
Pages 2
Sheet “1”

1-A Database Management System (DBMS) is a set of programs that enables you to store, modify, and extract information from a database

2-1.A program to debit or credit an account. 2. A program to add a new account. 3. A program to find the balance of an account. 4. A program to generate monthly statements.

n 3- Database Applications:

l Banking: transactions

l Airlines: reservations, schedules

l Universities: registration, grades

l Sales: customers, products, purchases

l 4- Storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system.

a- select employee-name from works where company-name _ .First Bank Corporation.

b- select e.employee-name, city from employee e, works w where w.company-name = .First Bank Corporation. and
w.employee-name = e.employee-name

c- select * from employee where employee-name in
(select employee-name from works where company-name = .First Bank Corporation. and salary À 10000)

d- select e.employee-name from employee e, works w, company c where e.employee-name = w.employee-name and e.city = c.city and
w.company -name = c.company –name

e- select P.employee-name from employee P, employee R, manages M where P.employee-name = M.employee-name and
M.manager-name = R.employee-name and
P.street = R.street and P.city = R.city

f- select employee-name from works where company-name __ .First Bank Corporation.

g- select employee-name from works where salary _ all
(select salary from works where company-name = .Small Bank Corporation.)

h- select T.company-name from company T where (select R.city from company R where R.company-name = T.company-name) contains (select S.city from company S
where

Similar Documents

Premium Essay

Pt1420

...Pseudocode and Modules (“UTP Installed”) Critical ReviewA Module is a group of statements that exists within a program for the purpose of performing a specific task.Modules are commonly called procedures, subroutines, subprogram, methods, and functions.The code for a module is known as a module definition. To execute the module, you write a statement that calls it.The format for a module definition is as follows:Module name()StatementStatementEtc.End ModuleCalling a module is normally done from the Main() module such as:Call name()Generally, local variables should be used and arguments should be passed by reference when the value of the variable is changed in the module and needs to be retained. For example:Module main()Real Integer numberCall inputData(number)Call printData(number)End Module// Accepts number as a reference so that changed value// will be retainedModule inputData(Real Ref number)number = 20End Module// number does not need to be sent as reference because// number is not going to be modifiedModule printData(Real number)Display “The number is “, numberEnd Module | This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following program prior to completing the lab. Data Communications Corp wants a small program that will calculate the cost of UTP it installs for their clients. Write a program that will ask the user to input the name of the client, the number of feet of cable installed. The program should then...

Words: 1808 - Pages: 8

Premium Essay

Selection Structure

...Structure in Part Selection Module In order to create a successful program the importance of the analysis and design stages of the program development cycle cannot be overstated. After an in depth look at the problem and analysis of the problem it has led to the first stages of product design. The project is on schedule and an example of the programs functions and use of control structures will be introduced as we discuss the program updates. Part Number Input Module One of the major functions of the program will not only be footage production, which will be discussed in later program development reports but also part number tracking. Tracking what part number is ran within each run will provide a historical database for analysis providing improved inventory control procedures. The data will be tracked as currently tracked on paper but stored digitally into a database. This process can be realized within the program by the utilization of control structures and iteration control structures. Control Structures As discussed within (Venit & Drake, 2011) a selection control structure gives a computer the ability to take a defensive stance against incorrect data, which forces users to enter valid data as the input. Selection control structures additionally offer users the ability to make a decision within a program as discussed in (Venit & Drake, 2011). Without these control structures in place programs would be a strict point A to...

Words: 1191 - Pages: 5

Free Essay

Cmis 102 Hw 4

...Homework Assignment 4 Charles Black CMIS102-4015 Professor Dale Goode 27Sep15 Problem definition: Write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user. A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section. In this problem, we have to calculate and display the area and perimeter for set of input values, entered by user. We will take input from user for length and width. And then calculate the area and perimeter for rectangle for the numbers input. Desired Output: The desired output is area and perimeter of rectangle. Required Input: The required input consists of the length and width of the rectangle. The program asks user to input length and width of rectangle. Calculations: Variables used: length: (float) to store value of length of rectangle entered by user width: (float) to store value of width of rectangle entered by user Area: (float) to store area of rectangle Perimeter: (float) to store perimeter of rectangle Formula for Calculating Area of Rectangle Area = length * width Formula for Calculating Perimeter of Rectangle Perimeter = 2 *( length + width ) Sample Calculation Suppose we have following user input: Length =4.0 Width=8.0 Subprogram Calculate_Area (length,width...

Words: 1160 - Pages: 5

Premium Essay

Programming Midterm Study Guide Notes

...Guide Programs that make a computer useful for everyday tasks are known as application software. System software – the programs that control and manage the basic operations of a computer. System software types: Operating system: most fundamental set of programs on a computer. Controls the internal operations of the computers hardware manage all of the devices connected to the computer, allows data to be saved to and retrieved from storage device, and allows other programs to run on the computer. Utility programs: performs a specialized task that enhances the computer’s operation or safeguard data. Examples are virus scanners, file compression programs, and data backup programs. Software Development tools: the programs that programmers use to create, modify, and tests software. Assemblers, compilers, and interpreters are examples. Interpreter is a program that both translates and executes the instructions in a high-level language program. The statements that a programmer writes in a high-level language are called source code or code. Syntax error is a mistake such as a misspelled key word, a missing punctuation character, or the incorrect use of an operator. NOTE: programs that are compiled generally execute faster than programs that are interpreted because a compiled program is already translated entirely to machine language when it is executed. A program that is interpreted must be translated at the time it is executed. Compiler is a program that translate...

Words: 1662 - Pages: 7

Premium Essay

It210

...University of Phoenix Associates Program Material (revised by Albert Mink) Final Project Application-Level Requirements List Complete the following list of application-level requirements for the Metric Conversion program. The first requirement has already been entered for you. 1. The Metric Conversion Program will display a Main Menu to the user listing the available metric-to-U.S. measurement conversions available, along with an option to quit the program. 2. The Metric Conversion Program will confirm user entry is valid (1 to 5) or closes if entry is 6. 3. If entry 1 to 5 is entered the Metric Conversion Program will prompt for entry of metric measurement. 4. The Metric Conversion Program will verify the metric measurement is valid (0.0 to 10000.0) or prompt for valid entry. 5. The Metric Conversion Program will convert the entered metric measurement to corresponding amount using conversion formula. 6. The Metric Conversion Program displays converted amount. Input-Process-Output Chart Complete the following Input-Process-Output chart for the Metric Conversion program. The first process has already been entered for you. |Input |Process |Output | | |Display Main Menu |Main Menu | |Measurement Section ...

Words: 1502 - Pages: 7

Premium Essay

Programming Techniques

...solution in which the extreme details of the programming solution were investigated first, as opposed to beginning with a breakdown by broad objectives. Each program was written in isolation to solve a particular sub-problem. The difficulty arose when the various sub-programs had to work together to produce the desired programs. Program logic was guided by the limitations of primary memory, and programs were designed with the objective of executing them as fast as possible. However, as application programs grew in size, several programmers worked together to solve them. Project teams were set up, consisting of several programmers and a project leader. However, programmers often switch jobs and might leave a company before a project is fully developed, thus requiring another programmer to continue the unfinished work midstream. This required formulation of a definite summary of how a problem is to be solved. This was not provided by the bottom-up approach to programming. Another approach was required. Top-down Design In recent years, computer memory ceased to be the limitation factor for most of the application programs. This, along with increasing software complexity and maintenance hitches, shifted the focus from the execution time to the programming techniques adopted in development of a program. It allowed programs to be written in a more organized manner, i.e., in a structured manner, producing code that is easier to read, analyze, and modify later – if the...

Words: 855 - Pages: 4

Free Essay

My Notes

...Design Tools: Jackson Structured Programming (JSP) 4.1 Three Structured Constructs All programs can be constructed using only the three basic constructs. It is the concept of structured programming that a program should be developed using only these three basic constructs. It is not wrong to use the GOTO structure but it is discouraged, because programs with the GOTO structure are often classified as unstructured. The three basic constructs are: 1. Sequence 2. Selection 3. Iteration/Repetition 4.1.1 Sequence Construct In a sequence construct, the way the statements are placed implies the order in which the computer will execute the statements. The computer will interpret the statements in a left to right, top to bottom fashion. Consider the following: Calculate-Average Module DO Get Two Numbers Calculate Sum Determine Average Print Average ENDDO The sequence for the above module is straightforward. You get the two numbers, calculate the sum, determine the average and print out the result. If the statements are not in that sequence, the result obtained will not be the answer intended! Figure 4-1: Simple sequence The Calculate Average module is not a separate module away from the rest of the four modules below it. But it actually contains all the four modules. Each process (a rectangle) represents a component with their function/action stated in the...

Words: 2186 - Pages: 9

Premium Essay

Calorie Management

...Computer Programming June 29, 2015 Calorie Management With rising obesity rates all across the United States of America, the team felt that it was necessary to build a program that could help citizens make healthier decisions and track those decisions on a day-to-day basis. The team set out to create a program that could manage and track a person’s daily calorie expended as it compares to their calorie intake. This program allows the consumers of the application be more conscientious of the choices they make as to how often they workout and what they choose to eat. To better help you as investors understand the proprietary nature of our application along with the ease of use for the end consumer, we will discuss each of these details along with future updates for this application. Not only will this application continue to improve the lives of those who use it, but it will become a social and cultural phenomenon that will contribute to bettering the lives of all those who need it. The mass appeal of this application is that it is not only a weight loss application, but also one for those who are already healthy. It will help to provide a way for the user to maintain his or her already good habits they have learned on their own or through use of the application The Program The program will ask for specific information about the user’s calories consumed, and calories expended. The calories consumed will then be added together, and the normal calories burned, plus...

Words: 2262 - Pages: 10

Free Essay

Prg/211 Calorie Count Tool

...Team B Calorie Count Tool PRG/211 May 5, 2014 Team B Calorie Count Tool PROBLEM STATEMENT Team B was asked to develop a program which would calculate the user’s daily intake of calories and measure those calories against the overall calories expended. The core purpose of this program will do two primary functions. First, it will record the user intake of calories as acquired through meals throughout the day. Second, the user will record caloric output associated with physical activity. This information will be calculated together to determine the caloric surplus or deficit for the user. In order for the program to execute accurately, and provide customized results, the user will be required to input personal data to include gender, age, weight, and height. This additional information is essential to determine the user’s default caloric burn rate, otherwise known as the basal metabolic rate (BMR). The BMR and the calories burned as a result of physical activity will be calculated against the intake of calories to determine the overall success for the user. As the program is executed it must: * Record user name, age, height, weight to enable more accurate calculations * Record the users specific caloric values entered for each meal * Record the user activity and caloric burn values for that activity * Calculate the basal metabolic rate (BMR) for the individual * Subtotal the total caloric values for the day * Combine the physical activity and...

Words: 1524 - Pages: 7

Premium Essay

Pt1420 Unit 4 Assignment

...Assignment Short Answers 1. Modules allow the programmer to write an operation once, and then be able to execute it any time needed later in the code. 2. Header – The starting point of the module Body- The list of statements that belong to the module 3. The program returns to the memory address just after from where the module was called, and continues to execute 4. A local variable is a variable that is declared from within the module. Only statements in that module can access it. 5. A local variable’s scope begins at the variable’s declaration and ends at the end of the module in which it is declared. 6. Passing an argument by value is a one-way communication from the main program to the module. Changes to the parameter variable inside the module do not affect the argument in the calling part of the program. Passing an argument by reference is a two-way communication from the main program to the module and it allows modification of the variable in the calling program 7. Global variables make a program difficult to debug because any statement in a program file can change the value of a global variable. If you find that the wrong value is being stored in the global variable, you have to track down every statement that accesses it to determine where the bad value is coming from. 1. Module timesTen (integer originalNumber by value) Set a = originalNumber * 10 Input a Display “The answer is “, a 5. Module getNumber (integer number by reference) ...

Words: 483 - Pages: 2

Free Essay

Programming Solution Proposal

...Organizations, needs a computer program to calculate mortgage payments in their agent field offices. The agents want to input a mortgage loan amount, an interest rate, and a number to pay off the loan into this program and have the mortgage’s monthly payments as output. In addition, agents want the program to calculate the pay-off amount of the loan for a specific year(s) or an amortization table for the mortgage. The benefits of this program are faster and more reliable than using manual calculations or an electronic calculator where they can still key in the wrong number. The program can also be ported to a company website. This website can be accessed by customers to inquire about mortgage information and thus free the agents’ time for such requests. The program development cycle is the best approach for coding a program solution. The first paragraph has done the analyzing of the problem, then comes the design phase. The requirements for this task are identified as input, output, and processing tasks. Tasks are coded into a program module. This breaking down of tasks into modules is known as modular programming. According to Torres (2012), ”Breaking down a programming project into modules makes it more manageable. These individual modules are easier to design, implement, and test. Then they can be used to construct the overall program. Modular programming is an important and beneficial approach to programming problems. They make program development easier, and they...

Words: 545 - Pages: 3

Premium Essay

Related Literature

...as a program or set of instruction that tells the computer what to do. TWO CLASSES OF SOFTWARE: 1. SYSTEM SOFTWARE – these programs are used to manipulate the basic operations of a computer system. Examples of these basic operations are: ▪ System software tells the computer to accept the input from the keyboard and output the character to the monitor. ▪ System software locates free disk space in a hard disk when a file needs to be saved. ▪ System software sends the document to the printer when it needs to be printed. ▪ System software locates a program in the hard disk, loads it in the main memory, and executes it. SOME OF THE BENEFITS OF SYSTEM SOFTWARE ARE: ▪ They hide the “ugly” details of computer operations from the user. ▪ Computer programmer can write programs without knowing the details on how the computer hardware works. ▪ System software such as an operating system controls the execution of programs. System software supports all application programs. For example, a user using an application program such as Microsoft Word clicks on the save icon to tell Word to save a document. In this process, Word does not communicate with the printer, but rather request the operating system to print the document. A block diagram of this process is illustrated in the figure. Examples of system software: operating systems, communication control programs, interpreters...

Words: 1565 - Pages: 7

Premium Essay

Perelman School Of Medicine Case Study

...and boasts pride in its leading education, patient care, and research programs. Its excellence is continuously represented in the top five rankings for best medical schools. The school’s dean is J. Larry Jameson, MD, PhD, looking over more than 2,000 full time faculty members and 791 medical students. In addition, the school is home to over 1,100 residents and fellows and several hundred PhD, MD-PhD, masters’ students, and post-doctoral fellows (“Overview”). It is affiliated with the Hospital...

Words: 1550 - Pages: 7

Free Essay

Resume

...Human Subjects Research (HSR) Series CITI Program’s HSR series consists of modules from two basic tracks, Biomedical (Biomed) and Social-Behavioral-Educational (SBE), and a set of Additional Modules of Interest. Organizations may group these modules to form a basic Biomed or SBE course, or a course that combines the two tracks. The Additional Modules of Interest should be used in any course variation, if relevant. The basic Biomed modules have three corresponding sets of refresher modules and the basic SBE modules have two corresponding sets of refresher modules. These refresher modules are intended to provide learners with a review of what was covered in the basic level modules. It is generally recommended that organizations select refresher module requirements that reflect their selections for the basic course(s). Refresher courses should be taken in a cycle at an interval specified by your organization (for example, Refresher Stage 1: 3 years after completion of basic course; Refresher Stage 2: 6 years after completion of basic course). Three additional standalone courses are available: Institutional/Signatory Official: Human Subject Research, and IRB Chair. The Institutional/Signatory Official: Human Subject Research course provides a general introduction to the roles and responsibilities of the institutional official at an organization holding a Federalwide Assurance (FWA). The IRB Administration course offers members of an Institutional Review Board’s (IRB)...

Words: 9766 - Pages: 40

Premium Essay

American Conector

...SUPPLY CHAIN MANAGEMENT DESIGNATION PROGRAM MODULE THREE Logistics and Transportation ©Supply Chain Management Association Supply Chain Management Professional Designation Program Copyright © 2013 by the Supply Chain Management Association No part of this material in this manual may be reproduced without the prior written consent of the Supply Chain Management Association. 777 Bay Street, Suite 2701, P.O. Box 112, Toronto, Ontario M5G 2C8 Tel: (416) 977-7111 Fax: (416) 977-8886 Web Site: www.scmanational.ca. Use of this material is restricted to SCMA and its Provincial/Territorial Institutes for the express purpose of delivering the Supply Chain Management Designation Program. No other use is authorized, expressed, or implied. This material must be used in its entirety. © Supply Chain Management Association Supply Chain Management Professional Designation Program Module Three Logistics and Transportation Information and Overview .................................................................................................... IO – 1 General Information ........................................................................................................ IO – 2 Module Overview ........................................................................................................... IO – 4 Module Readings ............................................................................................................ IO – 7 Session and Reading...

Words: 6233 - Pages: 25