Write a program that asks the user to input two numbers and to choose an arithmetic...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that asks the user to input two numbers and to choose an arithmetic operation conduct on the two inputs. The arithmetic operations are: 1- Subtraction (sub) 2- Addition (add) 3- Multiplication (mul) The program should keep running and asking the user for a new arithmetic operation every time an operation has been conducted. The program should stop and exit only if the user types "None" when the program asks the user for a new operation. Use a (While loop) to implement the program. I Write a program that asks the user to input two numbers and to choose an arithmetic operation conduct on the two inputs. The arithmetic operations are: 1- Subtraction (sub) 2- Addition (add) 3- Multiplication (mul) The program should keep running and asking the user for a new arithmetic operation every time an operation has been conducted. The program should stop and exit only if the user types "None" when the program asks the user for a new operation. Use a (While loop) to implement the program. I
Expert Answer:
Answer rating: 100% (QA)
while True num1 floatinputEnter the first number num2 floatinputEnter the second number op inputEnte... View the full answer
Related Book For
Fraud examination
ISBN: 978-0538470841
4th edition
Authors: Steve Albrecht, Chad Albrecht, Conan Albrecht, Mark zimbelma
Posted Date:
Students also viewed these accounting questions
-
A friend of yours has been thinking about quitting her regular day job and going into business for herself. She currently makes $60,000 per year as an employee of the Ajax Company, and she...
-
It is not uncommon for childhood centers to charge a late fee e.g., a flat fee of $20 plus $1 per minute thereafter (e.g. $50 if 30 minutes late). What are the pros and cons (costs and benefits) of...
-
Julia has been thinking about how she uses credit cards. She has two bank cards and three store cards. The APRs on the cards range from 10.5 to 24.9percent, with the store cards being among the...
-
Format only cells with values greater than maxim 4 tab and select Red color from the pallet (bottom ro Format only cells with values less than minimum and select Yellow color from the pallet (bottom...
-
Refer to the exponential model given in Problem 16.42. a. What is the fitted value of the series in the fourth quarter of 2008? b. What is the fitted value of the series in the first quarter of 2008?...
-
A 1.00-mol sample of a monatomic ideal gas is taken through the cycle shown in Figure P22.65. At point A, the pressure, volume, and temperature are Pi , Vi , and Ti , respectively. In terms of R and...
-
A mixture of \(\mathrm{H}_{2}\) and \(\mathrm{D}_{2}\) is contained in two bulbs connected by a porous plug. The bulbs are maintained at different temperatures of 200 and \(600 \mathrm{~K}\). The...
-
Name and describe the four types of markets recognized by economists and discuss the pricing challenges posed by each.
-
Superior Company provided the following data for the year ended December 31 (all raw materials are used in production as direct materials): Selling expenses Purchases of raw materials Direct labor...
-
[5] A marksman is firing a pistol at a 5 cm diameter, circular bullseye some distance away. The center of the target is considered (0, 0). This marksman pulls a little to the right (positive x) and a...
-
Why did the layered OS not succeed in the real world? a . Because its performance was not very high b . Because it was difficult to identify the layers c . Because it was unstable d . Because it was...
-
Solve the equation: p = p +90 Answer: p
-
An effective total rewards approach balances the company's interests and costs with the needs and expecations of employees. Costs related to compensation represent one of the _____________ portions...
-
What is the Net Present Value of the following cash flow streams at an interest rate of 8.25%: at year 0: $0; year 1: $75; year 2: $225; year 3: $0; and year 4: $300. $
-
Solve the equation. Check the solution. -8x=-16
-
Financial intermediaries as part of the financial system are very important for a vibrant economy to move funds from surplus units to the deficit units to finance a productive investment. The...
-
Please read below : The topic of this research paper is Work-Life Balance. This article, from Forbes, written by Alan Kohll highlights the importance of work-life balance and how different...
-
Discrete sample spaces: suppose there are N cable cars in San Francisco, numbered sequentially from 1 to N. You see a cable car at random; it is numbered 203. You wish to estimate N. (See Goodman,...
-
What were Jim Bakkers pressures, opportunities, and rationalizations to commit fraud?
-
(Multiple Choice) 1. The most common way to overstate revenues is to: a. Record revenues prematurely. b. Abuse the cutoff line for recording revenues. c. Create fictitious revenues. d. None of the...
-
What is conversion?
-
Why should projects be linked to the organisation's Strategic Plan?
-
What is the BCG matrix and how is it used?
-
Explain the role projects play in the delivery of an organisation's strategy
Study smarter with the SolutionInn App