Answer:
# -*- coding: utf-8 -*-
# Get N from the command line
import sys
N = int(sys.argv[1])
if N > 0: #N is positive
positve = list(range(N,0,-1))
print(positve)
elif N < 0: #N is negative
negative = list(range(N,0,1))
print(negative)
else:
print("Invalid in input")
Explanation:
First, you need to identify if the number entered is positive, negative or none of them, for that we use one if, one elif and one else statement:
- If the number entered (N) is greater than zero (is positive) we print a list in the range N to 0 in steps of minus one, the zero is not printed because the function range by default omits the last value
- If the previous statement was False and the number entered is smaller than zero (is negative) we print a list in the range N to 0 in steps of one, the zero is not printed because the function range by default omits the last value
- Finally, if the two previous events were false print invalid input
Pseudocodes are used as a prototype of an actual program.
The error in the pseudocode is that, the while loop in the pseudocode will run endlessly.
From the pseudocode, the first line is:
<em>Declare Boolean finished = false</em>
The while loop is created to keep running as long as <em>finished = false.</em>
So, for the while loop to end, the finished variable must be updated to true.
This action is not implemented in the pseudocode.
Hence, the error in the pseudocode is that, the while loop is an endless loop
Read more about pseudocodes at:
brainly.com/question/17442954
Answer:
Pressure- temperature diagram of the fluid is the phase lines that separate all the phases.
Explanation:
Step1
Pressure temperature diagram is the diagram that represents the all the phases of the fluid by separating a line. There is no phase change region in the pressure temperature diagram out of 15 possible diagrams. There are three lines that separate the phase of the fluid. These three lines are fusion, vaporization and sublimation.
Step2
The intersecting point of these lines is triple point of fluid. Out of 15 possible phase diagram, only pressure temperature diagram has triple point as a point. In other diagrams phase change region is present and triple point is not a point. Critical point is the point in all possible property diagrams.
Pressure temperature diagram is shown below:
Explanation:
are bhai brainly aap english me questions kar ne ko hai
ye kon si bhasha hai ??????