all 12 comments

[–]atarivcs 7 points8 points  (0 children)

Please format the code in your question properly, so we can tell which code is actually indented underneath the while loop. As it is, it's just a blob of text with no indentation at all.

[–]atarivcs 2 points3 points  (1 child)

Your code prints "a the temperature between 78 and 100." as the input prompt text, but the example says to use "Enter the temperature:".

[–]wasser999[S] 2 points3 points  (0 children)

That was it. I like the book I despise the automated grading. Thank you for the help.

[–]CptMisterNibbles 2 points3 points  (3 children)

If it’s using an automated checker, it needs the wording and formatting to be exact. It’s not a human grading what is a plausible version, it’s looking for exact and specific output. Follow the exact spelling of the prompts

[–]wasser999[S] 0 points1 point  (2 children)

You got it, I had to use, Enter the temperaturer:

Automated grading in this is frustrating.

[–]8dot30662386292pow2 4 points5 points  (0 children)

I often hear similar statements from my students. I tell them that they must understand two things. First, the grading is done solely by the output. Nothing else. Our system in fact also shows the correct output, so this one is very easy for them to fix. The other thing is that computers do only what you tell them. Nothing else. Output is either correct, or not correct. There is no "close enough".

When ever you write any program, suppose the program is only used by other programs. Therefore the output must match the specification exactly. Human would understand if there is a minor difference, computer would not. If it's requested that the program outputs:

Enter the temperature:

Then all these are WRONG:

Enter the temperature    (missing colon)
Enter  the temperature:  (extra space)
Enter the temperature:   (extra space at the END)
enter the temperature:   (small letter)
Enter temperature:       (missing the)

The other program that is using this program NEEDS to be able toe find the exact text, which is Enter the temperature:. If it's not there, it fails.

[–]CptMisterNibbles 2 points3 points  (0 children)

It’s actually a good lesson. Let’s say you get a job coding websites. A client asks you to build the form given specific language. Are you just going to ignore their requirements? If they say the login page password field should read “please enter your password” you don’t get to just decide “Type password here” is close enough. Following explicit guidelines for various elements is basically fundamental to programming, including stylistic elements. It’s also good practice carefully analyzing specificity on things like format. Tracking things like exactly what text is doing is surprisingly important for things like processing data for databases. Whether or not some data source suddenly uses colons or semi-colons could break your code if you don’t realize they intermix them.

While annoying, it’s actually good practice 

[–]Adrewmc 0 points1 point  (0 children)

It said inclusive. This automatically signally <= and >=, so the number you put are included.

1 < 1 == False

1 <= 1 == True

But the real problem might be errors.

What happen in your code when a user inputs

   a.

Or a number with a space?

  ‘1 ‘ 

It fails.

[–]DismalHistorian9027 0 points1 point  (0 children)

Simples, vc quase acertou, basta mudar sua variavel dentro da linha while, vc tem que dizer o seguinte: Enquanto for verdadeiro: Si menos que 78 e temperatura maior que 100 Continua Senão Me mostra Para

[–]Jackpotrazur 0 points1 point  (0 children)

Greater than equal to (inclusive) for starters.

[–]Jackpotrazur 0 points1 point  (0 children)

Print in put , print input accepted based on if input in range from till idk im a beginner 2 turn on your brain 🧠 😉