Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started