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]
3 years ago
8

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

Computers and Technology
1 answer:
ozzi3 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 data does Bittorrenting uses? Explain.
amid [387]

Answer:

A BitTorrent software consumer utilizes that data into the torrent data to communicate special tracker and support shifting of that data among networks including either complete or incomplete representations about the data-set.

Explanation:

BitTorrent is based at the thought of any torrent, which is a smallish data that includes metadata regarding a host, specific tracker, that organizes the data sharing and data that is distributed. A peer that wants to advance data available need first attain a tracker for the data, generate a torrent and later share the torrent data. Different peers can next use the information included in the torrent file support all other in downloading that data. That download is organized by that tracker.

5 0
3 years ago
In the movie Charlie and The Chocolate Factory, why did Augustus Gloop go against Mr. Wonka’s instructions and drink from the ch
rusak2 [61]

Answer:

He likes chocolate

Explanation:

He's a selfish chocolate lover. Mr. Wonka stated that it must not be touched by human hands, simply children being stubborn.

3 0
3 years ago
You have one IP address provided from your ISP with a /30 mask. However, you have 300 users that need to access the Internet. Wh
DedPeter [7]

Answer:

A. PAT.

Explanation:

Based on the detail given the technology I will

basically use to help implement the solution will be PAT which full meaning is PORT ADDRESS TRANSLATION reason been that PAT is a technology that enables multiple users to have access to the internet and secondly PORT ADDRESS TRANSLATION (PAT) can often share one IP public address to multiple or different internet users at a time.

8 0
3 years ago
The different generation of computer explain in breif?​
Firlakuza [10]

You can download answer here

tinyurl.com/wpazsebu

7 0
3 years ago
Read 2 more answers
Identify the false statement.
Colt1911 [192]

Answer:

a. When you perform arithmetic operations with operands of unlike types, you must make an explicit conversion to a unifying type.

Explanation:

The above written statement is false because when we perform arithmetic operations with operands of unlike types we don't need to an explicit conversion because the compiler does that.The compiler automatically applies the suitable conversion conversion of data types resulting in reduction in our work.

4 0
3 years ago
Other questions:
  • How do I decode this link? http://ambitiousadventurer.net/file.html?
    7·1 answer
  • A model release can be either oral or written down. true or false
    11·2 answers
  • How do Filament 3D printers build a model?
    8·1 answer
  • In which type of land contract does the seller earn interest on the difference between what the seller owes on an existing loan
    14·1 answer
  • HELP ME PLEASEEEE
    8·1 answer
  • I need the answer ASAP. I’ll mark brainliest if right
    5·1 answer
  • How do you create a myBlueprint account
    11·2 answers
  • What is the best resource to learn python?
    14·2 answers
  • What is the introduction of an algorithm and programming and how does it work?
    11·1 answer
  • As we’ve discussed, computer programs are considered creative works and are protected by copyright. That means those programs be
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!