Lab4 Report - shown above to fill an array, what would be...

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

View Full Document Right Arrow Icon
Lab #4 7 February 2007 Chris Sutherland 11W Part 1 1. When you set your numerical control to the value of 3, how many times did the loop run? 3 times 2. What is the starting value for “i”? 0 3. If the code shown to the right was executed, how many times would it loop? 10 times 4. Which of the following C++ / Java commands duplicates the sample code shown above? B does A) for(i = 0; i < 10; i = i + 1) B) for(i = 0; i <= 10; i = i + 1) C) none of the above 5. If a wire was run from the variable “i,” out through the right-hand side of the for loop box, would we want indexing enabled or disabled if all that we wanted was the final value stored in the variable “i?” You would disable indexing 6. Assuming that we did the opposite of your previous answer, and used the for loop
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: shown above to fill an array, what would be the first number it contained? 0 7. What would be the last? 9 8. See Next Page. Part 2 Part 3 Part 4 1. What frequency did you select? 2500 2. What sampling rate did you use? 44100 3. How many data points will your loop generate? In other words, how many times will the loop run? 44100 4. Given your answers to the previous two questions, how long will the sound take to play? Roughly 3 seconds 5. See Next Page. Part 5 1. About how much time during class did you spend on this lab? 35-40 Minutes 2. About how much time outside of class did you spend on this lab? 30-40 Minutes 3. What difficulties did you have with this lab? None 4. In what ways could this lab be improved? None...
View Full Document

This note was uploaded on 09/19/2011 for the course ENGE 1104 taught by Professor Dr.bell during the Spring '08 term at Virginia Tech.

Page1 / 5

Lab4 Report - shown above to fill an array, what would be...

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

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