GithubHelp home page GithubHelp logo

program-problem-3-team-raven's Introduction

Three_Digit_Ascend_Descend_Selection

-Program Problem 3

Program Problem 3 : Three_Digit_Ascend_Descend_Selection

Assume that a completely trustworthy and perfect user comes along and will enter a 3 digit number into your program as you ask for it. Create a new empty project and make sure you have a header that includes both of your names on the project.

1. Ask for the completely trustworthy and perfect user to enter a 3 digit number into your program.

2. Store that number into a variable.

3. Take that variable and separate each of the three digits into separate variables.

4. Using those and selection of some nature. Print out whether the Number is Ascending or Descending based on the fact that each number is less than or greater than the previous number.

5. Once this is done, go back over your code, and make sure you have comments so that your code is clearly understood by every member of the class.

Below is a template to start your program:

/*

Your Name - Date Period

Assignment Name : *

Brief Description of the Assignment

*/

// Libraries

#include // gives access to cin, cout, endl, <<, >>, boolalpha, noboolalpha

#include <conio.h> // gives access to _kbhit() and _getch() for pause()

// Namespaces

using namespace std;

// Functions()

void pause() {

cout << "Press any key to continue . . .";

while (!_kbhit());

_getch();

cout << '\n';	

}

// MAIN

void main() {

pause(); // pauses to see the displayed text

}

program-problem-3-team-raven's People

Contributors

allencompsci avatar raychen1155 avatar st3ven16 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.