Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Q Basic

  • 10-12-2002 03:03PM
    #1
    Registered Users, Registered Users 2 Posts: 7,208 ✭✭✭


    I was wondering can I get some help of you as I am doing a project and I have 2 assignments and I am having trouble with the second.SO I am looking for some good scripts on Q baisic.
    Any help I appreciate

    gob_smacked


Comments

  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    Could you be more specific with your question or are you just looking for someone to do your homework for you?


  • Registered Users, Registered Users 2 Posts: 7,208 ✭✭✭the whole year inn


    Well I am looking for some place for help with the project and I am not looking for you do do it for me. The project is aobut a currency converter and it has a password on it. You have 3 attemts on the password. I am using the read data statement .It works fine for the first attempt and the problem lies when I enter the correct information after the first attempt it does not let me go to the converter even though the user name and pass is correct. I also use the for and next statement and I get out of data after i enter a few incorrect usernames and passwords. No doubt this is easy for you but any help I appreciate

    gob_smacked


  • Registered Users, Registered Users 2 Posts: 1,118 ✭✭✭LoBo


    post some code maybe?


  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    Originally posted by gob_smacked
    No doubt this is easy for you but any help I appreciate
    Not that easy - it's been seven or so years since I touched QBasic ;)

    Still, from the requirements you've given, it appears to be a fairly basic application that makes use of very few commands/operators, so I'd break down the app like this:
    1. Loop three times using FOR... NEXT. Check for the password using INPUT and if correct break out of the loop (AFAIR you can do this with QBasic, otherwise use a variable to denote wheither the password's been given correctly and, using this as a flag, ignore subsequent INPUTs)
    2. Take in your currency values using INPUT again. Calculate the new value and then PRINT it to the buffer.
    Hope this helps.


Advertisement