Commenting your code

Assignment Help Basic Computer Science
Reference no: EM13985042

  1. Programming Mechanics
    1. Functions (what are they, using them, arguments, return values, etc)
    2. Commenting your code
    3. Variables (what are they, creating them, using them, naming rules, etc)
    4. Reading input from the keyboard with the input() function
  2. Math Expressions
    1. Math operators (+, -, /, //, *)
    2. Writing math expressions
    3. Evaluating math expressions
    4. Storing & printing the results of math expressions
    5. Difference between the two division operators (/ and //)
    6. Order of operations in math expressions
    7. The exponent operator (**)
    8. The modulo operator (%)
  3. Data Types
    1. General concept - what is a data type?
    2. Strings
    3. Numeric data types
      • Integers (int)
      • Floating point numbers (float)
    4. Mixed type expressions
    5. User input & data types (converting strings to floats / ints for calculation purposes)
    6. Using the float() and int() function to convert strings into numbers
    7. The Boolean data type
    8. Boolean variables
  4. Output
    1. General use of the print function and its default behavior
    2. Custom line endings (end=")
    3. Custom item separators (sep=")
    4. Escape characters (n, t, etc)
  5. String Manipulation
    1. Combining two strings (concatenation)
    2. Multiplying a string (x = 'hi' * 5)
    3. Formatting numbers using the format() function
    4. Case manipulation (x = str.lower('CRAIG') # converts the string literal 'CRAIG' to 'craig')
    5. Calculating string length using the len() function
  6. Selection Statements
    1. The structure of an IF statement (IF keyword, condition, colon, indentation)
    2. Writing a condition for an IF statement
    3. Boolean operators (<, >, ==, !=, >=, <=)
    4. Comparing numeric values using Boolean expressions
    5. Comparing string values using Boolean expressions
    6. Using the IF-ELSE statement
    7. Nesting decision structures (IF statements inside other IF statements)
    8. The IF-ELIF-ELSE statement
    9. Logical operators (and, or, not)
  7. Condition Controlled Loops (while loops)
    1. mechanics & how they work
    2. setting up conditions for a while loop
    3. infinite loops and how to avoid them
    4. sentinels (defining a value that the user enters that causes the loop to end)
    5. input validation loops (asking the user to continually enter a value until that value matches some condition)
  8. Accumulator variables
    1. setting up and using accumulator variables
    2. self referential assignment statements (i.e. counter = counter + 1)
    3. augmented assignment operators (i.e. counter += 1)
  9. Generating random numbers using the random.randint() function
  10. Error types (logic, syntax and runtime)

Reference no: EM13985042

Questions Cloud

What is the half-life : A sample of an unknown isotope decays according to the figure. What is the half-life?
Write a one page report about video : Watch video and write a one page report about it, your thoughts, agreements/disagreements...  http://livestream.com/YAF/events/4870270/videos/113495867
Compute the rate of inflation for each year : Collect annual data on 1-year T-security rate (nominal rate of interest). Using the inflation rate data in #1, compute the "real rate of interest" for each year. (Hint: Fisher equation)
Why should resources be a concern in a global strategy : Why should resources be a concern in a global strategy
Commenting your code : Functions (what are they, using them, arguments, return values, etc)Commenting your code
Problem regarding the bivariate normal probability : Suppose  the  amounts  of  oil (in barrels) lifted on a given day from two wells are jointly bivariate normal, with means 150 and 200, variances 100 and 25, and correlation .5. What is the probabil- ity that the total amount lifted is larger than ..
Determine the amount of joint cost allocated to each product : Determine the amount of joint cost allocated to each product if the physical-measure method is used. (10points)
How you will build such weapon using inductor and capacitor : Draw and explain how you will build such a weapon using an inductor and capacitor.Calculate the actual values for the L and C that will give you a freq. of 95 GHz.
Describe a noteworthy aspect of your experience : Describe a noteworthy aspect of your experience applying the Making Strategy process and explain your experience by drawing on concepts and ideas from the Making Strategy literature

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Protecting data transfer in network environment

It is expected your proposal has a length of 1 to 2 pages, the following information are needed:

  Explain effects of fiscal policies on economy-s production

Explain effects of fiscal policies on economy's production and employment. How do changes in government spending and taxes positively or negatively influence economy's production and employment?

  Explaining significance of automating boundary

In System Analysis and Design: Automation Boundary - Why is the automating boundary significant?

  Feature set of free helix forensics cd

Visit Helix web site and read about feature set of free Helix forensics CD. Note that documentation for Helix is not on CD, to keep it down to ~700MB.

  Establishing network between windows-linux computers

To network a Windows desktop and a computer running RedHat Linux, what will you need and what steps will you take?

  For combat orientated classes/professions

Each class should weight each attribute from most to least important. In Method IX, the most important attribute rolls 9d6 and keeps the highest 3. The second most important rolls 8d6, keeping the highest 3. This follows in this pattern of 7d6, th..

  Create a driver class to instantiates-updates several object

Create a driver class called FlightTest whose main method instantiates and updates several Flight objects. Two classes are required for this project: Flight and FlightTest.

  Analysis of how current and future technology trends

Analyze previous submissions and make changes as necessary to the final paper. Continue development of the project or research with a 3-5 page detailed analysis of how current and future technology trends might impact the project or research performe..

  Create a set of instructions

Provide a private address to be used for the AS and a public address to be used to connect to an ISP router connected to a border router.Create a set of instructions for the lab that would have students create a basic configuration and test connecti..

  Research redundant storage

Research Redundant Storage You've been hired by a company that wants to expand and improve storage on their servers. They would like to implement some form of RAID, but are unclear what the different options provide.

  How much is the cpu slowed down by dma

The bus is 16 bits wide, and bus transfers take 500 nsec each. The average CPU instruction requires two bus cycles. How much is the CPU slowed down by DMA?

  Designing the circuit which can scale the voltage

Design a circuit that can scale the voltage from a sensor with range of 0mV - 100mV to the range of 0V - 5V. Now feed this conditioned signal into a 12-bit ADC with VRL = 0 and VRH = 5V and determine the voltage (from the sensor) that will generat..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd