Giter VIP home page Giter VIP logo

hw1011's Introduction

hw1011

COSC 311 Homework hw1011

Distributed: 10/11/2018 Due: 10/18/2018

Create a circular queue implemented on a 1D array, size 10.

Initialize one random number generator with seed 3.

Modify the insert and delete code so that errors are ignored.

Repeat the following 3 times: Generate a random number x between 1 and 5 Repeat x times: Generate a random number a between 0 and 99 Insert a to the queue Generate a random number y between 1 and 5 Repeat y times: Delete from the queue

Output the resulting queue. If the queue is empty, output: "Empty queue".

Constraints: (1) Must use a 1D array circular queue. (2) Must use a single random number generator, which is seeded with 3.

Points taken off for: (1) Doesn't work (2) Fails to meet style constraints (3) Code does not match output (4) Ugly or difficult to understand code

Turn in: (1) Hard copy of code (2) Header with your last name, home work identifier (hw1011), URL of source code (3) Screen shot showing program execution

hw1011's People

Contributors

github-archives avatar

Watchers

James Cloos avatar  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.