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

  Use a traditional for loop to process the array

Write a Java method which takes an integer array parameter and fills the array with random numbers between 1 and 1000, including 1 and 1000. Use a traditional for loop to process the array.

  Healthcare environment

From the e-Activity, analyze at least two (2) primary economic assumptions and examine their short- and long-term impact on promoting the competitive market model in the healthcare environment. Evaluate the fundamental reasons why price and utiliz..

  What is the research problem the paper attempts to address

What is the research problem the paper attempts to address

  Jerry''s appliance has a special promotion

Jerry's Appliance has a special promotion for its week long Anniversary Sale. After Customers have picked out the merchandise they wish to buy, they can draw three balls from an urn to determine the sum of the discount they will receive on their p..

  Enter a number of items and calculating sales tax on a sale

Class PRG/211 Using visual logic number 1 and 2 task must include a conditional step and some form of iteration. Task 1.Enter a number of items and calculating sales tax on a sale including a step offering a warranty for each item. 2. Figuring out..

  Who are the stakeholders

Probe into resulting consequence between stakeholders and management as a result of security incidents. Who are the stakeholders?

  Understanding of-ability to apply the programming concepts

This assignment tests your understanding of and ability to apply the programming concepts we have covered in the unit so far, including the usage of variables, input/output, data types, selection, iteration, functions and data structures.

  Measuring it value

Measuring IT Value

  The basic sociological fact in buddhism

1. The basic sociological fact in Buddhism is _______. a. Karma b. Samgha

  Scenario: alain polyclinic is a medical clinic

Scenario: Alain polyclinic is a medical clinic situated in AL-Ain. Assume that the chief operating officer of the clinic has contacted you to create a conceptual model whose application will meet the expected database requirements for the clinic. The..

  Compare and contrast the process of conceptual design

Compare and contrast the process of (i) conceptual design, (ii) preliminary design, and (iii) detailed design in general and in the development of an automobile.

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