subject

Write a calculator program that keep reading operations and double numbers from user, and print the result based on the chosen operation using while loop. the loop must stop if the user enters q letter.
note: no need to write two classes.
typical run of the program:
enter an operation(+*,/), q to quit: +
enter your first number: 6
enter your second number: 5
result= 11.0
enter an operation(+*,/), q to quit: *
enter your first number: 5
enter your second number: 5
result= 25.0
enter an operation(+*,/), q to quit: q
you calculator has been ended!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
You know the right answer?
Write a calculator program that keep reading operations and double numbers from user, and print the...
Questions
question
Social Studies, 06.05.2020 00:21
question
Mathematics, 06.05.2020 00:21
question
Mathematics, 06.05.2020 00:21
question
Computers and Technology, 06.05.2020 00:21
question
History, 06.05.2020 00:21
Questions on the website: 13722363