Build a Salon Appointment Scheduler - Build a Salon Appointment Scheduler

Tell us what’s happening:

The 1.16 test are not accepting the code, and it does exactly what it asks for. I can’t get a answer for that.

Your code so far

echo -e "\\nWelcome to My Salon, how can I help you?\\n"

SERVICE_MENU () { 

  echo "$SERVICES" | while read SERVICE_ID BAR NAME

  do

    echo "$SERVICE_ID) $NAME"

  done



  read SERVICE_ID_SELECTED



  SERVICE_CHOSE=$($PSQL "SELECT name FROM services WHERE service_id=$SERVICE_ID_SELECTED")

  if \[\[ -z $SERVICE_CHOSE \]\]

  then

    echo -e "\\nWelcome to My Salon, how can I help you?\\n"

    SERVICE_MENU

It asks that should show the same list if it don’t pick a existing option.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Challenge Information:

Build a Salon Appointment Scheduler - Build a Salon Appointment Scheduler

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

run your program and record the output in a file.
compare the output line by line to the sample output.
There may be a clue there.

(if you need help, please share a link to a github repo with your code and a dump of your database)

Thank you. I will try your suggestion.

I’ve done what you said but i couldn’t see anything.
GitHub - BrunoCardinot/Salon · GitHub - Both files are here, this is the only step remaining.

It was expecting the use of another fuction in the code. It worked after the changes.

ok so you’re all good now?

1 Like