Git Product home page Git Product logo

gce-a-l-ict-past-paper-python-answers's Introduction

GCE A/L ICT Past Paper Python Answers

Hits

2020

AL2020PythonChart

Assume that L is a list of positive integers, K is a positive integer and every element in L is less than M, which is a large integer.

Develop a Python program to implement the algorithm expressed by the flowchart.

2019

2018 Flowchart

Write a python code for the given flow chart

2018

2018 Flowchart

Write a python code for the given flow chart

2017

The consumtion of electricity at houses is charged based on the number of units consumed. The first 64 unit are charged at Rs. 5.00 per unit, and the rest at Rs. 10.00 per unit.

  1. Write a python program to input the house number, previous meter reading, post meter reading and calculate the bill amount
  2. Develop a function in Python to write HouseNumber, meter readings and the bill amount to a file named 'deb.txt'

2016

A canteen of a school sells 10 different types of foods. These food types are placed in a shelf. Students can select foods while walking alongside the shelf and keep them on a tray. These trays are available at the entrance of the canteen. A student, after selecting the food, should proceed to the cashier with the food tray for the payment.

You are asked to develop a Python program to calculate the payment due for a food tray. For this pupose, each food item is given a unique integer from 1 to 10.

Food type 1 2 3 4 5 6 7 8 9 10
Unit Price 10.00 12.00 15.00 10.00 25.00 45.00 50.00 25.00 10.00 12.00

2015

Your teacher has requested you to write a python program to record the marks obtained by students at the term test. Each student had sat for the same three papers and each mark was given as an integer value out of 100 marks. Each student is identified by a unique index number which is also an integer. You should record the marks of each student in a text file named 'marks.txt' in the following format.

_index_no_1,mark_11,mark_12,mark_13_

_index_no_2,mark_21,mark_22,mark_23_

Marks should be entered through the keyboard, one item at a time and the program should be terminated when -1 is entered as the index number

2014

Write a python program to print the factorial of a given positive integer n The factorial of a positive number n is given by: n x (n-1) x (n-2) .... 3 x 2 x 1

2013

You are required to write a Python program to find and display the maximum value of given 10 integers. The program should read integers one at a time.

gce-a-l-ict-past-paper-python-answers's People

Contributors

cdjheshi avatar geethmaka avatar hasindulanka avatar kenbot822 avatar lenzfliker avatar networkcable avatar notnavindu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gce-a-l-ict-past-paper-python-answers's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.