Javascript Problem:
Using the data set as a pre-defined variable in your program, write code that uses the dataset to print the first names of people with above average math grades and below average age from the dataset.
Requirements:
Dataset:
var dataSet = [
{
"name": "Maura Glass",
"age": 60,
"math": 97,
"english": 63,
"yearsOfEducation": 4
},
{
"name": "James Gates",
"age": 55,
"math": 72,
"english": 96,
"yearsOfEducation": 10
},
{
"name": "Mills Morris",
"age": 26,
"math": 83,
"english": 77,
"yearsOfEducation": 10
},
{
"name": "Deena Morton",
"age": 57,
"math": 63,
"english": 63,
"yearsOfEducation": 10
},
{
"name": "Edith Roth",
"age": 38,
"math": 79,
"english": 94,
"yearsOfEducation": 10
},
{
"name": "Marva Morse",
"age": 31,
"math": 93,
"english": 78,
"yearsOfEducation": 9
},
{
"name": "Etta Potts",
"age": 48,
"math": 57,
"english": 93,
"yearsOfEducation": 7
},
{
"name": "Tate Moss",
"age": 22,
"math": 83,
"english": 64,
"yearsOfEducation": 8
},
{
"name": "Sanders Burris",
"age": 27,
"math": 65,
"english": 66,
"yearsOfEducation": 5
},
{
"name": "Latoya Malone",
"age": 35,
"math": 100,
"english": 100,
"yearsOfEducation": 5
},
{
"name": "Wade Foreman",
"age": 25,
"math": 76,
"english": 87,
"yearsOfEducation": 10
},
{
"name": "Miller Valentine",
"age": 31,
"math": 56,
"english": 89,
"yearsOfEducation": 6
},
{
"name": "Rita Olson",
"age": 53,
"math": 100,
"english": 52,
"yearsOfEducation": 6
},
{
"name": "Potter Newton",
"age": 29,
"math": 91,
"english": 75,
"yearsOfEducation": 5
},
{
"name": "Madeline Bartlett",
"age": 23,
"math": 60,
"english": 74,
"yearsOfEducation": 10
},
{
"name": "Tamara Tran",
"age": 46,
"math": 73,
"english": 78,
"yearsOfEducation": 4
},
{
"name": "Elena Evans",
"age": 43,
"math": 60,
"english": 82,
"yearsOfEducation": 10
},
{
"name": "Cote Merrill",
"age": 55,
"math": 86,
"english": 63,
"yearsOfEducation": 7
},
{
"name": "Madeleine Brennan",
"age": 52,
"math": 82,
"english": 88,
"yearsOfEducation": 4
},
{
"name": "Alford Weber",
"age": 38,
"math": 71,
"english": 85,
"yearsOfEducation": 4
},
{
"name": "Kirsten Daniel",
"age": 35,
"math": 86,
"english": 61,
"yearsOfEducation": 8
},
{
"name": "Melton Chan",
"age": 26,
"math": 55,
"english": 96,
"yearsOfEducation": 4
},
{
"name": "Mcmahon Woodward",
"age": 54,
"math": 56,
"english": 63,
"yearsOfEducation": 9
},
{
"name": "Helga Monroe",
"age": 29,
"math": 79,
"english": 92,
"yearsOfEducation": 5
},
{
"name": "Patricia Herrera",
"age": 46,
"math": 94,
"english": 99,
"yearsOfEducation": 10
},
{
"name": "Mccullough Lambert",
"age": 56,
"math": 65,
"english": 96,
"yearsOfEducation": 8
},
{
"name": "Haynes Davidson",
"age": 60,
"math": 86,
"english": 50,
"yearsOfEducation": 5
}
]
var dataSet = [
{
"name": "Maura Glass",
"age": 60,
"math": 97,
"english": 63,
"yearsOfEducation": 4
},
{
"name": "James Gates",
"age": 55,
"math": 72,
"english": 96,
"yearsOfEducation": 10
},
{
"name": "Mills Morris",
"age": 26,
"math": 83,
"english": 77,
"yearsOfEducation": 10
},
{
"name": "Deena Morton",
"age": 57,
"math": 63,
"english": 63,
"yearsOfEducation": 10
},
{
"name": "Edith Roth",
"age": 38,
"math": 79,
"english": 94,
"yearsOfEducation": 10
},
{
"name": "Marva Morse",
"age": 31,
"math": 93,
"english": 78,
"yearsOfEducation": 9
},
{
"name": "Etta Potts",
"age": 48,
"math": 57,
"english": 93,
"yearsOfEducation": 7
},
{
"name": "Tate Moss",
"age": 22,
"math": 83,
"english": 64,
"yearsOfEducation": 8
},
{
"name": "Sanders Burris",
"age": 27,
"math": 65,
"english": 66,
"yearsOfEducation": 5
},
{
"name": "Latoya Malone",
"age": 35,
"math": 100,
"english": 100,
"yearsOfEducation": 5
},
{
"name": "Wade Foreman",
"age": 25,
"math": 76,
"english": 87,
"yearsOfEducation": 10
},
{
"name": "Miller Valentine",
"age": 31,
"math": 56,
"english": 89,
"yearsOfEducation": 6
},
{
"name": "Rita Olson",
"age": 53,
"math": 100,
"english": 52,
"yearsOfEducation": 6
},
{
"name": "Potter Newton",
"age": 29,
"math": 91,
"english": 75,
"yearsOfEducation": 5
},
{
"name": "Madeline Bartlett",
"age": 23,
"math": 60,
"english": 74,
"yearsOfEducation": 10
},
{
"name": "Tamara Tran",
"age": 46,
"math": 73,
"english": 78,
"yearsOfEducation": 4
},
{
"name": "Elena Evans",
"age": 43,
"math": 60,
"english": 82,
"yearsOfEducation": 10
},
{
"name": "Cote Merrill",
"age": 55,
"math": 86,
"english": 63,
"yearsOfEducation": 7
},
{
"name": "Madeleine Brennan",
"age": 52,
"math": 82,
"english": 88,
"yearsOfEducation": 4
},
{
"name": "Alford Weber",
"age": 38,
"math": 71,
"english": 85,
"yearsOfEducation": 4
},
{
"name": "Kirsten Daniel",
"age": 35,
"math": 86,
"english": 61,
"yearsOfEducation": 8
},
{
"name": "Melton Chan",
"age": 26,
"math": 55,
"english": 96,
"yearsOfEducation": 4
},
{
"name": "Mcmahon Woodward",
"age": 54,
"math": 56,
"english": 63,
"yearsOfEducation": 9
},
{
"name": "Helga Monroe",
"age": 29,
"math": 79,
"english": 92,
"yearsOfEducation": 5
},
{
"name": "Patricia Herrera",
"age": 46,
"math": 94,
"english": 99,
"yearsOfEducation": 10
},
{
"name": "Mccullough Lambert",
"age": 56,
"math": 65,
"english": 96,
"yearsOfEducation": 8
},
{
"name": "Haynes Davidson",
"age": 60,
"math": 86,
"english": 50,
"yearsOfEducation": 5
}
]
var i;
for(i=0;i<dataSet.length;i++)
{
if(dataSet[i]["age"]<50 &&
dataSet[i]["math"]>50)
{
document.write(dataSet[i]["name"].slice(0,dataSet[i]["name"].indexOf("
")));
document.write("<br/>");
}
}If you have any doubts
regarding the code please comment and please don't dislike.
Javascript Problem: Using the data set as a pre-defined variable in your program, write code that...
Problem #1: Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns. The first column consists of Test #1 marks, the second column is Test # 2 marks, and the third column is final exam marks for a large linear algebra course. Each row represents a particular student.A = [36 45 75 81 59 73 77 73 73 65 72 78 65 55 83 73 57 78 84 31 60 83...
Use the accompanying data set on the pulse rates (in beats per minute) of males to complete parts (a) and (b) below. LOADING... Click the icon to view the pulse rates of males. a. Find the mean and standard deviation, and verify that the pulse rates have a distribution that is roughly normal. The mean of the pulse rates is 71.871.8 beats per minute. (Round to one decimal place as needed.) The standard deviation of the pulse rates is 12.212.2...
1. Forecast demand for Year 4. a. Explain what technique you utilized to forecast your demand. b. Explain why you chose this technique over others. Year 3 Year 1 Year 2 Actual Actual Actual Forecast Forecast Forecast Demand Demand Demand Week 1 52 57 63 55 66 77 Week 2 49 58 68 69 75 65 Week 3 47 50 58 65 80 74 Week 4 60 53 58 55 78 67 57 Week 5 49 57 64 76 77...
5. Mark’s class just took the admission test for business school and averaged 87.05. Chapter 10 Data Set 2 contains the population of scores for the 10 other classes in Mark’s university. How did Mark’s class do? Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 78 81 96 85 88 78 90 79 96 86 77 78 97 90 88 82 86 93 87 89 78 93 88...
write a program that uses a function to read in the grades for four classes and then uses a function to calculate the average grade in each of the classes. input the grades for one student. we will name her Beverly. output how Beverly's grade differs from each classe average. Make sure that your output is very clear. Below is your data: English 90 70 85 45 95 95 82 97 99 65 History 63 94 60 76 83 98...
Use the Grouped Distribution method for the following exercise (see Self-Test 2-4 for detailed instructions), rounding each answer to the nearest whole number. Using the frequency distribution below (scores on a statistics exam taken by 80 students), determine:ion 1 of the preliminary test (scores on a statistics exam taken by 80 students), determine: 68 84 75 82 68 90 62 88 76 93 73 79 88 73 60 93 71 59 85 75 61 65 75 87 74 62 95...
Use the Grouped Distribution method for the following exercise (see Self-Test 2-4 for detailed instructions), rounding each answer to the nearest whole number. Using the frequency distribution below (scores on a statistics exam taken by 80 students), determine:ion 1 of the preliminary test (scores on a statistics exam taken by 80 students), determine: 68 84 75 82 68 90 62 88 76 93 73 79 88 73 60 93 71 59 85 75 61 65 75 87 74 62 95...
Write a python nested for loop that prints out the following pattern 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33...
RANGES FREQUENCY RELATIVE FREQUENCY CUMULATIVE REL. FREQ. 1 - 10 11 - 20 21 - 30 31 - 40 41 - 50 51 - 60 61 - 70 71 - 80 81 - 90 91 - 100 '= 100 DATA VALUES?? SO, WHAT DOES A FREQUENCY TABLE TELL US? If you wrote each of the above data values on a ping pong ball,, put them in a jar and blindly pulled one out: What is the probability that this ball...
Find the indicated measure. The test scores of 40 students are listed below. Find P85. 30 35 43 44 47 48 54 55 56 57 59 62 63 65 66 68 69 69 71 72 72 73 74 76 77 77 78 79 80 81 81 82 83 85 89 92 93 94 97 98 1) 85 2) 87 3) 89 4) 34