Answer:
The notes of the musical scale always follow a set pattern of Tones and Semitones. If you look at a piano keyboard, 1 key up is a semitone, 2 keys up is a tone.
The major scale is
Start note, tone, tone, semitone, tone, tone, tone, semitone
N - T- T - ST - T - T - T - ST
c - d - e - f - g - a - b - c
Hence, the scale of D major would then be
N - T- T - ST - T - T - T - ST
d - e - f# - g - a - b - c# -d
E major
e - f# - g#- a - b - c# - d# e
F major
f - g - a - Bb - c - d - e - f
etc.
The Harmonic Major Scale is
Start note, Tone, Semitone, Tone, Tone, semitone, 3semitones, Semitone
i.e.
C minor
N - T - ST - T - T - ST - 3ST - ST
C - D - Eb - F - G - Ab - B - C
D minor
D - E - F - G - A - Bb - C# - D
etc.