Question #2492

Hello, i have 2 python programming questions left to answer, and was wondering if you guys could help.

1) The Goldbach conjecture asserts that every even number is the sum of two prime numbers. Write a program that gets a number from the user, checks to make sure that it is even, and then finds two prime numbers that sum to the number.

2) Write a program that graphically plots a regression line, that is, the line with the best fit through a collection of points. First ask the user to specify the data points by clicking on them in a graphics window. To find the end of input, place a small rectangle labeled "Done" in the lower left corner of the window; the program will stop gathering points when the user clicks inside that rectangle.

Any help, tips, or solutions would be greatly appreciated :)!

1) The Goldbach conjecture asserts that every even number is the sum of two prime numbers. Write a program that gets a number from the user, checks to make sure that it is even, and then finds two prime numbers that sum to the number.

2) Write a program that graphically plots a regression line, that is, the line with the best fit through a collection of points. First ask the user to specify the data points by clicking on them in a graphics window. To find the end of input, place a small rectangle labeled "Done" in the lower left corner of the window; the program will stop gathering points when the user clicks inside that rectangle.

Any help, tips, or solutions would be greatly appreciated :)!

Expert's answer

Your question requires a lot of work and cannot be done for free. Submit it as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment