Question: using python Write a program that displays an array of random floating point numbers of size 5 rows and 6 columns. These are the guidelines

using python
Write a program that displays an array of random floating point numbers of size 5 rows and 6 columns. These are the guidelines
  • Each number has to be randomly generated
  • Each number has to have exactly two digits to the right of decimal point (e.g. 13.14)
  • The numbers generated are between 5 and 19
  • If the number is odd, the background color should be yellow
  • If the number is even, the background color should be green
  • If the fraction part of the generated number is less than .6 then that number should be skipped (i.e. not displayed). Another number should be generated to replace it. Use the "continue" key word is python to achieve this
  • You are not allowed to use the syntax of arrays in python for this HW
  • The display should be format in an array style 5 different lines on the console, each line will have 6 numbers of each row

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!