The greatest amount of oil pollution comes from the large oil tanker accidents near ports and in rivers. The correct answer is option c.
Considering the various ways in which oil pollution can reach the North American oceans, the greatest amount of oil pollution comes from large oil tanker accidents near ports and in rivers. The oil tanker accidents occur because of the breaking of oil tankers while they are transporting oil to different countries through the ocean water.
The oil pollution results in severe damage to the aquatic life of the oceans. It is the largest cause of water pollution, which is why measures are taken by different environmental organizations to prevent oil pollution from reaching the oceans, leading to severe consequences on a global scale. The other sources of oil pollution are also harmful to the aquatic life, but the impact of large oil tanker accidents near ports and in rivers is greater than other sources.
Learn more about oil pollution here: https://brainly.com/question/28674739
#SPJ11
Complete this function, such that it receives a lowercase letter which is guaranteed, and returns an upper case letter:
char to_upper(char c){}
2) Complete this function, such that it receives an integer array and its length, and returns the index of the largest member. The length will not exceed the int limits.
int arg_max(int nums[], int len){}
3) Complete this function, such that it receives a char array with a length of 33 given and an unsigned integer and converts the integer into its binary format, and put the results into the char array.
For example:
5 => "00000000000000000000000000000101"
void to_binary(char binary[], unsigned int n){}
The complete function for the conversion, integer array and char array is determined.
1) The function to_upper() should take in a lowercase letter c as an argument and return its uppercase equivalent. The following code snippet should do the trick:
char to_upper(char c) {
return c - 32;
}
2) The function arg_max() should take in an integer array nums and its length len as arguments and return the index of the largest member. The following code snippet should do the trick:
int arg_max(int nums[], int len) {
int index_of_max = 0;
for (int i=1; i nums[index_of_max])
index_of_max = i;
}
return index_of_max;
}
3) The function to_binary() should take in a character array binary and an unsigned integer n as arguments and convert the integer into its binary format and store the result in the character array. The following code snippet should do the trick:
void to_binary(char binary[], unsigned int n) {
int i = 0;
while (n > 0) {
binary[i] = n % 2 + '0';
n = n / 2;
i++;
}
for (int j=i; j<33; j++)
binary[j] = '0';
binary[32] = '\0';
}
Learn more about Integer array here:
https://brainly.com/question/29413848
#SPJ11
Let a 2 - D array declaration be char Arr[100][100] store data such that the base address of the array is 0. Additionally, considering the array to be byte addrassable, what would be the address of element stored at arr[20][30].
The address of the element stored at arr[20][30] in the 2-D array declaration char Arr[100][100] would be 30 + 20 * 100 = 2030.
The declaration of the 2-D array is shown below:
char Arr[100][100]
Here, Arr is a 2-D array consisting of 100 rows and 100 columns. This means that there are a total of 10,000 elements in this array. Each element of this array is of type char. Therefore, each element will occupy a single byte of memory.
The array is byte-addressable. This means that each element of the array is accessible using its byte address. Since each element occupies a single byte of memory, the byte address of an element is the same as its memory address.
To calculate the address of the element stored at arr[20][30], we first need to understand how the elements are stored in the array.
The elements of a 2-D array are stored in row-major order. This means that the elements of the first row are stored first, followed by the elements of the second row, and so on. Within a row, the elements are stored from left to right.Now, to calculate the address of the element stored at arr[20][30], we need to calculate the byte address of this element. Since the array is byte-addressable, we can calculate the byte address of an element by multiplying its row number by the number of columns in the array and adding its column number. This gives us the following formula:
Byte Address of Element = Base Address + (Row Number * Number of Columns + Column Number)
Since the base address of the array is 0, we can simplify this formula to:
Byte Address of Element = Row Number * Number of Columns + Column Number
Using this formula, we can calculate the byte address of the element stored at arr[20][30] as follows:
Byte Address of Element = 20 * 100 + 30 = 2030
Therefore, the address of the element stored at arr[20][30] is 2030.
Learn more about 2-D array declaration here:
https://brainly.com/question/26104158
#SPJ11
Find the rate of heat transfer by convection (kW) when: the convective heat transfer coefficient is 7.2 W/Km^2, the surface area is 16 m^2, the surface temp. is 317 K, and the surrounding temp. is 429 K.
The rate of heat transfer by convection (kW) when the convective heat transfer coefficient is 7.2 W/Km², the surface area is 16 m², and the surface temp. is 317 K, and the surrounding temp. is 429 K.
Heat transfer is the method of exchanging heat energy from one location to another. The three methods of heat transfer are conduction, convection, and radiation. The rate of heat transfer by convection is given by;
Q = h.A (T surrounding - T surface)
Where Q is the rate of heat transfer by convection h is the convective heat transfer coefficient A is the surface area t surface is the surface temperature t surrounding is the surrounding temperature Given, h = 7.2 W/Km²
A = 16 m²t
surface = 317 Kt surrounding = 429 K.
Substitute the given values into the formula;
Q = 7.2 × 16 × (429 - 317)Q = 7.2 × 16 × 112Q = 12902.4 W = 12.902 kW
Therefore, the rate of heat transfer by convection is 12.902 kW.
learn more about heat transfer at: brainly.com/question/30416117
#SPJ11
which of the following is used to process and display browser database application forms, reports, and queries?
The following is used to process and display browser database application forms, reports, and queries: Web Application Server (WAS) is a server that uses web application server technology to deliver web-based applications.
It is a program that manages user requests for web pages and is responsible for generating content that is returned to the user's browser. A Web Application Server is responsible for translating browser requests into database queries that generate the desired output in the form of web pages. A web application server's primary purpose is to deliver web pages that are dynamically generated.
When web users request information from a database via an application, the web application server will interact with the database on the user's behalf. The following are some of the features of web application servers: Database connectivity support is provided. Session management is supported.
Security authentication and authorization for users is provided. Processing of complex business logic is supported. Support for multiple languages is provided. Logging and auditing capabilities are provided in a web application server. A web application server's core responsibility is to provide a runtime environment for web applications. It enables developers to create and deploy applications that can be accessed via the web.
For more such questions on Web Application Server
https://brainly.com/question/26281028
#SPJ11
Identify the option that defines how positions are measured on the background in the following background property:
background: color url(url) position / size repeat attachment
origin clip;
The option that defines how positions are measured on the background in the following background property: position.
What is positions?Positions are the places or orientations of objects relative to each other. They are used to describe the orientation of a physical object in space, or the physical location of an object in a two-dimensional or three-dimensional environment. Positions can be described in terms of x, y and z coordinates, which are used to denote the position of an object in a three-dimensional space. Positions can also be described in terms of angles and distances, which are used to denote the orientation of an object in a two-dimensional space. Positions can be used to describe the location of an object in relation to another object in a scene, or the relationship between different objects in the same scene.
To learn more about positions
https://brainly.com/question/17422777
#SPJ1
A major coffee retailer seeks Accenture's help to improve its supply chain
management. Accenture should suggest an enterprise platform utilizing which type
of process?