GithubHelp home page GithubHelp logo

mohammadfalah2400 / class8-week4-file-i-o-exception-handling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fenyx-it-academy/class8-week4-file-i-o-exception-handling

0.0 0.0 0.0 5 KB

Python 100.00%

class8-week4-file-i-o-exception-handling's Introduction

Class8-Week4-File-I-O-Exception-Handling

Letters for each line

Write a Python program to create a file where all letters of English alphabet(uppercase and lowercase both) are listed by specified number of letters on each line.

Question 2

Write a Python program to generate 26 text files named A.txt, B.txt, and so on up to Z.txt.

LCM

As a user, I want to use a program which can calculate the least common multiple (L.C.M.) of four numbers. So that I can find the least common multiple (L.C.M.) of my inputs.

Acceptance Criteria:

  • Ask user to enter the four numbers.
  • Use try/except blocks to verify input entries and warn the user for Nan or non numerical inputs.
  • Calculate the least common multiple (L.C.M.) of four numbers
  • Use gcd function in module of math

4- Mis Calculator

As a user, I want to use a program which can calculate basic mathematical operations. So that I can add, subtract, multiply or divide my inputs.

Acceptance Criteria:

  • The calculator must support the Addition, Subtraction, Multiplication and Division operations.
  • Define four functions in four files for each of them, with two float numbers as parameters.
  • To calculate the answer, use math.ceil()  and get the next integer value greater than the result
  • Create a menu using the print command with the respective options and take an input choice from the user.
  • Using if/elif statements for cases and call the appropriate functions.
  • Use try/except blocks to verify input entries and warn the user for incorrect inputs.
  • Ask user if calculate numbers again. To implement this, take the input from user Y or N.

class8-week4-file-i-o-exception-handling's People

Contributors

tars13 avatar mohammadfalah2400 avatar

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.