100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSC1015F Summary (first 5 chapters) $2.81
Add to cart

Summary

CSC1015F Summary (first 5 chapters)

 56 views  0 purchase
  • Course
  • Institution
  • Book

First few lectures Summarized notes for the CSC1015F course at UCT. Notes are a summary of lectures, course material & textbook. I achieved a 90% for this course, with these notes.

Preview 2 out of 10  pages

  • No
  • 1-5
  • May 4, 2021
  • 10
  • 2020/2021
  • Summary
avatar-seller
Introduction to computing
Importance of computing:
- Forecasting natural disasters
- Computer Aided Tomography scans
- Finding and distributing information (internet)
- Entertainment (games, instant messaging)
- E-commerce (online shopping)


What is Computer Science?
The study of
- Computer software
- Algorithms, abstraction & efficiency
- Theoretical foundations for computation


Problem solving
1. Understand the problem
2. Plan – how to solve the problem
3. Carry out the plan – write the program
4. Assess result
5. Describe what you have learnt
6. Document the solution


Algorithms
Algorithm: set of steps to accomplish a task
Must be precise so that they:
- Are repeatable
- Have a predictable outcome
- Can be executed by different people


Elements of an algorithm:
- Sequence – each step is followed by another step
- Selection – a choice may be made among other alternatives
- Iteration – a set of steps may be repeatecd


Programming process
- Input – get information from the real world

, - Process – process the data internally
- Output – send the computed data back to the real world


Python Basics


Definitions
Program: set of instructions given to a computer, corresponding to an algorithm to
solve a problem
Programming: the act of writing a program
Integrated Development Environment (IDE): graphical interface with menus and
windows
Literals: actual data values written into a program
Function: block of code


Syntax
- Every statement starts on a new line (generally)
- Statements are case sensitive (ie: STUFF vs stuff)


Comments
- Everything after a # is a comment (ie: for humans)
- Brief description: author & date at top of program
- Purpose of each function (if more than one function)
- Short explanation of non-obvious part of code


Syntax Errors
Syntax error when the program does not conform to the structure required
Program will not run if there is a syntax error
Examples of syntax errors:
- print spelt incorrectly
Logic errors
Logic errors when the program runs but does not work as expected
You must test your program to make sure there are no logic errors

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller jessrosie. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $2.81. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53340 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$2.81
  • (0)
Add to cart
Added