1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nalin [4]
3 years ago
10

Write an algorithm using pseudocode to input numbers . reject any numbers that are negative and count how many numbers are posit

ive . when the number zero is input the process ends and the count of positive numbers is output .​
Computers and Technology
1 answer:
True [87]3 years ago
4 0

Answer:

Explanation:

Let's use Python for this. We will start prompting the user for input number, until it get 0, count only if it's positive:

input_number = Input("Please input an integer")

positive_count = 0

while input_number != 0:

    if input_number > 0:

         positive_count += 1

    input_number = Input("Please input an integer")

print(positive_count)

   

You might be interested in
Name:
Elanso [62]
1 6gb of ram
inteel
500gb
500gb
4 0
3 years ago
Write a try block in which you prompt the user for an integer and display the name in the requested position in the names array.
N76 [4]

Explanation:

try{

     String[] names={"Tom","Suzie","Lina","Harry","Rosy"};

     Scanner input=new Scanner(System.in);

     System.out.println("Enter an integer: ");

     int position=input.nextInt();

     System.out.println(names[position]);

   }catch(ArrayIndexOutOfBoundsException e){

     System.out.println("Subscript out of range.");

   }

8 0
4 years ago
The arrow next to all programs indicates
myrzilka [38]

Answer:

the presence of a submenu

Explanation:

The options are:

  • this item cannot be selected
  • that this was the most recently used item
  • the importance of the item
  • the presence of a submenu

And the correct option is certainly the fourth option, and which is the presence of the submenu. The arrow next to all the programs certainly indicates that there is a submenu, and hence, the fourth option is the correct option here.

6 0
3 years ago
3.6 code practice (edhesive)
Pie

largest = int(input("Enter a number: "))

print("Largest: {}".format(largest))

i = 0

while i < 5:

   num = int(input("Enter a number: "))

   if num > largest:

       largest = num

   print("Largest: {}".format(largest))

   i += 1

I hope this helps!

4 0
3 years ago
A(n)…………is the interface used toconnect external devices to the computer.
Mama L [17]

Answer:

D. PORT

Explanation:

A Port is the interface used to connect external devices to  computer.

Ports are of various types based on the type of communication interface:

For example:

  • Serial port : information transfer takes place one bit at a time.
  • Parallel port : transfer of multiple bits at a time.
  • Ethernet : used for connecting network cable
  • USB : Universal Serial Bus

Computer peripherals like mouse,keyboard, modem, printer etc connect to the computer via the port which is in accordance with their specified communication interface.

6 0
4 years ago
Other questions:
  • A spreadsheet program of a computerized version of _______
    14·1 answer
  • A machine that is used to print newspaper is a
    12·2 answers
  • This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection.
    11·1 answer
  • How is DATA sent across a Network?
    7·1 answer
  • The find and
    10·1 answer
  • Linux applications are developed using ________ programming language.
    7·1 answer
  • What in the world is this for and how do you use it
    8·2 answers
  • What is the value of grade after this program is executed? Assume the score is 50. if score &gt;= 90: grade = "A" elif score &gt
    5·2 answers
  • Savings accounts _____.
    15·1 answer
  • Match each type of video camera to its features:
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!