Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In PYTHON please The following code will produce 5 pairs of random floating point numbers from 2 different random distributions: import random for nums in

In PYTHON please

image text in transcribed

The following code will produce 5 pairs of random floating point numbers from 2 different random distributions: import random for nums in range (0,5) : r1= random.triangular (50,150,75) r2= random. uniform (5,150) r1 will generate number between 50 and 150 (with a mode of 75) r2 will generate a number between 5 and 150 . provide a single print function statement (to be run inside the loop) that will output each pair of numbers to the console, separated by a colon with 2 decimal places and lined up on the decimal. For example

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_2

Step: 3

blur-text-image_3

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

should no financial indicators be ised for assessing fraud risk?

Answered: 1 week ago

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago