Computers and Technology
Computers and Technology, 02.12.2020 01:00, JPU

50 POINTS FOR PYTHON CODING Use an appropriate data structure to read in at least 10 integers from the user.
Perform a variety of mathematical operations on the numbers, and print the results of the following:
All the prime numbers
The greatest common divisor between the first and second number
Square of the 3rd number
Square root of the 8th number
The absolute value of the 10th number
Ask the user to input a decimal, round it to 2 decimal places, and then overwrite the 4th number in the list.
Change the 6th number to be the result of the following expression:
The 5th number times the 3rd number divided by the 1st number (use integer division), all added to the 7th number.

Use your new numbers to create a line chart using Pygal. Save the chart to a file called U7activity. svg. (Hint: instead of using pygal. HorizontalBar(), use pygal. Line(). You only need three lines of code to create this line chart with your list data.)
(If you are unable to get your program to work correctly, you may also submit a paragraph for partial credit explaining what the problem is and how you think it could be fixed.)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, michael3592
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, rscvsdfsrysas3712
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, camiserjai1832
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
image
Computers and Technology, 23.06.2019 19:00, brittneyrenae7338
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words. size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words. size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
Do you know the correct answer?
50 POINTS FOR PYTHON CODING Use an appropriate data structure to read in at least 10 integers from...

Questions in other subjects:

Konu
Mathematics, 03.07.2019 14:30