Programming Homework Help

University of The Cumberlands Data Visualization and Data Scientists Discussion

 

What is data visualization?

What is the purpose of visualizing data?

What is the difference between data and information, in terms of analyzing and visualizing data?

  • What process is necessary to analyze or visualize data?
  • What techniques do you hope to learn from this course?
  • General forum requirements:
  • Three posts are required: the initial post and two peer responses.

RESPONSE 1: 

What is data visualization?

Data visualization, in simple terms, means to analyze data visually in a graphical or pictorial format. Data visualization helps decision-makers make decisions much more efficiently and effectively by making it easier to look at such massive data visually.

– What is the purpose of visualizing data?

The primary purpose of data visualization is to make it easier for decision-makers to interpret and analyze big complex data by just looking at graphs or pictures.

– What is the difference between data and information in terms of analyzing and visualizing data?

Data is a very unorganized and raw form of facts and figures or information. Data contains vast information; however, when the data is structured, interpreted, analyzed, and visualized, then it becomes information that is required.

In short, the conclusion made after analyzing and visualizing data is information.

– What process is necessary to analyze or visualize data?

The process necessary to analyze or visualize data is to first create the question and be clear on it, create or gather data, clean up the data by removing redundancies, errors, missing data, etc., selecting the graph type or pictorial best for representing the data, selecting a tool to create the pictorial format, manage the data in the tool, create a visualization.

– What techniques do you hope to learn from this course?

I really hope to learn new tools that can be used for data visualization. I also want to learn the efficient and effective ways to manage the data in raw form. I also want to be able to clean up data.

RESPONSE 2:
Peer Post 2

Data visualization is basically translating complex information into visual form so that it could be easily understood. The visual form can be in different types like maps, flowcharts, bar graphs, Pie charts, etc. Data visualizations help us to understand large data sets easily and they help us in identifying their pattern or occurrences.

The main purpose of data visualization is to collect the large/complicated data sets and compile that data into visual forms so that it becomes easy to understand and would become easy for decision making. With the help of data visualization even complex data can be understood easily and even by the person who’s not familiar with data.

Data is described as raw unstructured, unorganized facts whereas the information is basically organized and structured data that is shown or depicted in the visual form. Data is not dependent on information, but information depends on Data. Data is analyzed and transformed into a visual context which makes it as a piece of information that let us make decisions and understand the data better.

Ans:4 Design process is basically necessary for visualizing data. The design process is divided into 4 stages namely briefing the data which is usually to see that what is wrong or what we want to visualize from this data. The second part is the main in which we collect and clean the data. In the third stage, we will finalize the visualization technique to be used considering on factors like what data to display, data types, the Understanding ability of the audience. Forth and the last stage is creating the data into a visualization story so that it is easy to understand and fulfills its motive.

From this course, I hope to learn data visualization techniques with which I would be able to analyze and visualize my data easily and it would be greatly helpful in my career growth too.

Programming Homework Help

Harvard University Machine Learning Algorithms in Rstudio Coding

 

I’m working on a programming project and need support to help me study.

I am working on a project in R on the babynames dataset.

I have this snippet of code analysis that works but I need to incorporate two machine learning algorithms in this project and I am not sure what to choose and how to implement.

Here is the code:

#install gender and genderdata packages and all applicable libraries

#The gender package in cran contains only demonstration data.

#For full data analysis, I had to download the genderdata package.

install.packages(“genderdata”, type = “source”,

repos = “http://packages.ropensci.org”)

install.packages(c(“gender”, “genderdata”),

repos = “http://packages.ropensci.org”,

type = “source”)

library(gender)

library(genderdata)

library(tibble)

library(dplyr)

#I used (method = “ssa”): United States from 1930 to 2012.

#Drawn from Social Security Administration data.

#I took a sample of random names from websites that identify gender neutral names

#the prospective parents could visit using a Google search and graphed them earlier.

#From the earlier analysis on each name, I chose 7 names that seemed the most neutral based on

#male and female trendlines in the charts.

ssa_names <- c(“Charlie”, “Royal”, “Morgan”, “Skyler”,

“Frankie”, “Oakley”, “Justice”)

ssa_years <- c(rep(c(2009, 2012), 3), 2012)

ssa_df <- tibble(first_names = ssa_names,

last_names = LETTERS[1:7],

years = ssa_years,

min_years = ssa_years – 3,

max_years = ssa_years + 3)

ssa_df

#This dataset connects first names to years but there are columns

#for minimum and maximum years for possible age range since birth dates are not always exact.

#We pass this to gender_df() function, which assigns the method that we wish to use and the names of the columns that contain the names and the birth years. The result is a tibble of predictions.

results <- gender_df(ssa_df, name_col = “first_names”, year_col = “years”,

method = “ssa”)

results

#gender_df() function calculates genders only for unique

#combinations of first names and years

ssa_df %>%

left_join(results, by = c(“first_names” = “name”, “years” = “year_min”))

gender_df(ssa_df, name_col = “first_names”,

year_col = c(“min_years”, “max_years”), method = “ssa”)

#Now, we use gender_df() to predict gender by passing it the columns

#minimum and maximum years to be used for each name

ssa_df %>%

left_join(results, by = c(“first_names” = “name”, “years” = “year_min”))

gender_df(ssa_df, name_col = “first_names”,

year_col = c(“min_years”, “max_years”), method = “ssa”)

ssa_df %>%

distinct(first_names, years) %>%

rowwise() %>%

do(results = gender(.$first_names, years = .$years, method = “ssa”)) %>%

do(bind_rows(.$results))

ssa_df %>%

distinct(first_names, years) %>%

group_by(years) %>%

do(results = gender(.$first_names, years = .$years[1], method = “ssa”)) %>%

do(bind_rows(.$results))

What I really want to do is to use two different algorithms to get to the best method to do that following.

1. Analyze the dataset for the names that are the closet to being equally assigned to either a male or female. The last chart shows the proportions but I want to find an algorithm that would come up with the top 10 names that are the most gender neutral.

Programming Homework Help

Trident University International Create a Java Code Computer Programming Task

 

Pseudocode is very important for programmers. It helps to sort out your thoughts before coding and is for humans (programmers), not machines. Eventually, the pseudocode will need to be converted into an actual program for the machine to read.

Write detailed pseudocode for a program that is designed to organize a family’s property tax payments for the past 20 years. The program should accomplish the following tasks:

1.Prompt the user for the property tax amount and also the year.

2.Use appropriate data structure to store the property tax amount and the year.

3.Use a linear search algorithm to determine which year the family paid the highest property tax, and display the result.

4.Calculate the average amount of property tax paid over the years, and display the result.

The program should:

Allow user input

Select appropriate data structure

Apply linear search algorithm

Please note that this is not an actual program but a program in pseudocode which can be converted into a working program.

Programming Homework Help

Introduction to Branching in ARM Assembly

 

By the time you have completed this work, you should be able to:

  • Execute instructions conditionally to accomplish larger tasks
  • Translate conditionals (if/else) to ARM assembly
  • Translate loops to ARM assembly

link to full details and lab : https://kyledewey.github.io/comp122-fall17/labs/la…

Programming Homework Help

Texas A & M University Python Jupyter Notebook Machine Learning Task

 

Need the Jupyter notebook for the following assignment: https://colab.research.google.com/drive/1WgUJBInK86LINEitsHKESaAJaPQsbwwC

I can provide solutions but need the ipynb to have different code so it is not a copy. Should be easy for anybody who understands Python.

Programming Homework Help

California University RMarkdown File with Code Computer Coding Task

 

  1. Find the most common bigrams in Wells’ novels. Show a chart and your code with comments.
  2. Show tf-idf frequency in faceted graphs of Wells’ novels.
  3. Determine how often the word ‘not’ precedes another word in Wells’ novels. Show a table.

The e-copy of the text can be found here for reference:https://www.tidytextmining.com/ngrams.html even though the text and GitHub might contain code, use your words so that there is no plagiarism. I need the rmd file so that I can execute the code on my mac and pdf of the output you executed. Always repeat the question you are answering. Thank you!

Programming Homework Help

Alabama Aviation College HTML Pages and Visual Studio Code Project

 

QUES 1. Instructions

Download the JSLab.zip file (attached in word just copy and paste it in Visual studio and follow the instructions where it says your turn.) and take the necessary steps to open it up in Visual Studio Code. YOU can name it lab15

Explanation

In the past, we have been including our script element in the head of our html page, but now we will have to rethink this.

Since we aim to interact with the elements on the page, we must consider how html pages are rendered. 

HTML pages are processed and rendered top-bottom, so where you place your <script> element actually matters. 

If you place a <script> element in the <head>, a page might take longer to “load” (visually render content) because the browser has to interpret the script before it renders content in the <body> element. However, if that content depends on the output of some JavaScript code, that code will have to finish before the content can be rendered correctly.

On the other hand, if your JavaScript code depends on certain html elements existing, then you must ensure that the elements load first (one way to accomplish this is by adding the <script> element at the end of the file).

Additionally, if you place the <script> element at the bottom of an HTML document, the page will appear to load faster (the content will be visually rendered before the scripts are interpreted), but the page content therefore cannot depend on the output of any JavaScript.

In this case because we are going to access html elements in our index.html, we want to move our script element from the head to the bottom of the body. 

Together

Move the script element from the top of index.html to the bottom so that now your index.html looks like this: attached is HTML file copy and past in Visual Studio Code. just follow this instructions and send it in zip file to me . u can name it in the vsc as index.html

<!DOCTYPE html> 

<html>
     <head>
          <title>DOM Manipulation</title>
          <link rel=”stylesheet” href=”styles/style.css”>
     </head>
     <body>
          <div class = “row” id =”pageHeaderRow”>
                 <div class = “col-12” id = “pageHeaderDiv”>
                        <h1 id=”pageHeader”>DOM Manipulation</h1>
                 </div>
          </div>
          <div class= “row”>
                  <div class= “col-12” id = “activityListDiv”>
                            <h2 id=”activityListHeader”>Activities:</h2>
                           <ol id = “activityList”>
                                 <li>Modify existing elements
                                       <ol>
                                           <li>Change content </li>
                                           <li>Change attribute values</li>
                                       </ol>
                                   </li>
                                    <li>Add elements</li>
                                    <li id = “modifyMe”>Modify me!</li>
                                    <li id=”removeMe”>Remove Me!</li>
                              </ol>
                      </div>
                </div>
               <script src= “scripts/script.js”></script>
        </body>
</html>

QUES 2. 

Begin writing your own JavaScript functions. 

Instructions

Download the JSLab16.zip file (attached below) and take the necessary steps to open it up in Visual Studio Code.

Complete the exercises in the script.js file.  name the file script.js in vsc

Ques 3. 

Instructions

Download the JSLab.zip (attached)file and take the necessary steps to open it up in Visual Studio Code.

Complete the exercises in the script.js file. 

Ques 4. Explore functions as objects and constructor functions.

Instructions

Download the JSLab.zip (attached) file and take the necessary steps to open it up in Visual Studio Code.

Complete the exercises in the script.js file. 

Ques 5. Follow the instructions below

Then progress through the examples and your turn activities. copy and paste  in Visual Studio below instructions.

//Your work goes here.

/*Explanation

Comparison operators 

==, ===, <, >, <=, >= 

Boolean operators 

|, &, ||, &&, !

*/

/*Example 

== operator */

console.log(“== operator:”);

let a = 5; 

let b = 5; 

console.log(“5 == 5”, a==b);

b = “5”; 

console.log(“5 == ‘5’”, a==b);

/*Explanation

== tests if two values are equal. But JavaScript will

coerce (change the datatype) of certain values before 

performing the comparison. */

/*Your turn

Assign ‘b’ a string that contains numerical digits. Assign the variable ‘a’

a number that the will cause == to consider the two 

variables equal. 

Print the result to the console. */

/*Example 

=== 

Comparison operator that compares the type as well as the 

value. */

console.log(“nn=== operator”)

a = “5”;

b = 5; 

console.log(“5 === ‘5’”, a===b);

/*Example

>, >= */

//Works as expected with numbers 

console.log(“nn > , >= operators”)

console.log(“5>5”,a>b);

console.log(“5>=5”,a>=b);

//Can be used with strings 

console.log(“n”)

console.log(“‘b’>’a'”, “b”>”a”);

console.log(“‘a’>=’a'”, “a”>=”a”);

console.log(“‘abc’>’abb'”, “abc”>”abb”);

/*Your turn

Compare two numbers using the less than operator.

Print the result. 

Compare two strings using the less than operator. 

*/

/*Example 

The or opertor 

|| 

*/

console.log(“nnBoolean operators:”);

a = false;

b = 5>0;

let solution = a || b;

console.log(“false || true”, solution);

/*Your turn

Assign solution the result of a and b*/

console.log(“false && true”,solution);

/*Example

The not operator

*/

solution = !(5>0);

console.log(“!(true expression)”,solution);

/*Example

What if we apply boolean operations to

nonboolean values? */

console.log(“!’somestring'”,!(“string”));

console.log(“false || 56”, false || 56);

/*Explanation

Turns out everything in JavaScript essentially has some

boolean value. Everything is truthy unless it’s falsy

The values that are falsey are: 

false, 0, null, undefined, “”, NaN */

/*Your turn

Copy and paste the next line out of the comment

console.log(“!(falsy value)”, !____);

Fill in the blank with a falsy value that isn’t the keyword false.

*/

//Finished! Nice work! Remeber these things for 

//the conditional blocks lab. 

Programming Homework Help

Alabama Aviation College VS Code and Variable Creation Project

 

copy and paste attached files into the visual studio before you follow the instruction in it

Que 6.

Open the attached document to each question up in VS code. Follow the instructions

Ques 7

Open the attached document to each question up in VS code. Follow the instructions

Ques 8

Open the attached document to each question up in VS code. Follow the instructions

Ques9

Open the attached document to each question up in VS code. Follow the instructions

Ques10

Open the attached document to each question up in VS code. Follow the instructions. In this assignment, there are errors in the script.js file.

Ques 11

copy and paste the instruction below in VS code. Follow the instructions. I

n this assignment, file. //Your work belongs in this file.

/*Example*/

//Boolean

//True or false values

console.log(“Boolean example:”); //Prints the text: Boolean example:

let booleanVariable = true;//creates variable booleanVariable, with value true

console.log(booleanVariable);//Prints booleanVariable’s value

console.log(typeof booleanVariable);//Print booleanVariable’s type

/*Explanation

typeof is a special operator in JavaScript.

It returns the type of the value or variable that follows.

*/

/*Your turn

Create a variable using the keyword const.

The name of this variable should be candyIsHealthy.

Assign this variable a boolean value.

Print the value of candyIsHealthy to the console.

*/

/*Example*/

//Number

console.log(“nNumber example:”);

let number = -12.4;

console.log(number);

console.log(typeof number);

/* Your turn

Create a variable using the keyword var.

The variable can be named whatever you want.

Assign it a number */

//Numbers can be expressed within this range

console.log(Number.MIN_VALUE+” to “+ Number.MAX_VALUE);//Prints the range of all Number types in JavaScript.

/*Explanation

Numbers in JavaScript are stored in 64-bit IEEE format

so the smallest they can get is 5*10^(-324)

and the largest is roughly 1.7977 * 10^(308) */

/*Your turn

Type in this comment, next to Answer, a whole number that you think

given the above information might not be accurately represented using the

number datatype.

Answer:

*/

/*Example*/

console.log(“nBigInt Example”);

//BigInt

let bigNumber = BigInt(Number.MAX_VALUE)+1n;

console.log(bigNumber);

console.log(typeof(bigNumber));

/*Explanation

By typing n at the end of a number you indicate to JavaScript

that it is a bigint. Bigints allow you to accurately represent

arbitrarily large whole numbers. */

/*Your turn

Create a variable using the let keyword and try to

assign it the answer you gave above using big int notation.

Note to raise a number to a power you would use the operator **.

Also note- if you do a calculation with bigints every number that is involved

must be a bigint- having an n appended to it or by being converted using BigInt().

*/

/*Example*/

console.log(“nnString example:”);

//String

let string = “This is a String”;

let string2 =’single quotes work too’;

console.log(string);

console.log(typeof string );

console.log(string2);

console.log(typeof string2 );

/*Your turn

Assign a string value to a variable you created earlier

that holds a number.

Note you don’t need to redefine the variable to assign it a new value.

Print it to the console.*/

/*Explanation

JavaScript is dynamically typed which allows us to

first assign a number to a variable and then later

assign a string. A variable can hold any kind of data

in JavaScript.*/

/*Example*/

//Null

console.log(“Null example: “)

let nullVariable = null;

console.log(nullVariable);

console.log(typeof nullVariable);

/*Explanation

Using typeof null is deceiving.

This result is an “accident” because of the

way that javascript was first defined.

The actual type of null is indeed null.

It should be used to represent the absence

of a value that is intentionality set to not

have a value.*/

/*Example*/

//Undefined

console.log(“Undefined example: “)

let undefinedVariable;

console.log(undefinedVariable);

/*Explanation

Meanwhile undefined is typically the value of

variables that have not be initialized. */

/*Your turn

Create a variable using either let or var

and print the result of using typeof

on your variable.

Then assign your new variable a value and use typeof

again- printing out the result.*/

//The final primitive is Symbol.

//Symbols are created using the function Symbol().

//This generates a value with type Symbol that JavaScript is

//guaranteed to consider unique.

//Symbols are used in the context of Objects and for now you don’t need

//to worry about the symbol type.

//We won’t talk about symbols much.

//GREAT WORK!!

Programming Homework Help

Alabama Aviation College Stack Data Structure and VS Code Answer Project

 

Ques 12.

Open the attached document to each question up in VS code answer and edit errors. Follow the instructions

Que 13
there are errors in the index.html file as well as in the second file attached. Begin debugging the index.html file, there will be instructions in the comments. Next, take a look at the script.js file.

Ques 14

Open the attached document to each question up in VS code answer and edit errors. Follow the instructions

Ques 15

errors in the file attached correct them in

Ques 16

download Eclipse for this work below:

In this assignment, you will implement a Stack data structure.

Instructions

For this assignment, you will implement a Stack data structure. A stack can be implemented in several different ways. It is not inherently a node-based data structure, but you could implement it using nodes if you like.

The most important thing to remember with stacks is the way they push, pop, and peek data.

  • push() : adds an element to the top/front of the stack
  • pop() : removes the first element from the stack, and returns it.
  • peek() : returns the first element from the stack without removing it.

Your stack should be able to support all of these functions. For example, you might have something like the following:

public class Stack {
    private Node top;

    public void push(Node newNode) {
        // your implementation here
    }
    public Node pop() {
        // your implementation here
    }
    public Node peek() {
        // your implementation here
    }
} 
 Ques 17 download Eclipse for this work below
Instructions

For this task, you will have to implement a Linked List, which is a node-based data structure. This will be easier than it seems. Recall that a node-based data structure is simply a collection of "node" objects. Each node object contains a reference to one or more other nodes, and a bit of data. Thus, your node might look like this:
public class Node {
    Node next;
    Integer data;
}
Of course, if you wanted to use generics, you could create a generic Node class which used the generic type for the "data" variable too.
A LinkedList Class might then look like this:
public class LinkedList { 
    Node head;
    
    // utility methods
}A node for a Linked List might be improved by having an "add()" method with special behavior: when invoked, the "add()" method will traverse the linked list to add a given node to the end of the list.
algorithm add is:
    input: Node newNode -> The new node to add
    
    let "currentNode" = head;
    while current.next != null
        current = current.next

    current.next = newNode