Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the full code in python... code and out put screen Define a 2d array that stores your marks in the Master program (1st

image text in transcribed I need the full code in python... code and out put screen

Define a 2d array that stores your marks in the Master program (1st row for 1st term, 2nd row for 2nd term,....,etc.). Then do the following: A. Print out the shape of the array, and the datatype of its element. B. Slice the last two marks in the last term and print out their average. C. Sort the array in descending order. D. Flatten the array and define a new array that uses if condition to store true if the mark is larger or equal to 60 or store false otherwise. NOTE: your current term's marks may still lower than 60 until now. e.g. array after being flatten ([95,93,80,44,36,32]). The new array should be like: ([True, True,True False, False, False]). E. Reshape the flattened array to be 3X2 shape. *** THE END *** 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

7. Set team as well as individual performance goals.

Answered: 1 week ago

Question

2. Are my sources up to date?

Answered: 1 week ago