Skip to main content
BSC Moodle
Log in
  • Moodle Home
  • MyBSC Links
    Academic Alerts (formerly Starfish) Apogee BSC Email BSC Intranet BSC Website Change Password Colleague Events Records IT Helpdesk IT Help for Online Course Students Library MobilePrint OrgSync TheSIS Time & Attendance Trakstar
  • Moodle FAQs
  1. Home
  2. Courses
  3. Miscellaneous
  4. 22FA_CAC180A
  5. Week Thirteen: 11/14-11/18
  6. Lab #11

22FA_CAC180A-Programming

Lab #11

Completion requirements
Make a submission
Opened: Thursday, 17 November 2022, 12:00 AM
Due: Friday, 18 November 2022, 11:59 PM

Using the code we wrote in class this week, make the additions listed below. I mistyped something in class on Wednesday. Please make sure you look at my SolarSystem class. The movePlanets method should have had a line that set r equal to the distance between the sun and the planet. That's the r that should be in the formula below it. Please make that change first. 

1. Modify the Planet class so that each planet can be a different size. Hint: you will need to look up the resizemode and shapesize methods in the turtle documentation.

2. The real value for Newton's gravitational constant is G = 6.673e-11. Using this value for G and a time step of 1800, look up the real values for the mass, distance, and velocity of the sun and planets, and create a real model of the solar system.  

3. BONUS: Add a moon to the earth or any of the other planets. 


◄ Assignment #4

Moodle Help

BSC Students - Please contact the BSC Helpdesk at helpdesk@bsc.edu or 205-226-3033, option 2. If you're an online course student, please consult the IT Website for Online Course Students. 

BSC Faculty and Staff - Please visit the Instructional Technology Moodle Course or contact Angela Brooks at adbrooks@bsc.edu, 205-226-3039.

facebooklinkedininstagram

  • Moodle Home
  • MyBSC Links
    Academic Alerts (formerly Starfish) Apogee BSC Email BSC Intranet BSC Website Change Password Colleague Events Records IT Helpdesk IT Help for Online Course Students Library MobilePrint OrgSync TheSIS Time & Attendance Trakstar
  • Moodle FAQs
Built with Open LMS, a Moodle-based product.
Copyright © 2024 Open LMS, All Rights Reserved.

Data retention summary
Get the mobile app
Switch to the standard theme