update basic apps and add ldpl folder
This commit is contained in:
parent
ba1daaea6b
commit
250a292421
10
ldpl/hello.ldpl
Normal file
10
ldpl/hello.ldpl
Normal file
|
@ -0,0 +1,10 @@
|
|||
# LDPL 'Hello World' example
|
||||
|
||||
data:
|
||||
name is text # Your name will go here.
|
||||
|
||||
procedure:
|
||||
display "Hello World!" lf "What's your name? "
|
||||
accept name
|
||||
display "你好, " name ", welcome to LDPL!" lf
|
||||
|
|
@ -1,7 +1,23 @@
|
|||
REM Order System 1.0
|
||||
rem by John Paul Wohlscheid
|
||||
REM by John Paul Wohlscheid
|
||||
|
||||
REM Variables
|
||||
|
||||
DIM items% 'item total
|
||||
DIM fname$ 'customer first name
|
||||
DIM lname$ 'customer last name
|
||||
DIM total% 'order total
|
||||
|
||||
REM Main Program
|
||||
|
||||
PRINT TAB(15); "Welcome to the first version of this Order System."
|
||||
PRINT TAB(15); "To place your order, enter the amount you of each"
|
||||
PRINT TAB(15); "item you want and the amount will be totalled"
|
||||
PRINT TAB(15); "at the end."
|
||||
PRINT
|
||||
PRINT TAB(15); "First of all, please enter your name."
|
||||
INPUT "Enter your first name: ", fname$
|
||||
INPUT "Enter your last name: ", lname$
|
||||
PRINT "Thank you," + fname$ + "!"
|
||||
PRINT
|
||||
|
||||
print tab(15); "Welcome to the first version of the Order System."
|
||||
print tab(15); "In order to place your order, enter the amount you"
|
||||
print tab(15); "of each item you want and the amount will be totalled"
|
||||
print tab(15); "at the end."
|
Loading…
Reference in New Issue
Block a user