Computers and Technology

Write a calculator program that keeps track of a subtotal like real calculators do. Start by asking the user for an initial number. Inside a loop, asks the user for a mathematical operation and a second number. Do the operation with the first number on the second number. Keep track of the result as a 'subtotal' to be used as the first number when going back to the top of the loop. When the user quits, print out the final result and quit the program. See output for an example for the behavior of the program. The operations should be at least

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 22:30, reaganphelps3
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
image
Computers and Technology, 24.06.2019 09:40, anyar
Healthy study habits are best described as
Answers: 1
image
Computers and Technology, 24.06.2019 18:20, bm42400
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
image
Computers and Technology, 24.06.2019 23:30, soapai
True or false when a host gets an ip address from a dhcp server it is said to be configured manually
Answers: 1
Do you know the correct answer?
Write a calculator program that keeps track of a subtotal like real calculators do. Start by asking...

Questions in other subjects:

Konu
Physics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
English, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01
Konu
Mathematics, 15.09.2020 03:01