Question: A very nervous person wants to select an access code for the alarm on their house. They have very specific instructions, as they don t

A very nervous person wants to select an access code for the alarm on their house. They have very specific instructions, as they dont want to make it easy for someone to guess their code.
I. The code must consist of six digits (0-9).
II. The code cannot have six digits all the same (ex: 000000,111111, etc.).
III. The code cannot have six consecutive numbers ascending or descending (ex: 012345,123456,987654,543210, etc.).
IV. The first and last digits cannot be a 0.
How many different access codes does this very nervous person have to choose from?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!