CMPT 384 Assignment 1 (JavaScript代写,HTML代写,北美程序代写,加拿大程序代写,CMPT384代写)

Write a program that generates real numbersxandyat random in the range 2 < x < 2 and 2 < y < 2

联系我们
微信: biyeprodaixie 欢迎联系咨询

本次CS代写的主要涉及如下领域: JavaScript代写,HTML代写,北美程序代写,加拿大程序代写,CMPT384代写

CLARIFICATION QUESTIONS

Please ask any question related to this assignment in the class or in the Moodle forum. To be fair to everyone, it
is best to ask assignment question openly rather than in email. Do not share your code with anyone. Do not post
your code online. Do not ask for help in any public discussion forum (e.g., Stackoverflow or developer forums).
You can search over the internet and read books. Let me know if you find any error in the assignment question
as soon as possible. DO NOT SHARE OR DESCRIBE YOUR OUTPUT TO ANY OTHER STUDENT. You can
always ask questions about the methods, definitions or approaches to solve a question. Any case of plagiarism will
be reported to the Department of Computer Science.

ASSIGNMENT 1

Q1: GOAL: SIMPLEPLOTTING IND3, MARK: 30

Write a program that generates real numbersxandyat random in the range 2 < x < 2 and 2 < y < 2 until you find 1000 points that satisfy the following equation(x^2 +y^2 1)^3 x^2 y^3 < 0. Plot these points in a scatter plot. Submission Instruction : You must use D3 version 5+ to create the plot. Submit your code as a single .html file named ‘Q1_NSID.html’. Clicking on the file must generate the output on the browser. Bonus Point : Add axis to your plot so that one can clearly see the point (0,0) as the intersection of X and Y axes.

HINT

If you do it right, you will get the heart shape. You may need to increase the number of points to get a smooth
shape. You can also try it out with(x^2 +y^2 1)^3 x^2 y^3 < 0 : 07 and get a Mickey mouse.

Q2: GOAL: DATA READ IND3, MARK: 30

Write a program that reads the data file msl.csv, normalize the values between 0 to 1, and write the first row and first column using console.log(). For eachx; ycoordinate, draw a circle with a radius equal to 5 times the value at that coordinate. Submission Instruction : You must use D3 version 5+ to create the plot. Submit your code as a single .html file named ‘Q2_NSID.html’. Clicking on the file must generate the output on the browser. Do not log any unnecessary values in the console.

Q3: GOAL: COMBINESTATISTICS IND3, MARK: 30

This is a continuation of Q2. After you are done with the normalization, find the 25, 50 and 75 percentile values and log those into the console. Color the circles of your previous plot with radii falling within [0-25%], [25%-50%], [50%-75%] [75%-100%] using White, Green, Blue, Red colors. Submission Instruction : You must use D3 version 5+ to create the plot. Submit your code as a single .html file named ‘Q3_NSID.html’. Clicking on the file must generate the output on the browser. Do not log any unnecessary values in the console.

Q4: GOAL: SELF EXPLORATION- DATACLEANING, MARK: 10

Real life data is often messy, contains missing entries and even unexpected error. We thus need to
clean up the data before we visualize things. You are given a dataset of ‘.csv’ format (extract the given
zip file).
Submission Deadline: See Moodle 1
https://www.dropbox.com/s/0f8btqs4ht44wg5/birds.zip?dl=
The file contains 4670 columns. The column 20 to 4670 we have scientific names of the birds.
Each row looks like this:
SAMPLING_EVENT_ID LOC_ID LATITUDE ... Zosterops_samoensis
S34654 L645646 40.6514561 ... 1
S78675 L786445? ... 0
S39485? 20.6514561 ... 0
S04837? 20.6514561 ... X
S68372 L786445 X ... 1
Note that the data may contain error. An entry containing 1 below a bird’s column denotes a
sighting of that bird. Here is the lovely bird Zosterops_samoensis. In the table above, we have two
sightings of this bird.

TASKS

Your task in this question is to write a program that creates a new csv file sample.csv.
sample.csv is created by taking, for eachi= 0; 1 ; 2 ; : : :, exactly 10 consecutive rows starting from the
(10000i)th row.
While creating these new csv files, ignore the columns that do not represent birds. You must fill all
the erroneous entries in the bird columns with 0 (Any non-integer value is an error).

INSTRUCTIONS

  1. unzip the birds.zip file.
  2. You can use any programming language (python, java, c++, or, c) of your choice and commonly used libraries to complete the assignment.

SUBMISSION

Do not use any Software (e.g., Excel or SPSS) to read and clean the data. Write your own code, and
submit your code and the two sample files in Moodle. If you were not able to complete the task, then
add a text file that describes your efforts the challenges you faced while working with this real-life
data.
Submission Deadline: See Moodle 2