Answer:
It allows the designer to focus on main logic without being distracted by programming languages syntax.
* Since it is language independent, it can be translated to any computer language code.
* It allows designer to express logic in plain natural language.
* It is easier to write actual code using pseudocode.
* Unlike algorithms, pseudocodes are concise so pseudocodes are more readable and easier to modify.
Explanation:
Answer:
count_p = 0
count_n = 0
total = 0
while True:
number = int(input("Enter an integer, the input ends if it is 0: "))
if number == 0:
break
else:
total += number
if number > 0:
count_p += 1
elif number < 0:
count_n += 1
print("The number of positives is: " + str(count_p))
print("The number of negatives is: " + str(count_n))
print("The total is: " + str(total))
print("The average is: " + str(total / (count_p + count_n)))
Explanation:
Initialize the variables, count_p represens the number of positives, count_n represents the number of negatives, and total represents the total of the numbers
Create a while loop iterates until the user enters 0. If the number is not 0, then add it to the total. If the number is greater than 0, increase count_p by 1. If the number is smaller than 0, increase count_n by 1.
When the loop is done, print the count_p, count_n, total, and average
Answer:
An operating system is something that controls the functions of an application software(app). The app does specific tasks for the end-user; the end user is someone who is, or is supposed to, use a product. The app uses API to request services from the operating system. If the user is interacting direct with software, it is an application software.
Explanation:
To make a horizontal line in mathematics you require some sort of constant function. Where no matter the input x the output y will always equal to a certain number n.
For eg. consider n = 2. Hence the graph of line has an equation of y = n making it always intercept in (x, n). As x increases the y is the same therefore the horizontal infinite line emerges.
So to plot or code this kind of program you need to have the same values of y therefore y is a constant function.
Hope this helps.
r3t40
We use ideas and thoughts that have already been protected by the law which is called Copyright. We reworking copyright material means we are taking somebody's ideas and calling it ours. Which is not right by the law.