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
bearhunter [10]
2 years ago
8

Write a calculator program that will allow only addition, subtraction, multiplication & division. Have the

Computers and Technology
1 answer:
ozzi2 years ago
8 0

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

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

operation = input("Which operation are you performing? (a/s/m/d) ")

if operation == "a":

   print("{} + {} = {}".format(num1, num2, num1+num2))

elif operation == "s":

   print("{} - {} = {}".format(num1, num2, num1-num2))

elif operation == "m":

   print("{} * {} = {}".format(num1, num2, num1*num2))

elif operation == "d":

   print("{} / {} = {}".format(num1, num2, num1/num2))

I hope this helps!

You might be interested in
What does Al stand for?
prohojiy [21]
AI stands for Artificial Intelligence
5 0
3 years ago
Bit rate is a measure of how many bits of data are transmitted per second. Compared to videos with a higher bit rate, the same v
AnnyKZ [126]

Answer:

blocky, pixilated motion.

Explanation:

Less bits are used to encode every video frame, so depending on the compression algorithm this will result in small areas, blocks, getting the same color, i.e., a blocky, pixelated effect.

6 0
3 years ago
Which one of these tasks is part of the pre-production phase of game development?
Alexxx [7]
[B], developing the art style guide and production plan.

It wouldn't be [A], because patches are released to consumers of the game, to fix bugs and add new content, which won't be done until post-production.

It wouldn't be [C] either, as it is also post-production, because you are sending the game to produced, packaged and shipped, meaning the game has already been pretty much fully developed.
3 0
3 years ago
Read 2 more answers
Smart art and shapes are useful tools because they allow you to
maks197457 [2]
<span>Answer: "easily create and manipulate shapes within a document".</span>
6 0
3 years ago
Using the notation exemplified in following question , list a set of tables and attributes (and identify keys) to represent the
Paha777 [63]

Answer:

Entities are - Students, CourseList, Advisor and CourseSelection.

Explanation:

The database is structure is designed using Crow Foot Database Notation as attached

6 0
3 years ago
Other questions:
  • In a student​ database, a row that describes the top​ student, including his or her​ lastname, firstname, and​ studentnumber, is
    9·1 answer
  • What type of program would use to create a personal budget?
    14·1 answer
  • zeroIt is a function that takes one argument and returns no value. The function stores the value 0 back into the parameter. x is
    8·1 answer
  • Who are the four main antagonists in fnaf 1
    13·2 answers
  • Manuel is working on a project in Visual Studio. He wants to keep this program showing on the entire desktop, but he also needs
    13·1 answer
  • Pleasee help. How do you fix this problem in discord?
    10·1 answer
  • How do you remove management from your chrome book [administrator]
    12·1 answer
  • Write a python program that should determine from the range you choose to enter :
    9·1 answer
  • Write the two features of a mouse.​
    9·1 answer
  • In this paper https://arxiv.org/pdf/2008.10150.pdf, I'm having a hard time understanding how the assignment in the picture is de
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!