Flow chart question

This is a discussion on Flow chart question within the C++ Programming forums, part of the General Programming Boards category; Code: I have problem with this question: Draw a flow chart to illustrate the working of the following code: if(costs==revenue) ...

  1. #1
    Registered User
    Join Date
    May 2011
    Location
    Ireland
    Posts
    13

    Question Flow chart question

    Code:
    I have problem with this question:
    Draw a flow chart to illustrate the working of the following code:
    if(costs==revenue) 
      console.writeline ("Break even");
    else if(costs < revenue) {
      profit = revenue - costs;
      Console.Writeline ("profit is 0:C}",profit;
       }
    else
       {
     loss = costs-revenue;
    Console.Writeline ("loss is {0:C",loss);
        }

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,851
    Flowchart - Wikipedia, the free encyclopedia
    Pretty much the same, just change the words.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    May 2011
    Location
    Ireland
    Posts
    13
    Thanks

    thats excellent
    Last edited by Markusob; 05-05-2011 at 01:14 PM.

  4. #4
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,657
    And for future reference, that code appears to be C#.

  5. #5
    Registered User
    Join Date
    May 2011
    Posts
    19
    it looks like C#

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,025
    Was there a point to reviving the thread with a reply that repeats what has also been said?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Flow chart
    By SimplyNice in forum C Programming
    Replies: 5
    Last Post: 03-20-2011, 07:22 AM
  2. flow chart
    By rafay07 in forum C++ Programming
    Replies: 6
    Last Post: 04-13-2010, 01:42 PM
  3. If-Else Flow-chart Question
    By Cell in forum Tech Board
    Replies: 3
    Last Post: 02-09-2009, 06:53 AM
  4. Flow Chart
    By strokebow in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2008, 08:57 AM

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