Exercise 4. Choose the right variant.



1. My sister ... interested in medicine ever since she was a

child.

a) is                               c) has been

b) was                            d) will be

2. When I started working for this company, I ... an architect for six years already.

a) has been                    c) was

b) had been                   d) have been

3. I'll take the decision after I ... to the manager.

a)speak                         c) has spoken

b) will speak                 d) spoke

4. Look! That window just ... again!

a) has broken                c) has been broken

b) broke                         d) break

5. This cafe used to be much ... before they opened the new one next door.

a) popular                     c) most popular

b) more popular           d) the most popular

6. My company has treated me well, and given me ... chance to succeed.

a) every                         c)each

b) all                              d) either

7. There may be no need to go to school in the future, since everyone will have a computer ... home.

a) -                                c)in

b) at                               d) for

8. The pilot ... land the plane on only one engine.

a) could                         c) must

b) was able to               d) need

9. ... marriages end in divorce these days.

a) many                         c) few

b) much                         d) a few

10. You have to learn to accept ... ups and downs of life.

a) the                             с) а

b) -                                d) this

11. Belarus has always been rich in ... talented and gifted people.

a) an                              c) the

b) a                                d) -

12. Where ... my scissors? I can't find them.

a) is                               c) was

b) are                             d) has been

13. I don't believe in ghosts, so I'm not afraid ... them of course.

a) of                               c) in

b) at                               d) –

14. The two Prime Ministers ... discuss the current economic crisis tomorrow.

a) can                            c) has to

b) may                           d) are to

15.I think he was lonely because he had ... friends and none of his neighbours ever spoke to him.

a) few                            c) many

b) a few                         d) much

16. The journey to Paris had taken much ... before they built the Channel Tunnel.

a) longer                       c) long

b) the longest               d) longest

17. A small sum of money ... from the cash some days ago and nobody knows who did it.

a) steal                          c) is stolen

b) stole                              d) was stolen

18. Man ... first in East Africa.

a) is discovered            c) discover

b) discovered                d) was discovered

19. Why are you so dirty? - I ... in the garden.

a) dig                             c) was digging

b) dug                            d) have been digging

20. Next summer we ... here for 20 years.

a) will live                    c) will be living

b) will have been living d) are living

 

 

Exercise 5. Choose the right variant from the words in brackets.

1. My brother has got (a lot, a lot of, much) stamps in his collection but I have (few, little, a little) in (my, mine, our).

2. The article (publish) in tomorrow's newspaper. I'll bring you the paper if I (be able) to buy it.

3. The accident looked (serious, seriously), but fortunately (somebody, nobody, anybody) (injure).

4. Where did you buy (this, these, that) trousers? - I bought (it, them, that) in the (near) department store some days ago. They still (sell) (they, them, it). I just (be) there.

5. Oh, Kate! I'm glad to see you. I (not, see) you for ages. You look (nice, nicely) and (happy, happily) today. - I feel much (good) than yesterday. I (work) hard this term and by the end of next week I (pass) all my exams, then I (go) on holiday.

6. I asked my teacher if we (be able) to read (a/an, the, -) English books in (a/an, the, -) original soon.

7. I hope you (inform) us when the documents (sing) (with, by) the boss.

8. The secretary (know) when the president (take) the final decision (at, by, on) this issue?

9. I want to know if the latest model of refrigerators you are going to produce (be) of higher quality (than, then) the previous one.

10. He asked the manager if they (settle) the price problem (by, in, through) the end of next month.

11. She didn't even ask me if I (help) her to do (these, this) translation, and I didn't know when I (have) spare time to do it.

12. The girl asked her mother when she (buy) her (the other, another) parrot, as their old one (fly) away.

13. The manager asked (a/an, the, -) secretary if she (be able to) arrange everything herself for the reception of the foreign delegation.

14. My friend wanted to know if I (buy) a flat in a new district or in (a/an, the, -) centre of the city. But as I (not, save up) for any of them yet, I told him (something, nothing, few) about my plans.

15. The guide asked the tourists if they (want) to see the sights of (a/an, the, —) Tower when they (arrive) (to, in, at) London.

WRITING

Projects. Choose and perform one of the projects given.

1. Select one of the following statements and argue for or against it:

- People have the “right” to hone their computing skills by breaking into computers.

- A person who creates a virus is perfectly justified in releasing it if the purpose is to make everyone aware of these security breaches.

- Computer crimes are no different from other crimes, and computer criminals should be held responsible for the damage they cause.


UNIT 21

DATABASES

Vocabulary Bank Unit 21

Task 1. Read, write the translation and learn the basic vocabulary terms:


1. an indexed filing cabinet

2. averaging

3. background

4. bearing (n)

5. BLOB (binary large objects)

6. Boolean data

7. card index system

8. challenging task

9. commission field

10. consistent position

11. conversion routine

12. decision making

13. enormous

14. envision

15. essential

16. export routine

17. extensive

18. fixed-length

19. flexibly

20. fluency

21. inaccurate

22. integer

23. intricacies

24. invoice

25. joining tables

26. lookups

27. manual filing system

28. meaningful

29. merging

30. messy

31. pay check

32. percentage

33. perspective

34. redundancy

35. relational database

36. sophisticated query languages

37. SQL (structured query language)

38. table’s sort key

39. term parameter

40. timely

41. to accomplish

42. to compile

43. to concise

44. to contain

45. to delineate

46. to prevent

47. to retrieve

48. to specify

49. to stand for

50. to think ahead

51. treatment

52. user-defined

53. validation rules

54. validity

55. variable-length

56. well-defined



Text 21A. DATABASE DESIGN

With a database you can store, organize and retrieve a large collection of related information on computer. If you like, it is the electronic equivalent of an indexed filing cabinet. Let us look at some features and applications.

Information is entered on a database via fields. Each field holds a separate piece of information, and the fields are collected together into records. For example, a record about an employee might consist of several fields which give their name, address, telephone number, age, salary and length of employment with the company. Records are grouped together into files which hold large amounts of information. Files can easily be updated: you can always change fields, add new records or delete old ones. With the right database software, you are able to keep track of stock, sales, market trends, orders, invoices and many more details that can make your company successful.

Another feature of database programs is that you can automatically look up and find records containing particular information. You can also search on more than one field at a time. For example, if a managing director wanted to know all the customers that spend more than £7,000 per month, the program would search on the name field and the money field simultaneously.

A computer database is much faster to consult and update than a card index system. It occupies a lot less space, and records can be automatically sorted into numerical or alphabetical order using any field.

The best packages also include networking facilities which add a new dimension of productivity to businesses. For example, managers of different departments can have direct access to a common database, which represent an enormous advantage. Thanks to security devices, you can share part of your files on a network and control who sees the information. Most aspects of the program can be protected by user-defined passwords. For example, if you wanted to share an employee’s personal details, but not their commission, you could protect the commission field. In short, a database manager helps you control the data you have at home, in the library or in your business.

The key to an effective database is its initial design. In a well-designed database, data can be flexibly manipulated to produce timely, meaningful, and accurate information for decision making. Bad database design can lead to messy database, lost records, and inaccurate data. The goal of database design is to store information so that it easy to access and maintain, but concise enough to take up as little disk space as possible.

The term database structure refers to the arrangement of fields, tables, and relationships in a database. The first step in structuring a relational database is to determine what data must be collected and stored. To do so, a database designer might begin by consulting users and studying the current filing system to compile a list of available data as well as any additional data necessary to produce on-screen output or printed reports.

After the designer determines what data to store, the next step is to organize that data into fields. It is usually easy to break data into fields just by using common sense and considering how people might want to access the data. Any data that people would to search for, sort on, or use in a calculation should be in its own field. The treatment of first and last name illustrates the concept of breaking data into fields. A database designer could define a field called Name to hold an entire customer’s name.


With the entire name in one field, however, the database would not be able to access individual parts of the name, making it difficult to alphabetize customers by last name or to produce a report in which names appear in one field. That’s why the last names are stored in a different field than first names.

Although two people might have, for example, the same name or two paychecks might contain the same amount, a computer must have some way to differentiate between records. A primary key is a field that contains data unique to a record.

The data that can be entered into a field depends on the field’s data type. From a technical perspective, data type specifies the way data is represented on the disk and in RAM. From a user perspective, the data type determines the way data can be manipulated. When designing a database, each field is assigned a data type. Data can be broadly classified as numeric or character. Character data contains letters, numerals and symbols not used for calculations. Numeric data contains numbers that can be manipulated mathematically by adding, averaging, multiplying and so forth. There are several numeric data types, including real, integer, and date. The real data type is used for fields that contain numbers with decimal places- prices, percentages, and so on. The integer data type is used for fields that contain whole numbers-quantities, repetitions, rankings, and so on. The date data type is used to store dates in a format that allows them to be manipulated, such as you want to calculate the numbers of days between two dates.

The text data type is typically assigned to fixed-length fields that hold character data- people’s names, albums titles, and so on. Text fields sometimes hold data that looks like numbers, but doesn’t need to be mathematically manipulated. Telephone numbers and ZIP codes are examples of data that looks numeric, but should be stored in text fields. A memo data type usually provides a variable-length field into which users can enter comments. The logical data type (sometimes called a Boolean or yes/no data type) is used for true/false or yes/no data using minimal storage space. Some file and database management systems also include additional data types, such as BLOBs and hyperlinks. A BLOB (binary large object) is a collection of binary data stored in a single field of a database. BLOBs can be just about any kind of data you would store as a file, such as an MP3 music track. The hyperlink data type stores URLs used to link directly from a database to a Web page.

The information produced by reports and processing routines is only as accurate as the information in the database. Unfortunately, data entry errors can compromise the accuracy and validity of a database. When designing a database, it is important to think ahead and envision potential data entry errors. Preventing every typographical error is not possible. However, it is possible to catch some of these errors by using field validation rules, list boxes, or lookups. A process called normalization helps to create a database structure that can save storage space and increase processing efficiency. The goal of normalization is to minimize data redundancy – the amount of data that is repeated or duplicated in a database.

Records in a database can be organized in different way depending how people want to use them. No single way of organizing the data accommodates everyone need’s, but tables can be sorted or indexed in multiple ways. A table’s sort order is the order in which records are stored on disk. Sorted tables typically produce faster queries and updates. In a sorted table, new records are inserted to maintain the order. Most DBMSs use a sort key to determine the order in which records are stored. A table’s sort key is one or more fields used to specify where new records are inserted in a table. A database index can be used to organize data in alphabetic or numeric order. A database index contains a list of keys, and each key provides a pointer to the record that contains the rest of the fields related to that key.

Designing the database user interface can be a challenging task. If a company’s database includes multiple tables used by many different people, a professional user interface designer usually creates and maintains the user interface. Large databases might even require a group of user interface designers, meanwhile the interfaces for smaller databases, such as those used by small business or individuals, is most likely created by a single one.

A well-defined user interface for a database should be clear, intuitive, and efficient. A designer might consider the following principles:

Arrange fields in a logical order beginning at the top-left of the screen. The first field should be those used most often or those that come first in the data entry sequence.

57. Provide visual clues to the entry areas. An edit box, line, or shaded area can delineate data entry areas.

58. Entry areas should appear in a consistent position relative to their labels. By convention, labels are placed left of the entry areas or above them.

59. Provide a quick way to move through the fields in order. By convention, the tab key performs this function.

60. If all fields do not fit on a single screen, use scrolling or create a second screen.

61. Provide buttons or other easy-to-use controls for moving from one record to another.

62. Supply on-screen instructions to help ensure that data is entered correctly. Web database can benefit from links to help pages.

After the design for the database structure is completed, it is time to load the database with an initial set of data. Data can be loaded into a database manually by using generic data entry tools supplied with the DBMS or by using a customized data entry module created by the database designer. Entering data manually can take a long time, however, and mistakes such as misspelling are common. If the data exists electronically in another type of database or in flat files, it is usually possible to transfer the data using a custom-written conversion routine or import and export routines. A conversion routine converts the data from its current format into a format that can be automatically incorporate into the new database. It takes some time and requires knowledge about database formats to write conversion routines, but for large databases, it’s much quicker to convert data than to re-enter it manually. Converting data also results in fewer errors.

Some DBMSs provide built-in import and export routines that automatically convert data from one file format to another. An import routine brings data into a database. For example, if data was previously stored as a spread-sheet file, an import routine in Microsoft Access can be used to transfer data from the spreadsheet to an Access database. In contrast, an export routine copies data out of a software package, such as spreadsheet software, and into the database. Typically, you would use either an import routine or an export routine to move data from one location to another, but not both.

 

 


Дата добавления: 2018-10-26; просмотров: 551; Мы поможем в написании вашей работы!

Поделиться с друзьями:






Мы поможем в написании ваших работ!