Results 1 to 3 of 3

Thread: Plss help me about turbo c program

  1. #1
    Join Date
    Jul 2011
    Posts
    1

    Plss help me about turbo c program

    plss give me a program peso and dollar conversion my program is 2errors plss give me the code program im noob programmer im comsci student plss help

  2. #2
    Join Date
    Jan 2006
    Posts
    605

    Re: Plss help me about turbo c program

    I will give you a simple command prompt program for the same. You have to do the actual coding but I will break it to you firstly. You should be able to figure this out from here. I do not give actual code so you can do it yourself and learn while doing it.

    Main function:
    start loop for main menu
    -----print "Enter 1 to convert dollars to pesos, enter 2 to convert pesos to dollars, and enter 3 to exit"
    ----get user input
    ----analyze user input with the following (a switch statement would be best. I will let you figure out how to do that):
    -------- If 1, call a function that convert dollars to pesos and returns a double. A statement using that result.
    -------- If 2, call a function to convert pesos to dollars that returns the result as a double. print a statement displaying the results.
    -------- If 3, use a return statement to end the program.
    -------- if user input is not one of these, print error
    go back to beginning of loop


    dollars to pesos function:
    ----ask user to input the number of dollars. (read it as a double)
    ----use an equation to convert the dollars to pesos using the exchange rate. It should be something simple like pesos = dollars * dollarsToPesosExchangeRate.
    ----return the result.

    pesos to dollars function:
    ---- ask the user to input the number of pesos and get the user input.
    ---- use an exchange rate to convert it. It should use a similar method to above, but a different exchange rate.
    ---- return the value as a double.

  3. #3
    jayendavid Guest

    Re: Plss help me about turbo c program

    Turbo C has a good collection of graphics libraries. If you know the basics of C, you can easily learn graphics programming.

Similar Threads

  1. How to run the Turbo C++ v3.0 program on DOS Shell
    By Faiyaz9 in forum Software Development
    Replies: 5
    Last Post: 31-08-2011, 10:19 PM
  2. C Program typed in Notepad can be Compiled using Turbo C
    By Kusagra in forum Software Development
    Replies: 8
    Last Post: 23-03-2011, 11:37 PM
  3. Replies: 3
    Last Post: 28-01-2011, 01:57 PM
  4. What are the different turbo features of cpu
    By Mercia mAC in forum Motherboard Processor & RAM
    Replies: 5
    Last Post: 27-11-2010, 12:20 AM
  5. Windows DEP program continuously closes the MSN mail program
    By Charioteer in forum Windows Software
    Replies: 4
    Last Post: 19-10-2010, 11:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,006,621.23862 seconds with 17 queries