Computer Science GCES EDEXCEL
-
Decomposition And Abstraction Edexcel2 主题
-
Algorithms Edexcel11 主题
-
Follow And Write Algorithms Edexcel
-
Introduction To Programming Concepts Edexcel
-
Basic Programming Concepts Edexcel
-
Variables Constants And Assignments Edexcel
-
Data Structures And Arrays Edexcel
-
Arithmetic Relational And Logical Operations Edexcel
-
Determine Outputs Of An Algorithm Edexcel
-
Types Of Errors Edexcel
-
Standard Sorting Algorithms Edexcel
-
Standard Searching Algorithms Edexcel
-
Algorithm Efficiency Edexcel
-
Follow And Write Algorithms Edexcel
-
Truth Tables Edexcel3 主题
-
Binary Edexcel6 主题
-
Data Representation Edexcel4 主题
-
Data Storage And Compression Edexcel2 主题
-
Hardware Edexcel5 主题
-
Software Edexcel3 主题
-
Programming Languages Edexcel2 主题
-
Networks Edexcel7 主题
-
Network Security Edexcel2 主题
-
Environmental Issues Edexcel1 主题
-
Ethical And Legal Issues Edexcel3 主题
-
Cybersecurity Edexcel2 主题
-
Develop Code Edexcel6 主题
-
Constructs Edexcel4 主题
-
Data Types And Data Structures Edexcel5 主题
-
Operators Edexcel1 主题
-
Subprograms Edexcel2 主题
Programming Operators Edexcel
Exam code:1CP2
Programming Arithmetic Operators
-
To demonstrate the use of common arithmetic operators, three sample programs written in Python are given below
-
Comments have been included to help understand how the arithmetic operators are being used
-
Arithmetic operators #1 – a simple program to calculate if a user enters number is odd or even
-
Arithmetic operators #2 – a simple program to calculate the area of a circle from a user-inputted radius
-
Arithmetic operators #3 – a simple program that generates 5 maths questions based on user inputs and gives a score of how many were correctly answered at the end
-
|
Python examples |
|---|
|
# ———————————————————————– # if the remainder of the number divided by 2 is 0, the number is even # ———————————————————————– # Calculate the area of the circle # Display the calculated area # ———————————————————————— # Loop 5 times # Check the answer and update the score
|
Programming Boolean & Relational Operators
-
To demonstrate the use of common Boolean operators, three sample programs written in Python are given below
-
Comments have been included to help understand how the Boolean operators are being used
-
Boolean operators #1 – a simple program that assigns Boolean values to two variables and outputs basic comparisons
-
Boolean operators #2 – a simple program to output a grade based on a users score
-
Boolean operators #3 – a simple program reads a text files and searches for an inputted score
-
|
Python examples |
|---|
|
# ———————————————————– # print the result of a and b # ———————————————————– # Take input for the score from the user # Compare the score and output the corresponding grade # ———————————————————– |
Responses