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
sveticcg
3 months ago
13

Read two numbers from user input. Then, print the sum of those numbers. Hint -- Copy/paste the following code, then just type co

de where the questions marks are to finish the code. num1 = int(input()) num2 = ? print(num1 + ?) Note: Our system automatically runs your program several times, trying different input values each time to ensure your program works for any values. Notes on how to solve this. See How to Use zyBooks for info on how our automated program grader works
Computers and Technology
2 answers:
maria [1K]3 months ago
6 0

Answer:

num1 = int(input("Input the first number "))

num2 = int(input("Input the second number "))

print(num1 + num2)

Explanation:

This code is implemented in Python programming language.

It utilizes the input function to ask the user for the first and second number.

The values are stored in the variables num1 and num2 in that order.

The print function then calculates and displays the sum of num1 and num2.

Amiraneli [1K]3 months ago
6 0

Answer:

The code solution is crafted in Python 3:

  1. num1 = int(input("Input first number: "))
  2. num2 = int(input("Input second number: "))
  3. print(num1 + num2)

Explanation:

Initially, the input function is utilized to collect input for the first and second numbers (Lines 1 - 2). The prompt text can be added as the argument for the input function. Additionally, the input is transformed into an integer with the int() function since all inputs are strings by default.

Finally, the print function shows the total of num1 plus num2 (Line 3).

You might be interested in
To keep from overwriting existing fields with your Lookup you can use the ____________ clause.
ivann1987 [1066]
<span>I propose the term <span>outputnew
</span>The key distinction between output new and output is that outputnew will not overwrite the existing description field.
Should you omit this clause, <span>Splunk will add all field names and values to your events via the lookup.</span></span>
3 0
2 months ago
Read 2 more answers
During normal Windows operations, you receive a BSOD, and your computer shuts down. You restart the computer and receive the err
Amiraneli [1052]
The correct answer to this query is "Hard drive." Explanation: Given the context of the inquiry, it's suggested that the most likely cause of this issue is the improper connection of the video cable. An incorrectly connected video cable can lead to display disruptions, such as the screen flashing black. While overheating of the GPU could also be a potential cause, it typically results in visual artifacts rather than shifting displays. Therefore, "Hard drive" is indeed the right answer.
4 0
2 months ago
Assume that you are testing the Orders database introduced in Watt (2014) - Appendix C. Discuss the problems and possible conseq
ivann1987 [1066]

Answer:

129 \frac{2}{?} 23.4. \div 164 \times 5y1 +. \\.00487ggh

6 0
2 months ago
Compute the approximate acceleration of gravity for an object above the earth's surface, assigning accel gravity with the result
maria [1035]

Response:

Written in Python

G = 6.673 *pow(10,-11)

M = 5.98 *pow(10,24)

d = float(input("Enter distance: "))

g = (G * M)/(pow(d,2))

print("Calculated gravity acceleration: "+str(g))

Explanation:

The following line sets the gravitational constant

G = 6.673 *pow(10,-11)

This line establishes the mass of the Earth

M = 5.98 *pow(10,24)

This prompts the user to input the object's distance

d = float(input("Enter distance: "))

This calculates the gravity exerted on the object

g = (G * M)/(pow(d,2))

This line outputs the gravity acceleration without rounding

print("Calculated gravity acceleration: "+str(g))

8 0
3 months ago
Other questions:
  • Assume that the classes listed in the Java Quick Reference have been imported where appropriate.
    5·1 answer
  •  How does critically analyzing technology add value to interactions with people in personal and professional contexts?
    9·2 answers
  • A have a string, called "joshs_diary", that is huge (there was a lot of drama in middle school). But I don't want every one to k
    5·1 answer
  • Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with a
    5·1 answer
  • Knowledge flows from the information that has been generated. Which of the following does not necessarily flow from information
    15·1 answer
  • PLEASE HELP!!~~
    7·1 answer
  • If a cell reference is c6, this cell is in the sixth column and the third row. true or false
    11·2 answers
  • A 2-dimensional 3x3 array of ints, has been created and assigned to tictactoe. Write an expression whose value is true if the el
    10·1 answer
  • Explain what might happen if two stations are accidentally assigned the same hardware address?
    15·1 answer
  • Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!