logo

Crowdly

You have already copied the below mentioned chaos program (printed below for yo...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

You have already copied the below mentioned chaos program (printed below for your convenience) into your lab0.py file on your computer. The program is taken from the book Python Programming: An Introduction to Computer Science, (Third Edition), John Zelle, Franklin Beedle

print("This program illustrates a chaotic function")

x = float(input("Enter a number between 0 and 1: ")) #taking input from user

for i in range(10):

    x = 3.9 * x * (1 - x)

    print(x)

    Modify the program to print more than 10 values of 'x'.

    Run the modified program. Select Run -> Run Module. 

    When the program asks user to input a value between 0 and 1, enter 0.15. What is the 18th value printed ?

    Більше питань подібних до цього

    Хочете миттєвий доступ до всіх перевірених відповідей на quiz.jinhong.org?

    Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!