reflection 1 - brown(twb493 – Reflection 1 – turner...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: brown (twb493) – Reflection 1 – turner – (57340) 1 This print-out should have 9 questions. Multiple-choice questions may continue on the next column or page – find all choices before answering. 001 (part 1 of 7) 10.0 points Let’s say we want to turn the above diagram into a VPython scene. You should type in the correct lines of code for each question as you go so that you end up with a working program. Remember to begin every VPython program with the following two lines: from future import division from visual import First, we will need to define our vectors A and B. Which two lines of Vpython code accomplish this? 1. A= vec(3 , , 0) B= vec(5 , 2 , 0) 2. A . vector= < 3 , , > B . vector= < 5 , 2 , > 3. A . vector= vector(3 , , 0) B . vector= vector(5 , 2 , 0) 4. A . vector= (3 , , 0) B . vector= (5 , 2 , 0) 5. A= vector(3 , , 0) B= vector(5 , 2 , 0) correct 6. A= < 3 , , > B= < 5 , 2 , > Explanation: 002 (part 2 of 7) 10.0 points Which line of code correctly calculates the vector C?...
View Full Document

{[ snackBarMessage ]}

Page1 / 3

reflection 1 - brown(twb493 – Reflection 1 – turner...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online