

Programming Concepts
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
kt geethu
Used 1+ times
FREE Resource
10 Slides • 0 Questions
1
PROGRAMMING CONCEPTS
2
LIBRARY ROUTINES
3
LIBRARY ROUTINES
4
LIBRARY ROUTINES
Procedure/Subroutine/Function
Pre-written block of code that performs a specific task
Stored in library and given names
Designed to be used frequently.
Using library routines make writing programs faster and easier as part of the work has already been done (and debugged).
5
LIBRARY ROUTINES
DIV
MOD
RANDOM
ROUND
6
LIBRARY ROUTINES
SYNTAX
7
LIBRARY ROUTINES
SYNTAX
EXAMPLE:
Value3 <--- ROUND(6.97354, 2) returns 6.97
Value4 <--- RANDOM( ) returns 0.2
8
PYTHON CODE EXAMPLES
OUTPUT
OUTPUT
9
MAINTAINABLE PROGRAM
Meaningful Identifier names for var,cons,array,procedures and functions
Smaller task
Comments
A maintainable program is one that is easy to understand, modify, and debug over time.
10
SCENARIO
Write a pseudocode & python code to simulate a temperature conversion program. Your program should: -
Prompt the user to enter a temperature in Celsius.
Convert the temperature to Fahrenheit using the formula: F = (C * 9/5) + 32.
Use the ROUND function to round the Fahrenheit temperature to two decimal places.
Display the rounded Fahrenheit temperature.
Use the MOD function to determine if the Fahrenheit temperature is an even or odd number. - Display whether the temperature is even or odd.
PROGRAMMING CONCEPTS
Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
10 questions
Cara Kerja Komputer ( Bab II ) Kelas 10
Presentation
•
10th Grade
10 questions
FORMATIF 1
Presentation
•
10th Grade
10 questions
Sleep
Presentation
•
10th - 11th Grade
11 questions
PSAT Orientation
Presentation
•
10th Grade
7 questions
INPUT-PROCESS-OUTPUT Activity
Presentation
•
11th Grade
11 questions
Perkembangan Teknologi Sistem Sensor
Presentation
•
10th Grade
6 questions
Tech+7.2 - OS
Presentation
•
10th Grade
8 questions
Pengantar Algoritma
Presentation
•
10th Grade
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Computers
50 questions
STAAR English 2 Review
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
31 questions
Easter Trivia
Quiz
•
KG - 12th Grade
16 questions
Circles - Equations, Central & Inscribed Angles
Quiz
•
9th - 12th Grade
46 questions
Unit 4 Geosphere Test Review
Quiz
•
9th - 12th Grade
10 questions
Calculating Surface Area of a Triangular Prism
Interactive video
•
6th - 10th Grade
20 questions
Central Angles and Arc Measures 2
Quiz
•
10th Grade