Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Please solve the questions Python Problem 4 (3 points) Write a program that do the following - define a function to generate 1000 integer number

image text in transcribed

image text in transcribed

Please solve the questions Python

Problem 4 (3 points) Write a program that do the following - define a function to generate 1000 integer number randomly between 0 and 100, and save them in a file call it 'data.dat'. - - define a function to read the file contents and count the number of numbers that fall in each range and put the results in a list: list name From To A 90 100 B 80 89 70 79 D 60 69 E 50 59 F 0 49 Use a bar chart to show the list contents. - Problem 3 (3 points) Write a Python script to generate and print a dictionary that contains a degree (0, 15, 30, 45, ..., 360) in the form (d, cos(d)). ) You need to use lambda in your solution

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions