Giter Site home page Giter Site logo

rental-car-billing-script's Introduction

Rental Car Billing Script

This repository is used for the first assignment for the class IT-140-Q3788 Introduction to Scripting 18EW3 at Southern New Hampshire University. This first artifact will address basic data types and decision-making control structures (branched and while loops). Review the Final Project Script One Draft Guidelines and Rubric document for additional details to complete this assignment. The starter file for this assignment can be accessed in Codio.

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 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 Five.

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 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. Your script should address the following critical elements:

  • 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.
    • 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:
      • Assigning a numerical value and string to variables
      • Changing variable values
      • Modifying variables with data-type-appropriate operators
    • 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.

Reminder:

The following critical element is not submitted with your draft, but you should be sure to consider the elements of your reflection that you will submit with your finalized script in Module Five.

  • 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:
    • 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.

Rubric

Guidelines for Submission:

This is a draft of part of the final project. Complete the steps in Codio. Feedback will be provided by your instructor to incorporate in the final submission and the reflection document.

Variables

Identifies three uses and fundamental types of variables in code and explains using comments

Branches

Identifies three uses and fundamental types of branches in code and explains using comments

Script Comments

Code comments explain and facilitate navigation of the code

rental-car-billing-script's People

Contributors

rowland007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.