simple program

This is a discussion on simple program within the C++ Programming forums, part of the General Programming Boards category; how do i develop a simple program that will comprise the following functions:sequence statement,one-way selection,two-way selection,multi-selection,switch selection,for loop,while loop and ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1

    Question simple program

    how do i develop a simple program that will comprise the following functions:sequence statement,one-way selection,two-way selection,multi-selection,switch selection,for loop,while loop and do..while loop
    it must also have an algorithm,code and flowchart
    than you!

  2. #2
    Registered User Strider's Avatar
    Join Date
    Aug 2001
    Posts
    149
    You have already defined the requirements.

    --> sequence statement: a line of code

    --> single-selection / one-way selection: if structure

    --> double-selection / two-way selection: if/else structure

    --> multiple-selection / multi-selection / switch-selection:
    if/else if/ else structure or switch structure

    --> repetition structure: for loop / while loop / do....while loop

    You just need to figure out how you want your program to test or exhibit these functions. Start coding and then come back and post your code if you have problems.

    David
    One Ring to rule them all, One Ring to find them,
    One Ring to bring them all and in the darkness bind them
    In the Land of Mordor where the Shadows lie.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a very simple program
    By htdefiant in forum C++ Programming
    Replies: 13
    Last Post: 08-14-2007, 01:27 PM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. [Help] Simple Array/Pointer Program
    By sandwater in forum C Programming
    Replies: 3
    Last Post: 03-30-2007, 02:42 PM
  4. simple silly program
    By verbity in forum C Programming
    Replies: 5
    Last Post: 12-19-2006, 05:06 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21