You must write this assignment starting with Template for Simple Programs 60% by correct operation and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You must write this assignment starting with Template for Simple Programs 60% by correct operation and up to 40% with good style, readability, and documentation. Problem Summary .py. You earn up to Create a Python program that simulates a self-driving car's navigation system. Steps Start by assigning the initial coordinates of the car to variables `current_x` and `current_y', representing the car's position on a map. Implement a list of movement commands (e.g., north, south, east, west) as strings. Use a loop to iterate over the list of movement commands. Inside the loop, update the `current_x` and `current_y` variables based on the current movement command. For example, if the command is "north," increase the value of `current_y' by a specific distance. Specify the distance with a constant and use it in your statements. Define its value to be 7. Implement boundary checks to ensure the car doesn't go off the map. Set a boundary where `current_x` can range from 0 to 100, and `current_y` can range from 0 to 100. If the car tries to move beyond these limits, print an appropriate message but continue moving. After each movement, print the car's current coordinates. Instead of the literal value of 100, define a constant to be 100 and use it in your statements. Use the template, use good variable names, comments, and generally good style. Follow the requirements in Style Requirements.pdf, posted in Blackboard: in particular, be sure to declare all variables, use block closers. Special Notes: 1. Do not use functions, exceptions, dictionaries, or any other features from chapters beyond Chapter 4, even if you know how to use them. 2. You may use lists, since we did have a limited discussion about them when learning for-in loops. You may also use the upper() and lower() string methods that we borrowed from chapter 8. 3. The purpose of this assignment is to test your skills with the topics we have covered in this class; later exercises will assess your skills with the post-chapter 4 topics. Using more advanced features demonstrates that you don't know the simpler tools well enough, which will lower your score. 4. Code that is identical to another person's code (ignoring changes in spacing or other trivial adjustments) is considered evidence of cheating and all identical code submissions receive a score of 0 on the assignment. 5. If you use code from the Internet, and another student does as well, it could result in parts of your submissions being identical. It's not my job to understand how that happened. Please use Internet examples to inform your code, but do not copy it exactly. You must write this assignment starting with Template for Simple Programs 60% by correct operation and up to 40% with good style, readability, and documentation. Problem Summary .py. You earn up to Create a Python program that simulates a self-driving car's navigation system. Steps Start by assigning the initial coordinates of the car to variables `current_x` and `current_y', representing the car's position on a map. Implement a list of movement commands (e.g., north, south, east, west) as strings. Use a loop to iterate over the list of movement commands. Inside the loop, update the `current_x` and `current_y` variables based on the current movement command. For example, if the command is "north," increase the value of `current_y' by a specific distance. Specify the distance with a constant and use it in your statements. Define its value to be 7. Implement boundary checks to ensure the car doesn't go off the map. Set a boundary where `current_x` can range from 0 to 100, and `current_y` can range from 0 to 100. If the car tries to move beyond these limits, print an appropriate message but continue moving. After each movement, print the car's current coordinates. Instead of the literal value of 100, define a constant to be 100 and use it in your statements. Use the template, use good variable names, comments, and generally good style. Follow the requirements in Style Requirements.pdf, posted in Blackboard: in particular, be sure to declare all variables, use block closers. Special Notes: 1. Do not use functions, exceptions, dictionaries, or any other features from chapters beyond Chapter 4, even if you know how to use them. 2. You may use lists, since we did have a limited discussion about them when learning for-in loops. You may also use the upper() and lower() string methods that we borrowed from chapter 8. 3. The purpose of this assignment is to test your skills with the topics we have covered in this class; later exercises will assess your skills with the post-chapter 4 topics. Using more advanced features demonstrates that you don't know the simpler tools well enough, which will lower your score. 4. Code that is identical to another person's code (ignoring changes in spacing or other trivial adjustments) is considered evidence of cheating and all identical code submissions receive a score of 0 on the assignment. 5. If you use code from the Internet, and another student does as well, it could result in parts of your submissions being identical. It's not my job to understand how that happened. Please use Internet examples to inform your code, but do not copy it exactly.
Expert Answer:
Answer rating: 100% (QA)
Selfdriving cars navigation system simulation Initial coordinates of the car currentx 50 currenty 50 ... View the full answer
Related Book For
Financial Accounting and Reporting a Global Perspective
ISBN: 978-1408076866
4th edition
Authors: Michel Lebas, Herve Stolowy, Yuan Ding
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The school district in Problem 3-46 wishes to impose an additional constraint on the problem: It wants to enroll the same number of students in each of the three schools. Solve for the revised...
-
With regard to the potential change to account for most leases on the balance sheet under ASC842, provide the following: What would be the impact on the financial statements of Delta Airlines, Inc....
-
Given: MIII; Prove: M Use the definitions and postulates given in Example 2 to prove the theorems in Problems 914. Give both statements and reasons.
-
List the disadvantages of using nonparametric statistical procedures?
-
In Exercises 23 through 30, sketch the indicated level curve f(x, y) = C for each choice of constant C. f(x, y) = x 2 + y; C = 0, C = 4, C = 9
-
Make a list of your most valuable possessions. Consider new and used items that may have collectible value. Also consider how much it would cost to replace your valuable possessions.
-
Revenue Recognition on Marina Sales with Discounts Taylor Marina has 300 available slips that rent for $800 per season. Payments must be made in full at the start of the boating season, April 1,...
-
Listed below are statements about internal control. Please discuss if each statement is a myth, fact, or somewhere in between, and your reasoning and basis: 1. Internal control starts with a stro...
-
The Springfield School Board has made the decision to close one of its middle schools (sixth, seventh, and eighth grades) at the end of this school year and reassign all of next year's middle school...
-
Compare and contrast the evolution of work and the workplace over the past 20 years and explain two ways that the evolution of work has impacted human resources. Consider aspects such as technology,...
-
Given the alternative approaches identified in this chapter, think of a possible hybrid approach (keeping in mind time, resource and people constraints).
-
Consider the authors classification of technology into the basic characteristics of data storage, transmission, and processing capacity, and properties of communication and decision aiding. Would you...
-
The author states that successful SISP seems to require users and line managers working in partnership with the IS function. Who should be involved in SISP and how should those involved be determined?
-
What is the IT productivity paradox? Does it exist in your view, and if so, to what extent is it sectorally based? Do you believe it will remain a problem in, say, 5 years?
-
This chapter raises the important issue of improving customer support. What lessons do you take from this when considering information systems strategy and planning?
-
The XYZ Partnership is being formed by three partners. Their ownership in the partnership, and tax year ends are listed below. Determine which tax year the partnership can elect without IRS...
-
Question 2 For an n x n matrix A = form) via (aij)
-
Multiple Choice Question Select the right answer (only one possible answers unless otherwise stated). 1 An example of an item that is not an intangible asset is (a) Patent (b) Goodwill (c) Computer...
-
NorthWest Boards and Bikes sells and rents skis and snowboards in the winter and bicycles during the whole year. The following data appear in the balance sheet or have been gathered by the chief...
-
You will find below in Exhibits 1 and 2 the balance sheets and income statements from eight different companies.
-
Consider the following information for HandyCraft Stores for 2008 and 2009. Required a. Compute ROI for both years. b. Break ROI down into profit margin and investment turnover. c. Comment on the...
-
Return on Investment, Effect of Depreciation The Chief Operating Officer of the Wisconsin Corporation is considering the effect of depreciation on company ROI. In the most recent year, net operating...
-
Waste Management has a subsidiary that disposes of hazardous waste and a subsidiary that collects and disposes of residential garbage. Information related to the two subsidiaries follows: Required a....
Study smarter with the SolutionInn App