Build a Salon Appointment Scheduler - Build a Salon Appointment Scheduler

Tell us what’s happening:

I’m failing test 15 (You should display a numbered list of the services you offer before the first prompt for input, each with the format #) . For example, 1) cut, where 1 is the service_id), but here is my output, it matches what was described in another forum post by an instructor. Can you help me understand what I’m doing wrong?

Your code so far

camper: /project$ ./salon.sh
~~~~~ MY SALON ~~~~~

Welcome to My Salon, how can I help you?

1) haircut-short
2) haircut-medium
3) haircut-long

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15 Ddg/26.2

Challenge Information:

Build a Salon Appointment Scheduler - Build a Salon Appointment Scheduler

Hi @dhorowitz001

Try using the five services from the example output.

Happy coding

1 Like

I updated to match the example output, and it’s still failing the same test.
~~~~~ MY SALON ~~~~~

Welcome to My Salon, how can I help you?

  1. cut
  2. color
  3. perm
  4. style
  5. trim

When I did this project it was a round brace after each number.

I don’t know how the cut and paste came through with periods, the code and the output just now has the round brace:



~~~~~ MY SALON ~~~~~

Welcome to My Salon, how can I help you?

1) cut
2) color
3) perm
4) style
5) trim

i suggest sharing a link to a repo with your code and any sql dump you have if you’re using a database

Here’s my repo:

https://github.com/dhorowitz001/my-salon-project.git

Hi – have you had a chance to look at my repo? My code meets the requirements but doesn’t pass the tests. I’ll be very grateful for any guidance you can provide.

I just took a look, I haven’t figure out why your code doesn’t pass though.

Is there any mechanism for a staff member to mark my project as passed so I can take the certification exam?

unfortunately i am not aware of any such mechanism

Hi @dhorowitz001

See if you can replicate the first example:

~~~~~ MY SALON ~~~~~

Welcome to My Salon, how can I help you?

1) cut
2) color
3) perm
4) style
5) trim
10

I could not find that service. What would you like today?
1) cut
2) color
3) perm
4) style
5) trim
1

What's your phone number?
555-555-5555

I don't have a record for that phone number, what's your name?
Fabio

What time would you like your cut, Fabio?
10:30

I have put you down for a cut at 10:30, Fabio.

Happy coding

camper: /project$ ./salon.sh


Welcome to My Salon, how can I help you?

1) cut
2) color
3) perm
4) style
5) trim
10

I could not find that service. What would you like today?
1) cut
2) color
3) perm
4) style
5) trim
1

What's your phone number?
555-555-5555

I don't have a record for that phone number, what's your name?
Fabio

What time would you like your cut, Fabio?:
10:30

I have put you down for a cut at 10:30, Fabio.

camper: /project$ 

I think I’ve matched your output exactly, but it’s still failing from here forward:

You should display a numbered list of the services you offer before the first prompt for input, each with the format #) <service>. For example, 1) cut, where 1 is the service_id

Thanks for continuing to work through this with me.

This is the first line of my output, I missed it in the cut-and-paste — and I just pasted it in again and it looks like the formatted text won’t accept the ~~~~ characters, but they’re definitely there.

Try removing the colon.

I got rid of the colon, the output looks good, but it still fails. So frustrating!


Welcome to My Salon, how can I help you?

1) cut
2) color
3) perm
4) style
5) trim
10

I could not find that service. What would you like today?
1) cut
2) color
3) perm
4) style
5) trim
1

What's your phone number?
555-555-5555

I don't have a record for that phone number, what's your name?
Fabio

What time would you like your cut, Fabio?
10:30

I have put you down for a cut at 10:30, Fabio.

Did you push your new code up to the repo?

Yes, latest commit has comment “removed colon” on salon.sh.

Hi Hanaa, have you had a moment to look at my latest code? I’m eager to complete the certification for this course, but can’t take it until I get this project to pass. Thank you kindly.

Hi Hanaa, just checking in — will you be able to review my latest code to see if we can figure out why I’m matching the expected output but not passing the tests?