(Python matplotlib or seaborn) CPU Usage We have the hourly average CPU usage for a worker's computer over the course of a week. Each row of data represents a day of the week starting with Monday. Each column of data is an hour in the day starting with 0 being midnight. Create a chart that shows the CPU usage over the week. You should be able to answer the following questions using the chart: When does the worker typically take lunch? Did the worker do work on the weekend? On which weekday did the worker start working on their computer at the latest hour?   cpu_usage = [ [2, 2, 4, 2, 4, 1, 1, 4, 4, 12, 22, 23, 45, 9, 33, 56, 23, 40, 21, 6, 6, 2, 2, 3], # Monday [1, 2, 3, 2, 3, 2, 3, 2, 7, 22, 45, 44, 33, 9, 23, 19, 33, 56, 12, 2, 3, 1, 2, 2], # Tuesday [2, 3, 1, 2, 4, 4, 2, 2, 1, 2, 5, 31, 54, 7, 6, 34, 68, 34, 49, 6, 6, 2, 2, 3], # Wednesday [1, 2, 3, 2, 4, 1, 2, 4, 1, 17, 24, 18, 41, 3, 44, 42, 12, 36, 41, 2, 2, 4, 2, 4], # Thursday [4, 1, 2, 2, 3, 2, 5, 1, 2, 12, 33, 27, 43, 8, 38, 53, 29, 45, 39, 3, 1, 1, 3, 4], # Friday [2, 3, 1, 2, 2, 5, 2, 8, 4, 2, 3, 1, 5, 1, 2, 3, 2, 6, 1, 2, 2, 1, 4, 3], # Saturday [1, 2, 3, 1, 1, 3, 4, 2, 3, 1, 2, 2, 5, 3, 2, 1, 4, 2, 45, 26, 33, 2, 2, 1], # Sunday ]   How to solved above problem?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

(Python matplotlib or seaborn)

CPU Usage

We have the hourly average CPU usage for a worker's computer over the course of a week. Each row of data represents a day of the week starting with Monday. Each column of data is an hour in the day starting with 0 being midnight.

Create a chart that shows the CPU usage over the week. You should be able to answer the following questions using the chart:

  • When does the worker typically take lunch?
  • Did the worker do work on the weekend?
  • On which weekday did the worker start working on their computer at the latest hour?

 

cpu_usage = [

[2, 2, 4, 2, 4, 1, 1, 4, 4, 12, 22, 23,

45, 9, 33, 56, 23, 40, 21, 6, 6, 2, 2, 3], # Monday

[1, 2, 3, 2, 3, 2, 3, 2, 7, 22, 45, 44,

33, 9, 23, 19, 33, 56, 12, 2, 3, 1, 2, 2], # Tuesday

[2, 3, 1, 2, 4, 4, 2, 2, 1, 2, 5, 31,

54, 7, 6, 34, 68, 34, 49, 6, 6, 2, 2, 3], # Wednesday

[1, 2, 3, 2, 4, 1, 2, 4, 1, 17, 24, 18,

41, 3, 44, 42, 12, 36, 41, 2, 2, 4, 2, 4], # Thursday

[4, 1, 2, 2, 3, 2, 5, 1, 2, 12, 33, 27,

43, 8, 38, 53, 29, 45, 39, 3, 1, 1, 3, 4], # Friday

[2, 3, 1, 2, 2, 5, 2, 8, 4, 2, 3,

1, 5, 1, 2, 3, 2, 6, 1, 2, 2, 1, 4, 3], # Saturday

[1, 2, 3, 1, 1, 3, 4, 2, 3, 1, 2,

2, 5, 3, 2, 1, 4, 2, 45, 26, 33, 2, 2, 1], # Sunday

]

 

How to solved above problem?

Expert Solution
steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Knowledge Booster
Print statement
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning