Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Assign your student number to a variable x near the beginning of your code. Write code, using a for or while loop, that rounds
1. Assign your student number to a variable x near the beginning of your code. Write code, using a for or while loop, that rounds your student number down to the next 10", for each n from 1 to 6. Represent each of these results in a six-dimensional vector V in increasing order of n. As an example, my student number wayyy back in the day was 0143896. My correct output would be a vector V given by [ 143890 143800 143000 140000 100000 0 ]. 2. Now, given your answer in Problem 1, create two more vectors: The first is a vector of absolute errors in estimating your true student number using the entries of V from Question 1 as estimates; The second is a vector of relative errors in estimating your true student number, again using the entries of V as estimates
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started