100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Resumen

CSC1015F Summary (first 5 chapters)

Puntuación
-
Vendido
-
Páginas
10
Subido en
04-05-2021
Escrito en
2020/2021

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.

Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Institución
Grado

Información del documento

¿Un libro?
No
¿Qué capítulos están resumidos?
1-5
Subido en
4 de mayo de 2021
Número de páginas
10
Escrito en
2020/2021
Tipo
Resumen

Temas

Vista previa del contenido

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
$3.06
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
jessrosie University of Cape Town
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
46
Miembro desde
5 año
Número de seguidores
36
Documentos
9
Última venta
8 meses hace

4.5

10 reseñas

5
8
4
1
3
0
2
0
1
1

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes