I need help with an assembly code program

The city of New York provides a monthly detailed listing of taxi rides within the five boroughs.

Your assignment is to read in an extract of the destinations, which are provided in latitude and

longitude. Each destination should be plotted as a point on a gray scale bit map.

Since many trips will be to the same destination, the output could be in heat map format, where

each pixel is coded brighter if it is visited many times, and set to zero (black) if it is not a destination. However,

for this lab assignment, only set the pixel to black or white.

Write a program based on the Week 5 Lab Exercise program B to read in the file of destinations and plot them on a

bit map. The dimensions should be 1024 by 1024 pixels. The background color should be black. The center point of

the plot area should be latitude 40.765482, longitude -73.980006. (This the corner of 7th Avenue and West 57th Street,

i.e. Carnegie Hall.) The southern boundary should be roughly 40.700455 and the northern boundary should be roughly

40.830509. The eastern and western boundaries will be proportionate to these.

The processing steps are basically:

  1. Create a character array, 1024 by 1024 entries.
  2. Open the input file.
  3. Read in data. You will have to decide how much. Each longitude and latitude point will comprise two float values.
  4. Validate that the longitude and latitude are within the bounds of the bit map. This step must be done in x87 assembly.
  5. Convert the longitude and latitude to a position within the bit map. This step must be done in x87 assembly.
  6. Set that position to 255. This step must be done in x87 assembly.
  7. At the end of the input, write out the bit map headers, color map, and the bit map array itself.
  8. End the program.


Get Help With a similar task to - I need help with an assembly code program

Login to view and/or buy answers.. or post an answer
Additional Instructions:

The city of New York provides a monthly detailed listing of taxi rides within the five boroughs. Your assignment is to read in an extract of the destinations, which are provided in latitude and longitude. Each destination should be plotted as a point on a gray scale bit map. Since many trips will be to the same destination, the output could be in heat map format, where each pixel is coded brighter if it is visited many times, and set to zero (black) if it is not a destination. However, for this lab assignment, only set the pixel to black or white. Write a program based on the Week 5 Lab Exercise program B to read in the file of destinations and plot them on a bit map. The dimensions should be 1024 by 1024 pixels. The background color should be black. The center point of the plot area should be latitude 40.765482, longitude -73.980006. (This the corner of 7th Avenue and West 57th Street, i.e. Carnegie Hall.) The southern boundary should be roughly 40.700455 and the northern boundary should be roughly 40.830509. The eastern and western boundaries will be proportionate to these. The processing steps are basically: Create a character array, 1024 by 1024 entries. Open the input file. Read in data. You will have to decide how much. Each longitude and latitude point will comprise two float values. Validate that the longitude and latitude are within the bounds of the bit map. This step must be done in x87 assembly. Convert the longitude and latitude to a position within the bit map. This step must be done in x87 assembly. Set that position to 255. This step must be done in x87 assembly. At the end of the input, write out the bit map headers, color map, and the bit map array itself. End the program. Notes Your input will be a binary file. You can read in more than two floats at a time from the input file. The bit map will use a Mercator projection, so no adjustment of the longitude value will be needed. To convert latitude to a bit position, subtract the bottom boundary from it, then divide by the latitude range of the bit map (top minus bottom), then multiply it by the vertical dimension of the bit map in pixels. So, for: 40.748418 (latitude of the Empire State Building) a. subtract the bottom boundary: 40.748418 - 40.700455 = 0.047963 b. divide by the latitude range of the bit map: 0.047963 / (40.830509 - 40.700455) = 0.047963 / 0.130054 = 0.3687929... c. multiply that quotient by the vertical dimension in pixels: 0.3687929 * 1024 = 377.64 = 378. Follow a similar process for the longitude. Remember that west longitudes are expressed as negative numbers, with the absolute value of the number growing larger the further west the point, up to a maximum of 180. Sample Output The following image was created in a sample solution to the lab assignment. It uses the same binary file mentioned above. The file has 10,000 pairs of latitude and longitude sets. Of these, 784 were outide the drawing boundaries. This sample is not representative of what your output should look like. In particular, if each pixel is incremented by one, the result will look like a black image, since only a handful of the points had more than 3 entries. To make the points more obvious, the example sets the pixel to 255 no matter how many stops were represented. This is not a heat map, which will have varying intensities.

Related Questions

Similar orders to I need help with an assembly code program
43
Views
0
Answers
PG2 – LAB 2: BLACKJACK OBJECTS
CONTENTS Overview........................................................................................................................................................................2 Part A - Classes......................................................
24
Views
0
Answers
Excel Project with Documentation
In a new sheet, create one-variable data tables for these food items. For each previously selected food item, create a two-variable data table that calculates the amounts of calories based on various portion sizes and the number of portions. I have att...
52
Views
0
Answers
Computer Vision - (Machine Learning, Artificial Intelligence field) assignment in python
Video processing, image processing, object detection, object tracking, background removel. It needs to be in PYTHON. Objective The goal of this project is to develop an automatic system for video analysis of footages for the game of curling. The system...
19
Views
0
Answers
Writing and understanding simple java program code
I need help writing a java program with an Eclipse IDE. Once written I need to identify, objects, lists, algorithms, set of instructions, anything that explains how the code is written, what it does, and how an end user will use it...