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, 21.06.2019 22:30
Provide an example of a project that combines the three principles of lean six sigma with business project management (bpm) and services oriented architecture (soa). identify the elements of the project that comply with each of three principles.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 23.06.2019 19:40
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system.currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system.currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system.currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
You know the right answer?
Write a calculator program that keep reading operations and double numbers from user, and print the...
Questions
question
Mathematics, 16.10.2020 15:01
question
Mathematics, 16.10.2020 15:01
question
Mathematics, 16.10.2020 15:01
Questions on the website: 13722367