Reference no: EM132231502
Assignment - Script One: Rental Car Billing Script
Prompt - For this script, you will be using variables and branches. A variable is used to remember a value for later use. The statement "age = 15" defines a variable named age, which Python uses to refer to a new object with the integer value 15. When a statement executes that assigns a value to an existing variable, Python updates the variable to refer to the newly assigned object. Likewise, reading a variable's value reads the value of the object referred to by the variable. So, in Python, if you set a variable to a string, the variable is now a type string object.
To write useful programs, we almost always need the ability to check conditions and change the behavior of the program accordingly. Conditional statements give us this ability. The simplest form is the if statement. A programmer commonly requires more than one if statement in branches, in which case the elif (short for "else if") keyword or else keyword can be used.
Your task for Final Project Script One is to create a simple rental car billing calculator. This script also emphasizes the importance of using and modifying variables, and how branches may impact your approach in creating a script.
You will work on this project in the Project One: Rental Car Billing Script Draft module in Codio. Following the directions in that module, you will also be able to determine the exact placement of the comments you will need to make in the code. Follow the directions in the module in Codio to walk through the activity.
Specifically, you must address the critical elements listed below. Most of the critical elements align with a particular course outcome (shown in brackets).
I. In Your Script (Annotated Text File)
Refer to the directions in the module in Codio for how to export out and comment your completed script.
A. Identify examples of three uses of variables in the script using comments in your code. Be sure your examples indicate the each of the following fundamental types: [IT-140-01]
i. Assigning a numerical value and string to variables.
ii. Changing variable values.
iii. Modifying variables with data-type-appropriate operators.
B. Identify examples of the use of branches and explain using comments in your code. Be sure your comments identify the following fundamental statements: if, elif, and else statements. [11-140-02]
II. Applying Your Experience
Making mistakes when you learn to write code is common. It is part of learning. What is important is developing the skill of teaming how to understand your errors and then fix them (debugging). For this part of your final project, you will respond to the following:
A. Reflecting on your experience with this activity, explain the importance of knowing how and when to use and modify variables, and using branches. Support your response with examples from the activity of the types of errors and your method for fixing them. [IT-440-05]
Note -This is a codio project that requires me to complete step by step work. This explains all of the screenshots. Overall, we are looking at about 120 lines of code. All guideline notes in the code, will need to be removed and replaced with my own notes that detail each action performed along the way. In addition to the code completion, need to have a 1 paragraph reflection detailing some of the practices learned in this exercise.
Attachment:- Assignment File.rar