learning how to use shell script

hello everyone, i am still trying to get this script to work, but with no luck. It is a little beyond my knowledge of scripting at the moment. The beginner book i have has an exercise listed that asks me to write a script tha allows for user input.

For example " what is your name: " and then you should be able to type your name in.

And right after that it wants you to enter a number with a certain amount of digits in it(3). So it says somthing along the lines of; (the name you entered) " you entered the number ###.

if someone could help show me how this is done i would greatly appreicate it.

Thanks

And that beginner book did not show you how to get user input??
you can read this book and also this page

well first of all you have to tell your environment which shell you are using, suppose your are using the bash shell then the script file would like:

#!/bin/bash

#The beginning of your script code

echo "What is your name ? "
read name
echo "Enter a 3 digit number"
read number
echo "The name you entered is " $name
echo "The number you have entered is " $number

#The end of your script code

thanks for your help everyone