answer.
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
OLEGan
20 days ago
5

4.9 Code Practice: Question 4

Computers and Technology
2 answers:
Amiraneli [1K]20 days ago
6 0

total = 0

i = 0

while i < 10:

   temp = float(input("Enter Temperature: "))

   total += temp

   i += 1

print("Sum = " + str(total))

Hope this is useful!

maria [1K]20 days ago
3 0

Response:

sum = 0

r = 0

while r < 10:

   p = float(input("Enter Temperature: "))

   sum += p

   r += 1

print("Sum = " + str(sum))

Explanation:

You can modify the variables if you wish.

You might be interested in
Wendy is an attacker who recently gained access to a vulnerable web server running Microsoft Windows. What command can she use t
ivann1987 [1066]

Answer:

If she has successfully connected to the server and obtained access, Wendy should use the shortcut win+r (to run) or alternatively, she can utilize the "Type here to search" option.

Then she would enter "cmd" to access the command prompt.

Finally, she needs to employ the scp protocol for file transfers. Wendy may need to specify a destination for the files to be sent to.

7 0
2 months ago
5.16 *zyLab: Hello IDE The goal of this problem is learn how to use Eclipse or IntelliJ. Submit the source code files (.java) be
8_murik_8 [964]

Answer:

import java.util.Scanner;

public class HelloIDE

{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

   

 System.out.print("Please enter your name: ");

 String name = input.nextLine();

 

 name = name.trim();

 

 if(name.equals(""))

     name = "stranger";

     

 System.out.println("Greetings, " + name + "!");

}

}

Explanation:

The Scanner class is imported to allow user input.

A Scanner class object named input is created.

Prompt the user for their name and store it in the name variable.

The trim() method is used to eliminate any leading or trailing whitespace from the name.

A check is performed on the name: if it’s an empty string, it's set to "stranger". This ensures that if the user does not provide a name or only inputs spaces, it defaults to stranger.

The output format is then printed accordingly.

8 0
2 months ago
You have been studying processors. Your instructor has asked you to help prepare a lecture for introductory students learning ab
Amiraneli [1052]
The correct choice is (D) Comparison. This operation occurs when discussing payroll software that calculates employee overtime based on hours worked. The comparison operation typically assesses two values, returning either True or False based on their equality.
5 0
1 month ago
5.6 Look carefully at how messages and mailboxes are represented in the email system that you use. Model the object classes that
amid [951]

Respuesta:

Consulta la explicación para más detalles sobre la respuesta.

Explicación:

Una clase es un diagrama estructurado que describe la estructura del sistema.

Está compuesta por el nombre de la clase, atributos, métodos y responsabilidades.

Un buzón y un mensaje de correo electrónico tienen ciertos atributos como redacción, respuesta, borrador, bandeja de entrada, etc.

Consulta el adjunto para las clases de objeto del modelo que podrían utilizarse en la implementación del sistema para representar un buzón y un mensaje de correo electrónico.

5 0
2 months ago
If someone were unable to pay cash right now, which financing option would be best for the laptop and for the refrigerator?
oksian1 [950]

Response

Payment Plan

The method of installment payments allows the buyer to agree with the seller where the buyer receives an item and pays over specified intervals. Therefore, the most effective payment option for someone who cannot pay upfront for either a laptop or a refrigerator is through installments. When the payment term ends and the customer successfully pays the total amount, the item will belong to them.

4 0
1 month ago
Read 2 more answers
Other questions:
  • Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which a
    6·1 answer
  • print_pattern() prints 5 characters. Call print_pattern() twice to print 10 characters. Example output: ***** ***** in python
    7·1 answer
  • Consider a load-balancing algorithm that ensures that each queue has approximately the same number of threads, independent of pr
    14·1 answer
  • How to write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator).
    13·1 answer
  • 6. A small design agency you are consulting for will be creating client websites and wants to purchase a web server so they can
    6·1 answer
  • When adopting and implementing a Software as a Service (SaaS) platform such as Salesforce for your business, which responsibilit
    7·1 answer
  • Disk scheduling algorithms in operating systems consider only seek distances, because Select one: a. modern disks do not disclos
    13·1 answer
  • Suppose that a 10-Mbps wireless station is transmitting 50-byte frames one immediately after the other.
    6·2 answers
  • Within a word processing program, predesigned files that have layout and some page elements already completed are called text bo
    15·1 answer
  • Which correctly lists the two elements that make up the empty space in the universe? ice and debris debris and dark matter dark
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!