One Submission Rental Car Billing Script Final Project Script Part 1
Log in to Codio to complete the following activities, which in total represent approximately 1.5 to 2 hours of hands-on work (These times are approximate and everyone’s experience may vary, please plan accordingly and try to start earlier in the week):
Functions
Random String
Hunt for red
Remember, if you respond incorrectly to a challenge activity, you can use the “show/hide section” list in the drop-down menu in Codio to access the content that led up to the challenge and complete the activity correctly.
Part 2
This third artifact addresses developing functions and using regular expressions to search for patterns. Review the Final Project Script Three Draft Guidelines and Rubric document for additional details to complete this assignment. The starter file for this assignment can be accessed in Codio.
Review the following Codio videos for further assistance with this assignment:
Video: Grocery List/ATM – Demonstration of key programming concepts you will use to write the final project Grocery List and ATM scripts. The video also demonstrates how to get started typing this script in Codio.
Video: HELP – This video demonstrates how to get HELP with error messages and how to troubleshoot errors
Part 3
It is time to submit the final version of this script. Remember to review your feedback from your instructor. Take this opportunity to revise your draft script and review the applicable resources related to developing it. Great Students,
Greetings to everyone.
Welcome to Module 5.
Last week, we studied Lists and Dictionaries.
This week, we shall work on “Functions”.
Functions make it easier for us to re-use codes.
Let’s us do a simple arithmetic operation.
Let us look at this simple code (you can test this code in any Python IDE):
#Function
#We define the function
#We write the code that describes the function
#We call the function anytime we want. This saves us time.
def add(c, d):
print(c + d)
def subtract(c, d):
print(c – d)
def multiply(c, d):
print(c * d)
def divide(c, d):
print(c / d)
c = int(input(“Enter the first number”))
d = int(input(“Enter the second number”))
add(c, d)
subtract(c, d)
multiply(c, d)
divide(c, d)
Please go ahead and run the code in the Visual Studio Code IDE.
This is a simple example.
Did you notice the steps? I just did what I wrote in the comments.
Please:
Read and Study Chapter 5 of your textbook.
Complete 5-1: Run the Code Challenge
Complete 5-2: Final Project Script Three Draft – ATM Script
(Please review the announcement posted regarding Final Project Script Drafts
and Final Project Script Submissions)
Complete 5-3: Final Project Script One Submission – Rental Car Billing Script
(Please review the announcement posted regarding Final Project Script Drafts
and Final Project Script Submissions)
Review the resources:
View the Instructor Video for Module Five
Review the IT-140 Course book (by SNHU Professors)
IT 140 Final Project Script Three Draft Guidelines and Rubric ATM Script
Overview: For your final project, you will be creating four small scripts. Collectively, the four scripts will demonstrate your ability to engage in the fundamental
scripting and problem-solving approaches that are represented by the course outcomes.
Reminder: This is the first draft. Even if your script is not functioning perfectly, submit your draft and get feedback so that you can improve on it for the final
submission in Module Seven.
Prompt: A function is a named series of statements. Invoking a function’s name, known as a function call, causes the function’s statements to execute. Python
comes with a number of built-in functions, such as input(), int(), type(), and others. A programmer can also create a new function using the def keyword, the new
function’s name, and a block of statements. A block is a series of indented statements following the function definition.
To call a function, use the function’s name followed by braces function_name(). This causes execution to jump to the function’s statements. The function’s return
causes execution to jump back to where the original call occurred, to the next statement after the call. A good practice is to follow the convention of naming
functions with lowercase letters and underscores, such as print_names or print_face.
Your task for this project is to create a simple ATM script. The script emphasizes the importance of using functions in the creation of more organized and reusable
code.
You will be working in the Project Three: ATM Script module in Codio. Following the directions in that module, you will also 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. In the Codio activity you will work on
having your script do the following three things:
1. Collect customer input
2. Calculate the ending balance
3. Display the results to the customer
After completing the activity, annotate the code. Specifically, your submission of the ATM script should address the following critical elements:
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. Create examples of custom functions in your script.
B. Create examples of input (parameters) that are utilized within the function(s) in your script.
C. Create examples of functions that return the correct output in your script.
Rubric
Guidelines for Submission: This is a draft of part of the final project. Complete the steps in Codio, then export and comment on the completed script. Once
completed, submit the document with your commented code to Brightspace. Feedback will be provided by your instructor to incorporate in the final submission
and the reflection document.
Critical Elements
Proficient (100%)
Needs Improvement (75%)
Not Evident (0%)
Value
Custom Functions
Creates examples of custom
functions in the script
Creates examples of custom functions
in the script, but examples are
inappropriate or inaccurate
Does not create examples of
custom functions in the script
30
Input (Parameters)
Function(s)
Creates examples of input
(parameters) that are
utilized within the
function(s) in the script
Creates examples of input (parameters)
that are utilized within the function(s) in
the script, but examples are
inappropriate or inaccurate
Does not create examples of
input (parameters) that are
utilized within the function(s)
in the script
30
Functions That Return
Correct Output
Creates examples of
functions that return the
correct output in the script
Creates examples of functions that
return the correct output in the script,
but examples are inappropriate or
inaccurate
Does not create examples of
functions that return the
correct output in the script
30
Script Comments
Code comments explain
and facilitate navigation of
the code
Comments provide little assistance with
understanding the code
Code is not fully annotated, or
comments do not explain the
code or do not facilitate
navigation of your code
10
Total
100%
IT 140 Final Project Script One Guidelines and Rubric
Overview
Apple cofounder Steve Jobs once said “I think everybody in this country should learn how to program a computer because it teaches you how to think.” Regardless of
your future career path, the programming concepts and the computational thinking practices gained while learning to script will prove useful. In this course, you will
have the opportunity to explore some of the introductory types of scripting and computational thinking that information technology professionals engage in when
they design solutions to social and business problems.
Programming is a both a scientific and creative undertaking. The fundamentals you learn in this course will provide the scientific foundation. Armed with these skills,
you will have the ability to expand the scientific elements to more advanced concepts that can help you solve everyday problems using tools in creative ways.
For your final project, you will be creating four small scripts. For each script assignment, you will also write a small reflective essay (one to two paragraphs in a
Microsoft Word document) in which you will discuss the problem-solving approaches and relevance of the programming concepts used in the script. Collectively, all
four small scripts and reflective essays will demonstrate your ability to engage in the fundamental scripting and problem-solving approaches that are represented by
the course outcomes:
IT-140-01: Apply appropriate data structures to store and manipulate data for solving computational problems [BS.ITE.CORE.05]
IT-140-02: Utilize branches and loops to insert decision points for managing the execution of code [BS.ITE.CORE.01]
IT-140-03: Utilize functions for producing organized, reusable code [BS.ITE.CORE.01]
IT-140-04: Write accurate regular expressions that search for specific patterns in text material [BS.ITE.CORE.01]
IT-140-05: Explain problem solving approaches required for implementing and troubleshooting scripting tasks [BS.ITE.CORE.01]
You will have an opportunity to submit a practice draft of each script early in the course and receive feedback from your instructor before you finalize the script and
submit the final version and reflection in a later module. Take advantage of these practice opportunities! Even if your script is not functioning perfectly, submit your
draft and get feedback so that you can improve on it for the final submission. Follow the directions in the practice modules in Codio.
1
The following table explains when the drafts and final versions of each script are due:
IT 140 Final Project
Script Number Name and Description
Draft Submitted Through Codio
Final Commented Script and
Reflection Due
One
Rental Car Billing Script: This first artifact will
Module Three
address basic data types and decision-making control
structures (branches).
Module Five
Two
Grocery List Script: This second artifact focuses on
Module Four
collection-type data structures (lists and dictionaries)
and iterative loops (for and while).
Module Six
Three
ATM Script: This third artifact addresses developing
functions.
Module Five
Module Seven
Four
Pattern Search and Replace Script: This fourth
artifact involves your use of regular expressions to
search for specific patterns.
Module Six
Module Eight
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.
2
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. Create examples of three uses of variables in the script. Be sure your examples create 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. Create examples of the use of branches and explain using comments in your code. Be sure your code uses the following fundamental statements:
if, elif, and else statements. [IT-140-02]
II.
Reflection – 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 learning 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-140-05]
3
Final Project Script One Rubric
Guidelines for Submission: Your submission should include all annotated text files of code for the script, as well a Microsoft Word document that includes the
reflection part of your assignment in which you explained the problem-solving approaches you employed (critical element II).
Critical Elements
Variables
[IT-140-01]
Proficient
Creates three uses and
fundamental types of variables
in code (100%)
Needs Improvement
Creates variables in, but uses
are inappropriate or inaccurate
(55%)
Not Evident
Does not create three uses and
fundamental types of variables
in code (0%)
Value
32
Branches
[IT-140-02]
Creates three uses and
fundamental types of branches
in code (100%)
Creates branches in code, but
uses are inappropriate or
inaccurate (55%)
Does not create three uses and
fundamental types of branches
in code (0%)
32
Applying Your
Experience
[IT-140-05]
Explains the importance of
knowing how and when to use
and modify variables as well as
using branches, and is
supported with examples from
the activity about the types of
errors and your method for
fixing them (100%)
Explains the importance of
knowing how and when to use
and modify variables as well as
using branches, and is
supported with examples from
the activity about the types of
errors and your method for
fixing them, but is illogical, lacks
key details, or is not specific to
using and modifying variables
and branches (55%)
Submission has major errors
related to use of citations,
grammar, spelling, syntax, or
organization that negatively
impact readability and
articulation of main ideas
(55%)
Does not explain the
importance of knowing how
and when to use and modify
variables as well as using
branches (0%)
32
Submission has critical errors
related to use of citations,
grammar, spelling, syntax, or
organization that prevent
understanding of ideas (0%)
4
Articulation of
Response
Exemplary
Submission is free of errors
related to use of citations,
grammar, spelling, syntax, and
organization and is presented in
a professional and easy-to- read
format (100%)
Submission has no major errors
related to use of citations,
grammar, spelling, syntax, or
organization (85%)
Total
4
100%
Criterion Feedback
Elsie, thank you for the comments. But, please write detailed comments that explain these sections of
your project: Lines 47, 55 It is mileage, not mile age Explain how you calculate the mile charge,
mileCharge Rule of Thumb: Any person (including someone who does not know programming) should
be able to read your comments and understand what you did in the project. Also: you used semicolons
in Lines 10, 12, 14, 49, 51, 57, 59
Purchase answer to see full
attachment
Why should I choose Homework Writings Pro as my essay writing service?
We Follow Instructions and Give Quality Papers
We are strict in following paper instructions. You are welcome to provide directions to your writer, who will follow it as a law in customizing your paper. Quality is guaranteed! Every paper is carefully checked before delivery. Our writers are professionals and always deliver the highest quality work.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Reasonable Prices and Free Unlimited Revisions
Typical student budget? No problem. Affordable rates, generous discounts - the more you order, the more you save. We reward loyalty and welcome new customers. Furthermore, if you think we missed something, please send your order for a free review. You can do this yourself by logging into your personal account or by contacting our support..
Essay Delivered On Time and 100% Money-Back-Guarantee
Your essay will arrive on time, or even before your deadline – even if you request your paper within hours. You won’t be kept waiting, so relax and work on other tasks.We also guatantee a refund in case you decide to cancel your order.
100% Original Essay and Confidentiality
Anti-plagiarism policy. The authenticity of each essay is carefully checked, resulting in truly unique works. Our collaboration is a secret kept safe with us. We only need your email address to send you a unique username and password. We never share personal customer information.
24/7 Customer Support
We recognize that people around the world use our services in different time zones, so we have a support team that is happy to help you use our service. Our writing service has a 24/7 support policy. Contact us and discover all the details that may interest you!
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
Our reputation for excellence in providing professional tailor-made essay writing services to students of different academic levels is the best proof of our reliability and quality of service we offer.
Essays
When using our academic writing services, you can get help with different types of work including college essays, research articles, writing, essay writing, various academic reports, book reports and so on. Whatever your task, homeworkwritingspro.com has experienced specialists qualified enough to handle it professionally.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our professional editor will check your grammar to make sure it is free from errors. You can rest assured that we will do our best to provide you with a piece of dignified academic writing. Homeworkwritingpro experts can manage any assignment in any academic field.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.