Q1) Create a dictionary with the following key-value pairs, 'name' with 30 names 'age' with 30 values (generate 30 random integers from 18 to 70) 'height' with 30 values (generate 30 random integers from 150 to 200) 'weight' with 30 values (generate 30 random integers from 50 to 100) 'experience' with 30 values (generate 30 random integers from 2 to 8) (hint: you must use numpy library to generate the numbers) make a dataframe from a dictionary named df. write down a statement to get columns 'name', 'weight' and 'experience' write down statements to find the maximum, the minimum, the average, the median and the variance of column 'height'. ● ● ● ● ● ● ● write down a statement to sort the values of column 'experience and make the change permanent. write down statement to get the rows where the value of weight is greater than 77 and the value of height is a multiple of 5. Q2) Solve the system of linear equations using Python (use sympy library) 7x - 13y = 51 6x 19y 244

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Q1)
Create a dictionary with the following key-value pairs,
'name' with 30 names
'age' with 30 values (generate 30 random integers from 18 to 70)
'height' with 30 values (generate 30 random integers from 150 to 200)
'weight' with 30 values (generate 30 random integers from 50 to 100)
'experience' with 30 values (generate 30 random integers from 2 to 8)
(hint: you must use numpy library to generate the numbers)
make a dataframe from a dictionary named df.
write down a statement to get columns 'name', 'weight' and 'experience'
write down statements to find the maximum, the minimum, the average, the median and the variance of
column 'height'.
●
●
●
●
●
●
●
write down a statement to sort the values of column 'experience and make the change permanent.
write down statement to get the rows where the value of weight is greater than 77 and the value of
height is a multiple of 5.
Q2)
Solve the system of linear equations using Python (use sympy library)
7x - 13y = 51
6x 19y 244
Transcribed Image Text:Q1) Create a dictionary with the following key-value pairs, 'name' with 30 names 'age' with 30 values (generate 30 random integers from 18 to 70) 'height' with 30 values (generate 30 random integers from 150 to 200) 'weight' with 30 values (generate 30 random integers from 50 to 100) 'experience' with 30 values (generate 30 random integers from 2 to 8) (hint: you must use numpy library to generate the numbers) make a dataframe from a dictionary named df. write down a statement to get columns 'name', 'weight' and 'experience' write down statements to find the maximum, the minimum, the average, the median and the variance of column 'height'. ● ● ● ● ● ● ● write down a statement to sort the values of column 'experience and make the change permanent. write down statement to get the rows where the value of weight is greater than 77 and the value of height is a multiple of 5. Q2) Solve the system of linear equations using Python (use sympy library) 7x - 13y = 51 6x 19y 244
Expert Solution
steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Dictionary
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning