Answer:
The solution code is written in Python 3.
- temp = int(input("Enter current temperature (Fahrenheit): "))
-
- while(temp < 270):
- temp = int(input("Enter current temperature (Fahrenheit): "))
-
- if(temp > 330):
- print("You burned the taffy!")
- else:
- print("Your taffy is ready for the next step")
Explanation:
Firstly, we can try to get a first temperature reading (Line 1)
if the first reading is smaller than 270, keep prompting user for the next reading using while loop (Line 3 - 4)
if the input temperature is bigger or equal to 270, the program will exist the while loop and proceed to check if the final temperature reading is bigger than 330 to determine an appropriate message to display (Line 6 - 9).
Answer:
Hi what do you mean by this I don't know
Explanation:
But please mark me brainliest thanks
Answer:
a student who researches various websites that show how to gamble online
a student who visits a special website with step-by-step directions on how to make a bomb
a student who posts jokes online about the cultural heritage of other students
Explanation: These are all most likely against school policy. In fact attempting to make a bomb is illegal.
Your answer would be:
<span>
In Microsoft Word you can access the </span><span>insert citation command from the mini toolbar.</span>
Answer:
The program written in Python is as follows:
<em>See Explanation section for line by line explanation</em>
for n in range(100,1000):
isum = 0
for d in range(1,n):
if n%d == 0:
isum += d
if isum == n * 2:
print(n)
Explanation:
The program only considers 3 digit numbers. hence the range of n is from 100 to 999
for n in range(100,1000):
This line initializes sum to 0
isum = 0
This line is an iteration that stands as the divisor
for d in range(1,n):
This line checks if a number, d can evenly divide n
if n%d == 0:
If yes, the sum is updated
isum += d
This line checks if the current number n is a double-perfect number
if isum == n * 2:
If yes, n is printed
print(n)
<em>When the program is run, the displayed output is 120 and 672</em>