GithubHelp home page GithubHelp logo

squares-c's Introduction

squares-c

For the Chapter 3 lab, we are going to create a program that can generate a square of asterisks.

As before, we have an invite for GitHub Classroom:

Click on that link and get your repo created, this time there will be starter code in the repo.

Open VS Code and run git clone to pull down that repo to your machine.

You will need to write an application that prompts the user to enter the length (1-20) of one side of a square.

Then print out a hollow square of asterisks of the size specified.

Prompt the user to enter 'y' or 'n' to draw another square.

The program would handle lengths of 1-20.

Example output:

Please enter the length of a side of a square (1-20): 4

****
*  *
*  *
****

Would you like to draw another square (y/n)? n

The assignment is completed when you have finished and tested the above changes and pushed your code to GitHub for grading.

Remember to push your code you need to "Stage All Changes" -> "Commit Staged Changes" -> "Push"

squares-c's People

Contributors

infosecdad avatar

Watchers

 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.