Uses a potentiometer to change the rate of blinking of an LED.

Write a second version of the code so that the LED is on for a minimum of 0.1 seconds and a maximum of 3 seconds. In other words, the extreme positions of the potentiometer correspond to blink half-cycles of 0.1 seconds and 3 seconds.

Maybe if you showed us the first version, we could take it from there.

When is our assignment due?

Due tomorrow,

int potPin = 0;
int ledPin = 13;
int val = 0;

void setup() {
pinMode(ledPin, OUTPUT);

void loop() {
val = analogRead(potPin);
digitalWrite(ledPin, HIGH);
digitalWrite(ledPin, LOW);

The simple but lazy way would be to use map()

Please remember to use code tags when posting code.

I'm not so familiar with map instruction, could you please give me some hints?

No, that's what the reference section is for.
This isn't a homework helpline.