Weekly Qbasic and Qb64 Lesson Topics
March 24, 2025, 05:15:45 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

What I have so Far,Learning program

Pages: 1 [2]
  Print  
Author Topic: What I have so Far,Learning program  (Read 2078 times)
guest
Guest
« Reply #15 on: June 12, 2011, 03:12:33 am »


     
Quote
I did read in one tutorial, it said one needs, at least trigonometry, to get any where with programming code.
That may ot neccesarily be true, but the math is helpful.
    I rewrote your code to this
Code:
SCREEN 12

WIDTH 40
CLS

DO
  PRINT "Press the LETTER please"
  z = INT(RND * 26) + 66
  PRINT CHR$(z)
  '-------------------------------------------
  WHILE Letter$ <> CHR$(z)
    INPUT "Letter: ", Letter$ 'somewhere in here, I want it to print message if the letter is not correct
    Letter$ = UCASE$(Letter$)

    IF Letter$ = CHR$(z) THEN
      PRINT " Good You wrote "; Letter$
    ELSE
      PRINT "Wrong ,you wrote "; Letter$; " Please Try again "; CHR$(z)
    END IF
  WEND

  _DELAY 1
  CLS
LOOP UNTIL _KEYDOWN(27)
SLEEP
SYSTEM

   
« Last Edit: September 11, 2011, 07:02:13 pm by GarrisonRicketson » Report Spam   Logged

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy