Questions
Understanding the distinction between the vector and raster data representations is fundamental to the use of...

Understanding the distinction between the vector and raster data representations is fundamental to the use of GIS. What are both the pros and cons of vector and raster datasets?

In: Computer Science

#include <stdio.h> #include <stdint.h> char sz_1[] = "Upper/LOWER."; char sz_2[] = "mIXeD CaSe.."; /* copies psz_2...

#include <stdio.h>
#include <stdint.h>

char sz_1[] = "Upper/LOWER.";
char sz_2[] = "mIXeD CaSe..";


/* copies psz_2 to psz_1, downcases all letters */
void dostr (char* psz_1,char* psz_2) {
uint8_t u8_c;

while (*psz_2 != 0) {
u8_c = *psz_2;
if (u8_c > 0x2F) {
/* make sure it is not a special char */
*psz_1 = u8_c | 0x20; /* sets this bit */
} else {
/* leave special chars alone */
*psz_1 = u8_c;
}
psz_1++;
psz_2++;
}

}

int main(void) {
// Bug: MPLAB X v1.80 printf bug means strings vis %s don't print correctly.
// So, break printf into two statements.
printf("Before...\n");
printf("sz_1: '"); printf(sz_1); printf("'\n");
printf("sz_2: '"); printf(sz_2); printf("'\n");
dostr(sz_1,sz_2);
printf("After...\n");
printf("sz_1: '"); printf(sz_1); printf("'\n");
printf("sz_2: '"); printf(sz_2); printf("'\n");
return 0;
}
convert it in assembly

In: Computer Science

In the shot put, a heavy lead weight—the "shot"—is given an initial velocity, starting from an...

In the shot put, a heavy lead weight—the "shot"—is given an initial velocity, starting from an initial elevation approximately equal to the shot putter's height, say, 1.96 m. If v0 = 8.70 m/s, find the horizontal distance traveled by the shot for the following initial angles above the horizontal.

(a) θ0 = 0°


(b) θ0 = 40.0°


(c) θ0 = 45.0°

In: Physics

Please solve using simple python programming language and make it easy to understand explain your code...

Please solve using simple python programming language and make it easy to understand explain your code as I am a beginner, use appropriate variable names which make the code easy to understand and edit if needed.

A subsystem responsible for delivering priority numbers to an automated irrigation system has stopped working and you need to deliver a quick fix that will work until the actual subsystem is fixed by senior developer.

As you are the newest addition to the development team you have not fully grasped the complete picture of how all the systems work yet but you are confident you can solve this as you got a few hints from a senior developer.

Here is what the senior developer told you as he was running out the door.

  • There are two files with numbers in them
  • Each line in the files can contain one or more numbers, if there are more than one number on a line, they are separated by spaces
  • Both files will contain both odd and even numbers
  • You need to create a filter that can pick all odd numbers from one file and all even numbers from the other file
  • You then need to combine all the filtered out odd and even numbers (from the two files), and sort them in a reversed order using something called Bubble Sort.

He did not say it explicitly but you also understood that when you are done with the above steps, you need to display the sorted list of numbers on the screen.

When it comes to the design of the script there are a few requirements, there needs to be a main function that parses two command line arguments to file paths. From the first file (first argument) all odd numbers are read, and from the second file (second argument) all even numbers are read. The two lists of numbers are then combined and reverse sorted. The result from the sort is displayed on screen. Besides the main function the following functions must be present, and used.

read_file(filename)
Reads all the numbers in the specified file and adds them to a list as integers. The list is returned from the function.

filter_odd_or_even(numbers, odd)
The first parameter is a list of numbers and the second parameter is a Boolean value specifying if the filter function shall keep the odd numbers (True) or the even numbers (False). The function shall create a new list that is filled with either the odd or even numbers from the parameter list depending on the odd parameter. The new, filtered, list shall be returned from the function.

reversed_bubble_sort(numbers)
Takes a list of integer numbers as parameter and sorts it in place. Sorting it in place means there is no need to return anything from the function, the calling function will already have access to the sorted list. The sorting shall be done using Bubble Sort (Links to an external site.), but in reverse order. Reverse order means that the biggest number shall be first and the smallest last. The implementation of Bubble Sort shall not be optimized using the optimization described in the link above.  

In: Computer Science

. Do some research about the first handgun printed using a 3-D printer and report on...

. Do some research about the first handgun printed using a 3-D printer and report on some of the concerns raised.

In: Computer Science

Which intervention will the nurse include in the care plan for a patient hospitalized with viral...

Which intervention will the nurse include in the care
plan for a patient hospitalized with viral hepatitis?

a) Bland diet
b) Administer antibiotics as ordered.
c) Increase fluid intake to 3000 mL per day
d) Adequate bedrest


In: Nursing

Can carbon be made into a semiconductor? EXPLAIN

Can carbon be made into a semiconductor? EXPLAIN

In: Chemistry

I want report about the Ethics and Social Responsibility?

I want report about the Ethics and Social Responsibility?

In: Operations Management

1) What were the 5 largest surprises about your spending habits? Please be specific. 2) What...

1) What were the 5 largest surprises about your spending habits? Please be specific.

2) What 5 things can you do to improve your tracking and understanding of where your money goes? Again, be specific.

3) What 5 things are you doing well to manage your expenses? We all have positives, what are yours?

4) If you could "start over" what would you do?

5) Has your perception of managing your own money changed in any way? How so? If not, why not? (No is indeed a fine answer but why not?)

In: Operations Management

Jarvene Corporation uses the FIFO method in its process costing system. The following data are for...

Jarvene Corporation uses the FIFO method in its process costing system. The following data are for the most recent month of operations in one of the company’s processing departments:

Units in beginning inventory 380
Units started into production 4,260
Units in ending inventory 260
Units transferred to the next department 4,380
Materials Conversion
Percentage completion of beginning inventory 80 % 20 %
Percentage completion of ending inventory 80 % 40 %

The cost of beginning inventory according to the company’s costing system was $7,887 of which $4,867 was for materials and the remainder was for conversion cost. The costs added during the month amounted to $178,496. The costs per equivalent unit for the month were:

Materials Conversion
Cost per equivalent unit $18.00 $23.00

Required:

1. Compute the total cost per equivalent unit for the month.

2. Compute the equivalent units of material and conversion in the ending inventory.

3. Compute the equivalent units of material and conversion that were required to complete the beginning inventory.

4. Compute the number of units started and completed during the month.

5. Compute the cost of ending work in process inventory for materials, conversion, and in total for the month.

6. Compute the cost of the units transferred to the next department for materials, conversion, and in total for the month.

In: Accounting

Consider a rural household thinking about encouraging one or more members to migrate to a city...

Consider a rural household thinking about encouraging one or more members to migrate to a city for work. Explain the different mechanisms through which migration may increase (or decrease) that household’s wealth.

In: Economics

essay how companies differentiate and position their products for maximum competitive advantage( marketing)

essay
how companies differentiate and position their products for maximum competitive advantage( marketing)

In: Operations Management

What is Cloud Infrastructure? Explain in a short paragraph.

  1. What is Cloud Infrastructure? Explain in a short paragraph.

In: Computer Science

can you give an abstract and conclusion about cybersecurity in autonomous vehicles?

can you give an abstract and conclusion about cybersecurity in autonomous vehicles?

In: Operations Management

For a given two-dimensional array in C as follows (Each int-type element occupies 4 bytes of...

For a given two-dimensional array in C as follows (Each int-type element occupies 4 bytes of memory)

int A[8][16]; 

If the address of A[1][4] is 0x0FFA0040, what is the memory address of A[2][6]?

In: Computer Science