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
Georgia [21]
3 years ago
5

Write an expression that executes the loop while the user enters a number greater than or equal to 0. Note: These activities may

test code with different test values. This activity will perform three tests, with user input of 9, 5, 2, -1, then with user input of 0, -17, then with user input of 0 1 0 -1. See "How to Use zyBooks". Also note: If the submitted code has an infinite loop, the system will stop running the code after a few seconds, and report "Test aborted."
Computers and Technology
1 answer:
RoseWind [281]3 years ago
8 0

Answer:

while ( num >= 0) { ... }

Explanation:

Required

Express to execute a while loop with the given condition.

The condition in the question is that: the user input must be greater than or equal to 0.

The statement for this is:

while ( num >= 0) { ... }

Where num is the input variable

You might be interested in
A tracking signal A. is a measurement of how well a forecast is predicting actual values. B. is computed as the mean absolute de
Andrej [43]

The answer to this is:

A. is a measurement of how well a forecast is predicting actual values.

I have seen this type of tracking signal before, they use this for news forecast to track severe weather such as tornadoes, severe weather, hot weather, winter storms and even hurricanes. This helps the people know what the weather will be like in the next few days or so, so they can get prepared for any storms or hot weather.

it's a interesting technology they have.

Hope this helped :)

Have a great day

4 0
4 years ago
Write a program that will make a copy of a text file, line by line. Read the name of the existing file and name of the new file(
Luba_88 [7]

Answer:

To find the text file, use a full path name when entering the file name, such as

C:\textfiles\StateCapitals.txt

You can save typing in the full path name by putting the file in the project directory, such as in

C:\Users\me\Documents\NetBeansProjects\Project4

3 0
3 years ago
In a large kitchen what is meant by the partie system? Who devised this system?
denis-greek [22]

Answer:

While at the Savoy in London, Escoffier formally introduced his army-influenced organisational method to the kitchens there. It became known as the Chef de partie system, and the idea was to avoid duplication of tasks, and to make communication between the various staff members easier.

8 0
3 years ago
Tuklasin<br>awain 2: Grapiko ng Pananagutan<br>Isulat sa graphic organizer pa​
mrs_skeptik [129]
What are you saying????
7 0
3 years ago
Write a Python function LetterGame() that repeatedly asks the user to input a letter. The function is to count the number of vow
kotegsom [21]

Answer:

def LetterGame():

   vowels = ["a", "e", "i", "o", "u", "A", "E", "I", "O", "U"]

   count1 = count2 = 0

   while True:

       choice = input("Enter a letter / digit to stop: ")

       if choice.isdigit():

           break

       elif choice.isalpha():

           count1 += 1

           if choice in vowels:

               count2 += 1

   print("You entered " + str(count1) + " letters, " + str(count2) + " of which weere vowels.")

   print("The percentage of vowels was " + str(count2 / count1 * 100) + "%")

LetterGame()

Explanation:

Create a function called LetterGame

Inside the function:

Create a list of vowels

Initialize count1, counts the total letters, and count2, counts the vowels

Initialize a while loop that iterates until the specified condition is met in the loop

Get the input from the user. If it is a digit, stop the loop. If it is an alphabet, increase the count1 by 1, and also check if it is a vowel. If it is a vowel, increment the count2 by 1

When the loop is done, print the required information

Finally, call the function

4 0
3 years ago
Other questions:
  • The air in the atmosphere circulates mainly because _____.
    7·2 answers
  • Stella is a bank executive. She is preparing a spreadsheet on the loan repayment schedules of customers. Which function can she
    9·1 answer
  • The _______ system coordinates computer resources, provides the user interface, and runs applications.
    10·1 answer
  • WHICH COMPUTER COMPONENT CONTAINS ALL THE CIRCUITRY NECESSARY FOR THE OTHER COMPONENTS OR DEVICES TO COMMUNICATE WITH ONE ANOTHE
    12·1 answer
  • Here's another question!<br><br> What is some iterative programming structure uses?
    13·1 answer
  • Question 1<br> REVPAR and REVPOR are basically the same thing.<br> True<br> False
    11·1 answer
  • Why am I constantly getting bombarded with brainly plus ads and how to fix this without paying for it?
    13·2 answers
  • Any task done by software can also be done using computer hardware, and any operation performed directly by hardware can be done
    8·1 answer
  • A user may enter some text and the number of times (up to a maximum of 10) to repeat it. Display the text repeated that many tim
    12·1 answer
  • iv. Assuming the above operating system that cannot perform memory deallocation. Name at least three effects on the overall syst
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!