Giter Club home page Giter Club logo

cecs-229's Introduction

CECS-229

Programming Assignments/Solutions to Discrete Structures for Computing Applications II Fall 2020

  1. Given two integers, use the Euclidean algorithm to find their greatest common divisor.

  2. Convert Binary String to Decimal

  3. Design a class named Rectangle to represent a rectangle. The class contains: • Two double data fields named width and height that specify the width and height of the rectangle. • A no-arg constructor that creates a rectangle with width 1 and height 1. • A constructor that creates a rectangle with the specified width and height. • A function named getArea()that returns the area of this rectangle. • A function named getPerimeter() that returns the perimeter. Implement the class. Write a test program that creates two Rectangle objects. Assign width 4 and height 40 to the first object and width 3.5 and height 35.9 to the second. Display the width, height, area, and perimeters of the first object and then the second object

  4. Generate valid keys (e,n) for the RSA cryptosystem.

  5. Use the Sieve of Eratosthenes to find all primes less than 10,000(or in this case the user can choose).

  6. Find all of the positive divisors of a positive integer from its prime factorization.

cecs-229's People

Contributors

lreissmueller avatar

Watchers

 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.