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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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