Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Supplementary tasks   arrays
MIỄN PHÍ
Số trang
9
Kích thước
262.1 KB
Định dạng
PDF
Lượt xem
1316

Supplementary tasks arrays

Nội dung xem thử

Mô tả chi tiết

1

Chapter 7: Arrays

A. Review

A.1. What is an array? Give at least two examples in our real world and their representations using

arrays in the C language.

A.2. Distinguish a conventional one-dimension array of characters and a string in the C language. Give an

example for an illustration of their differences.

A.3. What is a multidimensional array? Give at least two examples in our real world and their

representations using multidimensional arrays in the C language.

A.4. Why is an array passed by reference to a function call? Give an example for illustration.

B. Practice

B.1. Determine arrays in each problem in Chapter 1.

B.2. Define appropriate arrays for each description below.

B.2.1. A list of grades of all the courses you study in a year.

B.2.2. Lists of grades of all the courses all of you study in a year. Each list is used for representing the

annual grades of each of you.

B.2.3. A list of locations of places in a country where each location is represented by longitude and

latitude.

B.2.4. Lists of locations of places for all the regions in a country where each location is represented by

longitude and latitude and each list is used for each region.

B.2.5. A list of shopping malls in a city.

B.2.6. A list of customers each of which includes: customer identifier, name, address, transaction list. A

transaction list contains the information about all the transactions that each customer had with an

enterprise. Each transaction list includes: transaction identifier, date, product list, total value. A product

list contains the information about all the products bought by a customer in a transaction. It includes:

product identifier, name, branch, unit price, bought amount.

B.3. Identify errors in the following programs. Make changes on them so that they are error-free. What

are the outputs on screen?

B.3.1.

Tải ngay đi em, còn do dự, trời tối mất!
Supplementary tasks arrays | Siêu Thị PDF