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
antiseptic1488 [7]
3 years ago
6

PLEASE HELP ITS CODING AND I INCLUDED A SCREENSHOT OF WHAT TO DO

Computers and Technology
2 answers:
elixir [45]3 years ago
7 0

num1 = float(input("Enter your first number: "))

num2 = float(input("Enter your second number: "))

operation = input("What operation would you like to do? Type: add, subtract, multiply, or divide. ")

def add(n, n1):

   return n + n1

def subtract(n, n1):

   return n - n1

def multiply(n, n1):

   return n*n1

def divide(n, n1):

   return n/n1

if operation.lower() in ["add", "+"]:

   result = add(num1, num2)

   print(num1,"+",num2,"=",result)

elif operation.lower() in ["subtract", "-"]:

   result = subtract(num1, num2)

   print(num1,"-",num2,"=",result)

elif operation.lower() in ["multiply", "*"]:

   result = multiply(num1, num2)

   print(num1, "*", num2, "=", result)

elif operation.lower() in ["divide", "/"]:

   result = divide(num1, num2)

   print(num1, "/", num2, "=", result)

else:

   print("Not a valid operation.")

I wrote my code in python 3.8. I hope this helps.

madam [21]3 years ago
6 0

Answer:

I need to have better photos in order to assist you...

Explanation:

I will attempt to get back with you if you can provide more clearer photos.

You might be interested in
Which of the following is the shortcut key combination for pasting copied text?
lys-0071 [83]
Ctrl + v pastes copied text, ctrl + p brings up a print menu, ctrl + x cuts and copies highlighted text, while ctrl + c copies the highlighted text.
3 0
2 years ago
Read 2 more answers
Given the following method static void nPrint(String message, int n) { while (n > 0) { System.out.print(message); n--; } } Wh
Zolol [24]

Answer: aaaa

Explanation:

Since the condition of n > 0 is satisfied, the number will decreement and the print out will look like the above answer.

3 0
3 years ago
The part of the web page a user can view in a browser is located within the tag.
IceJOKER [234]

<body>

A website is structured with 3 main tags <html>, <head>, and <body>. The <html> tag contains the whole site the <head> tag holds metadata, and the <body> tag holds what you can view.

<html>

<head>

will include things such as language title or links to a stylesheet.

</head>

<body>

what a user will see

</body>

</html>

5 0
2 years ago
Give me a code that draws a house with a roof in python. Please Answer!!!
Varvara68 [4.7K]

import turtle

window = turtle.Screen()

tr = turtle.Turtle()

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.back(100)

tr.left(120)

tr.forward(75)

tr.right(78)

tr.forward(60)

window.mainloop()

In my code, we use the turtle module for the graphics to draw the house with a roof.

8 0
2 years ago
4. When the keyword ____________________ is followed by a parenthesis, it indicates a call to the superclass constructor.
Andreyy89

Answer:

Super

Explanation:

In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java. The superclass is more or less like a general class in an inheritance hierarchy. Thus, a subclass can inherit the variables or methods of the superclass.

Basically, all instance variables that have been used or declared in any superclass would be present in its subclass object.

Hence, when the keyword super is followed by a parenthesis, it indicates a call to the superclass constructor and it should be the first statement declared in the subclass constructor.

5 0
2 years ago
Other questions:
  • What is the basic purpose of Google calendar?
    14·2 answers
  • When creating an input/ output table, where do you enter the formula?
    5·1 answer
  • When you respond to an email from your bank that asks you to verify your account information, you may become a victim of a _____
    14·1 answer
  • The Springfork Amateur Golf Club has a tournament every weekend. The club president
    7·1 answer
  • Write a function safeOpen() that takes one parameter, filename — a string giving the pathname of the file to be opened for readi
    15·1 answer
  • Write a program that will generate 100 integers between 0 and 1000. Store the even numbers in a sorted linked list called evens.
    12·1 answer
  • How many voltage values can be represented with a 10-bit binary code?
    15·1 answer
  • What is the importance of using Onedrive in Windows 10 and how knowledge of it will have an impact in today's workplace?
    7·2 answers
  • I just wanna know how many times a day y'all hit the tutor button at the bottom
    10·2 answers
  • An entity is said to be _____-dependent if it can exist in the database only when it is associated with another related entity o
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!