From d9cb055906ceb538c2b5ba59d4b3a8e8a50f47f9 Mon Sep 17 00:00:00 2001 From: John Paul Wohlscheid Date: Sun, 30 Jan 2022 01:57:46 -0500 Subject: [PATCH] Added address questions --- working-with-files/writing-files.ldpl | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 working-with-files/writing-files.ldpl diff --git a/working-with-files/writing-files.ldpl b/working-with-files/writing-files.ldpl new file mode 100644 index 0000000..2714ca5 --- /dev/null +++ b/working-with-files/writing-files.ldpl @@ -0,0 +1,41 @@ +# Writing an application to write to text files +# In this case, we are pretending to write customer information to a text file + +data: + +fname is text # Customer's first name +lname is text # Customer's last name +add1 is text # First line of customer's address +add2 is text # Second line of customer's address +cit is text # City customer lives in +stat is text # State customer lives in +zip is number # Customer's zip code +phon is number # Customer's phone number +email is text # Customer's email + +procedure: + +display "Welcome to this customer database." crlf "Please enter the required information below." crlf +wait 1000 milliseconds + +display "What is your first name?" crlf +accept fname +display "What is your last name?" crlf +accept lname +display "What is the name of your business?" crlf +accept add1 +display "What is your street address?" crlf +accept add2 +display "What is your city?" crlf +accept cit +display "What is your state" crlf +accept stat +display "What is your zipcode?" crlf +accept zip +display "What is your phone number?" crlf +accept phone +display "What is your email?" crlf +accept email + +wait 1000 milliseconds +display "Please verify the information below."