Category: About This Site

  • Title The JavaScript Way
  • Author(s) Baptiste Pesquet
  • Publisher: GitBooks
  • Paperback N/A
  • eBook HTML
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Book Description

This book aims to be a useful companion for anyone wishing to (re)discover the many facets of JavaScript. Numerous brain cycles were spent to make it:

  • Beginner-friendly yet comprehensive. From the very basics of programming up to front-end and back-end web development, a lot of topics are covered in a simple and accessible way. No prior knowledge needed!
  • Standards-aligned. The book is entirely written using the recent ES2015 syntax, giving you future-proof knowledge. From start to finish, it enforces good programming habits, embraces the ubiquitous JavaScript tools ESLint and Prettier and closely follows the popular AirBnb Style Guide.
  • Hands-on. No real learning happens without practicing! Each chapter is accompanied by a series of exercises to put your newly acquired skills into action. A three-part project will guide you in the creation of a social news web application (see it in action).
  • Easy to follow. Code along directly in your browser or build an efficient JavaScript development environment on your local machine.

Table of Contents:

  • Introduction
    • About this book
    • Welcome to programming
    • Introducing JavaScript
  • Part I: Learn to code programs
    • 3, 2, 1… Code!
    • Play with variables
    • Add conditions
    • Repeat statements
    • Write functions
    • Create your first objects
    • Store data in arrays
    • Work with strings
    • Understand object-oriented programming
    • Discover functional programming
    • Project: a social news program
  • Part II: Create interactive web pages
    • What’s a web page?
    • Discover the DOM
    • Traverse the DOM
    • Modify page structure
    • React to events
    • Manipulate forms
    • Animate elements
    • Project: a social news web page
  • Part III: Build web applications
    • Web development 101
    • Query a web server
    • Use web APIs
    • Send data to a web server
    • Discover Node.js
    • Create a web server
    • Project: a social news web app
  • Conclusion
    • Summary and perspectives
    • Acknowledgements
  • Appendices
    • Environment setup
    • Style guide

About Authors

  • Baptiste Pesquet is an Engineer and teacher in computer science near Bordeaux, France.

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

  • Title Software Innovation: Eight Work-style Heuristics for Creative System Developers
  • Author(s) Jeremy Rose
  • Publisher: Aalborg University (2010)
  • Paperback 129 pages
  • eBook HTML and PDF (154 pages, 3.6 MB)
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Book Description

Software Innovation: eight work-style heuristics for creative system developers.

Innovation is the forgotten key to modern systems development – the element that defines the enterprising engineer, the thriving software firm and the cutting edge software application. Traditional forms of technical education pay little attention to creativity – often encouraging overly rationalistic ways of thinking which stifle the ability to innovate. Professional software developers are often drowned in commercial drudgery and overwhelmed by work pressure and deadlines.

The topic that will both ensure success in the market and revitalize their work lives is never addressed.

This book sets out the new field of software innovation. It organizes the existing scientific research into eight simple heuristics – guiding principles for organizing a system developer’s work-life so that it focuses on innovation.

Table of Contents:

  • 0. Introduction
  • 1. Keep your head up: software trajectories and innovation windows
  • 2. Grow your community: network, knowledge, learning
  • 3. Target the product’s innovation profile: innovative software
  • 4. Shape your own process: software process and innovation
  • 5. Develop your personal creativity: the creative software developer
  • 6. Be a super-team-worker: the innovative software team
  • 7. Bring your toolbox: creativity tools and techniques
  • 8. Know when you are (not) innovative: assessment and evaluation
  • 9. Software innovation: eight work-style heuristics for innovative system developers

About Authors

  • N/A

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

  • Title Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development
  • Author(s) Peter Lubbers (Author),‎ Frank Salim (Author),‎ Brian Albers (Author)
  • Publisher: Apress, 2nd ed (December 12, 2011); eBook (Interactive Book)
  • Paperback 352 pages
  • eBook HTML
  • Language: English
  • ISBN-10: 143023864X
  • ISBN-13: 978-1430238645








Book Description

This online edition of the printing book started with the same content as the printed and ebook versions, but then it took it to the next level. The book will reformat itself for different sized screens. You can edit the code in a live editor. And the book will work offline.

HTML5 is here, and with it, web applications have acquired power, ease, scalability, and responsiveness like never before. With this book, developers will learn how to use the latest cutting-edge HTML5 web technology – available in the most recent versions of modern browsers – to build web applications with unparalleled functionality, speed, and responsiveness.

This edition includes major revisions for WebSockets functionality, reflecting the new W3C specification. It also features new chapters covering the drag-and-drop API as well as SVG.

  • Explains how to create real-time HTML5 applications that tap the full potential of modern browsers
  • Provides practical, real-world examples of HTML5 features in action
  • Covers all the new HTML5 APIs to get you up-to-speed quickly with HTML5
  • Fully updated to include the latest revisions of the WebSocket API, and much more.

Table of Contents:

  • Foreword
  • About the Authors
  • About the Technical Reviewer
  • Acknowledgements
  • Introduction
  • Chapter 1: Overview of HTML5
  • Chapter 2: Using the HTML5 Canvas API
  • Chapter 3: Working with HTML5 Audio and Video
  • Chapter 4: Using the HTML5 Geolocation API
  • Chapter 5: Using the Communication APIs
  • Chapter 6: Using the HTML5 WebSocket API
  • Chapter 7: Using the HTML5 Forms API
  • Chapter 8: Using the HTML5 Web Workers API
  • Chapter 9: Using the HTML5 Web Storage API
  • Chapter 10: Creating HTML5 Offline Web Applications
  • Chapter 11: The Future of HTML5
  • Index

About Authors

  • Peter Lubbers is the director of documentation and training at Kaazing Corporation and the co-founder of the San Francisco HTML5 User Group. Peter also teaches HTML5 training courses all over the world. Prior to joining Kaazing, Peter worked as an information architect at Oracle, where he wrote many books, including the award-winning Oracle Application Server Portal Configuration Guide. At Oracle, Peter also developed documentation automation solutions, and two of his inventions are patented. A native of the Netherlands, Peter served as a Special Forces commando in the Royal Dutch Green Berets. Peter lives on the edge of the Tahoe National Forest and in his spare time, he loves to run ultra marathons in the Sierra Nevada foothills and around Lake Tahoe (preferably in one go!).

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

  • Title Android Developer Fundamentals Course: Practical Workbook
  • Author(s) Google Developer Training Team
  • Publisher: Lulu.com (November 24, 2011); eBook (2008)
  • Paperback N/A
  • eBook HTML and PDF (566 pages))
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Book Description

This book prepares you to take the exam for the Associate Android Developer Certification. You learn basic Android programming concepts and build a variety of apps, starting with Hello World and working your way up to apps that use content providers and loaders. You’ll quickly and painlessly discover the ins and outs of using Java to create groundbreaking Android apps—no prior knowledge or experience required!

  • Get the know-how to create an Android program from the ground up
  • Make sense of basic Java development concepts and techniques
  • Develop the skills to handle programming challenges
  • Find out how to debug your app

Table of Contents:

  • Introduction
  • Unit 1. Get started
    • Lesson 1: Build your first app
      • Introduction to Android
      • Create Your First Android App
      • Layouts, Views and Resources
      • Text and Scrolling Views
      • Resources to Help You Learn
    • Lesson 2: Activities
      • Understanding Activities and Intents
      • The Activity Lifecycle and Managing State
      • Activities and Implicit Intents
    • Lesson 3: Testing, debugging, and using support libraries
      • The Android Studio Debugger
      • Testing your App
      • The Android Support Library
  • Unit 2. User experience
    • Lesson 4: User interaction
      • User Input Controls
      • Menus
      • Screen Navigation
      • RecyclerView
    • Lesson 5: Delightful user experience
      • Drawables, Styles, and Themes
      • Material Design
      • Providing Resources for Adaptive Layouts
    • Lesson 6: Testing your UI
      • Testing the User Interface
  • Unit 3. Working in the background
    • Lesson 7: Background Tasks
      • AsyncTask and AsyncTaskLoader
      • Connect to the Internet
      • Broadcast Receivers
      • Services
    • Lesson 8: Triggering, scheduling and optimizing background tasks
      • Notifications
      • Scheduling Alarms
      • Transferring Data Efficiently
  • Unit 4. All about data
    • Lesson 9: Preferences and Settings
      • Storing Data
      • Shared Preferences
      • App Settings
    • Lesson 10: Storing data using SQLite
      • SQLite Primer
      • SQLite Database
    • Lesson 11: Sharing data with content providers
      • Share Data Through Content Providers
    • Lesson 12: Loading data using loaders
      • Loaders
  • Unit 5: What’s Next?
    • Lesson 13: Permissions, Performance and Security
      • Permissions, Performance and Security
    • Lesson 14: Firebase and AdMob
      • Firebase and AdMob
    • Lesson 15: Publish!
      • Publish!

About Authors

  • N/A

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

  • Title Modeling and Simulation in Python
  • Author(s) Allen B. Downey
  • Publisher: Green Tea Press (September 2017)
  • License(s): CC BY-NC 4.0
  • Paperback N/A
  • eBook PDF
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Book Description

This book is an introduction to physical modeling using a computational approach. It is organized in three parts:

  • The first part presents discrete models, including a bikeshare system and world population growth.
  • The second part introduces first-order systems, including models of infectious disease, thermal systems, and chemical kinetics.
  • The third part is about second-order systems, including mechanical systems like projectiles, celestial mechanics, and rotating rigid bodies.

Taking a computational approach makes it possible to work with more realistic models than what you typically see in a first-year physics class, with the option to include features like friction and drag.

Python is an ideal programming language for this material. It is a good first language for people who have not programmed before, and it provides high-level data structures that are well-suited to express solutions to the problems we are interested in.

Table of Contents:

  • Preface
    • Can modeling be taught?
    • How much programming do I need?
    • How much math and science do I need?
    • Getting started
    • Installing Python and the libraries
    • Copying my files
    • Running Jupyter
  • Modeling/li>
    • The falling penny myth
    • Computation
    • Modeling a bike share system
    • Plotting
    • Defining functions
    • Parameters
    • Print statements
    • If statements
    • Optional parameters
    • For loops
    • Debugging
  • Simulation
    • Iterative modeling
    • More than one System object
    • Documentation
    • Negative bikes
    • Comparison operators
    • Metrics
    • Functions that return values
    • Two kinds of parameters
    • Loops and arrays
    • Sweeping parameters
    • Debugging
  • Explanation
    • World population data
    • Series
    • Constant growth model
    • Simulation/li>
    • Now with System objects
    • Proportional growth model
    • Factoring out the update function
    • Combining birth and death
    • Quadratic growth
    • Equilibrium
    • Disfunctions
  • Prediction
    • Generating projections
    • Comparing projections
    • Recurrence relations
    • Differential equations
    • Analysis and simulation
    • Analysis with WolframAlpha
    • Analysis with SymPy
    • Differential equations in SymPy
    • Solving the quadratic growth model
    • Summary
  • Design
    • The Freshman Plague
    • The SIR model
    • The SIR equations
    • Implementation
    • The update function
    • Running the simulation
    • Collecting the results
    • Now with a TimeFrame
    • Metrics
    • Immunization
    • Hand washing
    • Optimization
  • Analysis
    • Unpack
    • Sweeping beta
    • Sweeping gamma
    • Nondimensionalization
    • Contact number
    • Analysis and simulation
  • Thermal systems
    • The coffee cooling problem
    • Temperature and heat
    • Heat transfer
    • Newton’s law of cooling
    • Implementation
    • Using fsolve
    • Mixing liquids
    • Mix first or last?
    • Optimization
    • Analysis
  • Pharmacokinetics
    • The glucose-insulin system
    • The glucose minimal model
    • Data
    • Interpolation
    • Implementation
    • Numerical solution of differential equations
    • Least squares
    • Interpreting parameters
    • The insulin minimal model
  • Projectiles
    • Newton’s second law of motion
    • Dropping pennies
    • Onto the sidewalk
    • With air resistance
    • Implementation
    • Dropping quarters
  • Two dimensions
    • The Manny Ramirez problem/li>
    • Vectors
    • Modeling baseball flight
    • Trajectories
    • Finding the range
    • Optimization
    • Finishing off the problem
  • Rotation
    • The physics of toilet paper
    • Implementation
    • Analysis
    • Torque
    • Moment of inertia
    • Unrolling
    • Simulating a yo-yo

About Authors

  • Allen Downey is a Professor of Computer Science at Olin College of Engineering. He has taught at Wellesley College, Colby College and U.C. Berkeley. He has a Ph.D. in Computer Science from U.C. Berkeley and Master’s and Bachelor’s degrees from MIT.

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

  • Title Network Programming with Go
  • Author(s) Jan Newmarch
  • Publisher: Apress, 1st ed. edition (May 18, 2017); eBook (2012 – date. Update continuously)
  • License:CC BY-NC-SA 3.0
  • Paperback 274 pages
  • eBook HTML, ePub, PDF, and mobi (Kindle)
  • Language: English
  • ISBN-10: 1484226917
  • ISBN-13: 978-1484226919








Book Description

Dive into key topics in network architecture and Go, such as data serialization, application level protocols, character sets and encodings. This book covers network architecture and gives an overview of the Go language as a primer, covering the latest Go release.

Beyond the fundamentals, Network Programming with Go covers key networking and security issues such as HTTP and HTTPS, templates, remote procedure call (RPC), web sockets including HTML5 web sockets, and more.

Additionally, author Jan Newmarch guides you in building and connecting to a complete web server based on Go. This book can serve as both as an essential learning guide and reference on Go networking.

  • Master network programming with Go
  • Carry out data serialization
  • Use application-level protocols
  • Manage character sets and encodings
  • Deal with HTTP(S)
  • Build a complete Go-based web server
  • Work with RPC, web sockets, and more

Table of Content

  • Introduction
  • Architecture
    • Protocol Layers
    • Networking
    • Gateways
    • Packet encapsulation
    • Connection Models
    • Communications Models
    • Distributed Computing Models
    • Client/Server System
    • Client/Server Application
    • Server Distribution
    • Component Distribution
    • Middleware
    • Continuum of Processing
    • Points of Failure
    • Acceptance Factors
    • Transparency
    • Eight fallacies of distributed computing
  • Overview of Go language
  • Socket-level Programming
    • The TCP/IP stack
    • Internet addresses
    • IP address type
    • Services
    • TCP Sockets
    • Controlling TCP connections
    • UDP Datagrams
    • Server listening on multiple sockets
    • The types Conn, PacketConn and Listener
    • Raw sockets and the type IPConn
  • Data Serialisation
    • Mutual agreement
    • Self-describing data
    • ASN.1
    • JSON
    • The gob Encoding binary data as strings
    • Encoding binary data as strings
  • Application-Level Protocols
    • Protocol Design
    • Version control
    • Message Format
    • Data Format
    • Simple Example
    • State
  • Managing character sets and encodingsM
    • Definitions
    • ASCII
    • ISO 8859
    • Unicode
    • UTF-8 Go and runes
    • UTF-16 and Go
    • Unicode gotcha’s
    • ISO 8859 and Go
    • Other character sets and Go
  • Security
    • ISO security architecture
    • Data integrity
    • Symmetric key encryption
    • Public key encryption
    • X.509 certificates
    • TLS
  • HTTP
    • Overview of HTTP
    • Simple user-agents
    • Configuring HTTP requests
    • The Client object
    • Proxy handling
    • HTTPS connections by clients
    • Servers
  • Templates
    • Inserting object values
    • Pipelines
    • Defining functions
    • Variables
    • Conditional statements
  • A Complete Web Server
    • Static pages
    • Templates
    • The Chinese Dictionary
    • Flash cards
    • The Complete Server
    • Other Bits: JavaScript and CSS
  • HTML
  • XML
    • Parsing XML
    • Unmarshalling XML
    • Marshalling XML
    • XHTML and HTML
  • Remote Procedure Call
    • Go RPC
    • JSON
  • Network channels
    • Channel server
    • Channel client
    • Handling Timeouts
    • Channels of channels
  • Web sockets
    • Web socket server
    • The Message object
    • The JSON object
    • The Codec type
    • Web sockets over TLS

About Authors

    Jan Newmarch is Head of Higher Education (ICT), Box Hill Institute, Adjunct Senior Research Fellow, Faculty of IT, Monash University, and Adjunct Lecturer, School of Computing and Mathematics Charles Sturt University. He is a well-known figure in the Java and Jini community, and is author of the best-known online tutorial on Jini.

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

Where are Temporary Flight Restrictions? Click here to find out!
  • Title N/A
  • Author(s) N/A
  • Publisher: N/A)
  • Paperback N/A
  • eBook N/A
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Ushtrimi 1

Jane dhene E$(1:N), T1(1:N) dhe T2(1:N), qe per N lloje monedhash permbajne perkatesisht emrat e tyre, kursin mesatar te kthimit ne leke gjate muajit tetor dhe kursin gjate muajit nentor. Bazuar ne keto te dhena:

  1. Per cilat monedha ka patur ulje ne kursin mesatar nga muaji tetor ne muajin nentor dhe me sa perqind? Cila (cilat) monedha ka pesuar ndryshimin me te madh?
  2. Cili eshte kursi maksimal i hasur ne muajin tetor? Cilat dhe sa monedha kane pasur kurs maksimal gjate muajit tetor?
  3. Nga nje kontroll i bere, tek monedha qe ka kurs te muajit tetor me te ulet kundrejt gjithe te tjerave,rezultoi qe ne fakt, per periudhen ne shqyrtim, ishte paraqitur 35% e kursit real. Sa ka qene kursi i vertet i saj?
  4. Te renditen te dhenat e te treja tabelave sipas kursit te muajit tetor ne rendin zbrites? A do jene ne te njejtat pozicione monedhat sikur tabelat ti rendisnim sipas kursit te muajit nentor?
  5. Cilat jane vlerat e ndryshme pa perseritje per kursin mesatar gjate muajit tetor.

Ushtrimi 2

Ne tabelen E$(1:N) jane regjistruar emrat e studenteve te vitit te dyte ne FE. Ne tabelen LK(1:N) paraqitet numri i lendeve kaluese qe ka perkatesisht secili student dhe ne tabelen K(1:N) sasia e krediteve ne total qe ata kane grumbulluar ne lidhje me notat kaluese qe kane.

  1. Sa eshte numri i studenteve qe kane me pak se 3 lende kaluese? Afishoni emrin dhe sasine e kediteve per cdo student qe ka me pak se 3 lende kaluese.
  2. Cili eshte studenti qe ka sasine maksimale te krediteve te marra. Nese eshte i vetem a ka ky student numrin maksimal te lendeve kaluese.
  3. Kaloni ne nje tabele te re te gjithe studentet qe kane me pak se 6 lende kaluese por qe kane me shume se 30 kredite.
  4. Rendisni te dhenat e te treja tabelave sipas sasise se krediteve te studenteve ne rendin zbrites. A eshte renditur edhe tabela e lendeve kaluese ne rendin zbrites pas procedures se pare?

Ushtrimi 3

    Tabela e dhene K$(1:N) permban emrat e N konkuruesve qe moren pjese ne konkursin e pranimit per ne Fakultetin e Ekonomise ndersa tabelat e dhena D$(1:N) dhe P(1:N) permbajne perkatesisht degen e kerkuar dhe piket e marra per secilen prej tyre. Bazuar neketo te dhena:

    1. Cila eshte vlera maksimale e pikeve te marra ne konkurs?
    2. Sa konkurrente kane marre mbi 40 pike?
    3. Afishoni piket e marra dhe degen e kerkuar per konkurretin “Alban Kodra”.
    4. Gjeni numrin e konkurrenteve sipas cdo dege.
    5. Ne listen e konkurrenteve dhe tabelat perkatese te hiqen te dhenat per konkurretin K1$.

Where are Temporary Flight Restrictions? Click here to find out!
  • Title N/A
  • Author(s) N/A
  • Publisher: N/A)
  • Paperback N/A
  • eBook N/A
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Ushtrime me algoritmet ciklike

Ushtrimi 1. Te ndertohet nje bllokskeme e cila llogarit Shumen e numrave nga 3 ne n, ku n eshte nje numer i plote .

Ushtrimi 2. Te ndertohet nje bllokskeme e cila llogarit shumen e kubeve te numrave nga 2 ne n, ku n eshte nje numer i plote.

Ushtrimi 3. Te ndertohet nje bllokskeme e cila llogarit shumen e prodhimit te numrave natyror tek dhe cift te njepasnjeshem nga 1 ne n, ku n eshte nje vlere numer I plote. S = 1*2+3*4+5*6+ …(n-1)*n

Ushtrimi 4. Te ndertohet nje bllokskeme e cila llogarit prodhimin e numrave nga 2 ne n, ku n eshte nje numer i . ( P = 2*3*4*5* … *n )

Ushtrimi 5. Ndertoni nje program qe llogarit shumen e meposhtme: 3*2 + 5*6 + 7*30 + 9*210+…

Ushtrimi 6. Ndertoni nje program qe llogarit shumen e meposhtme: 3*2 + 6*4 + 24*8 + 192*16

  • Title Introduction to Data Science, with Introduction to R, Version 3
  • Author(s) Jeffrey Stanton
  • Publisher: Syracuse University (2013)
  • Paperback CC BY-NC-SA 3.0
  • eBook PDF, 196 pages, 23.2 MB
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Book Description

This book provides non-technical readers with a gentle introduction to essential concepts and activities of data science. For more technical readers, the book provides explanations and code for a range of interesting applications using the open source R language for statistical computing and graphics.

It also addresses the various skills required, the key steps in the Data Science process, software technology related to the effective practice of Data Science, and the best rising academic programs for training in the field.

In this book, a series of data problems of increasing complexity is used to illustrate the skills and capabilities needed by data scientists. The open source data analysis program known as “R” and its graphical user interface companion “R-Studio” are used to work with real data examples to illustrate both the challenges of data science and some of the techniques used to address those challenges. To the greatest extent possible, real datasets reflecting important contemporary issues are used as the basis of the discussions.

About Authors

  • Nils M. Holm is attracted by anything that is beautiful: math, nature, little insects, and the bright sun rays that fill the sky in the summer days, but most of all by the fragile reflection of empathy and sensitivity in the eyes of beings that are similar to himself.

Reviews and Rating:

Related Book Categories:

Read and Download Links:

Similar Books:

Where are Temporary Flight Restrictions? Click here to find out!
  • Title N/A
  • Author(s) N/A
  • Publisher: N/A)
  • Paperback N/A
  • eBook N/A
  • Language: English
  • ISBN-10: N/A
  • ISBN-13: N/A








Ushtrime me algoritmet te thjeshte

Ushtrimi 1. Tarifa e shkollimit per studentet e vitit te pare ne Fakultetin e Ekonomise eshte percaktuar nga Ministria e Arsimit 25000 Lek ne vit. Fakulteti po planifikon te beje disa ndryshime te tarifes perkatesisht:
– Per studentet qe e kane mesataren e shkolles se mesme 10 kjo tarife do te jete 30% me pak se tarifa e percaktuar nga Ministria.
– Per studentet qe e kane mesataren e shkolles mbi 8 kjo tarife do te jete 15% me pak se tarifa e percaktuar nga Ministria.
– Per te gjithe studentet e tjere do te jete sa tarifa e percaktuar nga Ministria.
Te hartohet nje algoritem qe do te llogarise tarifen e shkollimit TSH qe do te paguaje studenti ne vit te pare ne varesi te mesatares M qe ai ka.

Ushtrimi 2. Ne nje kinema cdo seance paguhet 500 Leke. Per te rritur klientelen pergjegjesi i marketingut propozon zbritjen e meposhtme:
– Spektatori, qe shkon 6 here e me shume ne muaj ne kinema do te paguaje 300 leke per seance.
– Spektatori, qe shkon ne kinema te pakten 3 here ne muaj i behet nje zbritje prej 150 leke per seance.
Te hartohet nje algoritem qe do te llogarise vleren qe duhet te paguaje nje spektator per muaj, kur ai ka shkuar N here ne kinema ne muaj.

Ushtrimi 3. Jepen dy numra A dhe B. Te llogaritet rezultati R i shprehjes ne varesi te ketyre kushteve: nese A eshte me i madh se B atehere llogaritni R = A/B – 10; nese A eshte e barabarte me B atehere R = 2A*B, perndryshe R = B/A – 20.
Te hartohet nje algoritem qe do te llogarise rezultatin R ne cfaredo lloj rasti.

Ushtrimi 4. Nje tregetar blen ne Itali nje sasi te dhene sheqeri me nje cmim te caktuar. Ne dogane paguan nje shume qe eshte sa nje perqindje e caktuar e vleftes se mallit. Sheqerin ai e shet ne treg me nje cmim te njohur per kg. Tregoni shumen qe tregetari pagoi ne dogane dhe fitimin e realizuar preti tij me shitjen e mallit ne qofte se tatimi ne dogane ndryshon sipas rregullit:
– Deri ne nje kufi te dhene te vleftes se mallit paguhet nje perqindje e caktuar.
– kur kalohet ai kufi i vleftes, per pjesen tej kufirit paguhet nje perqindje tjeter e caktuar.