Computers and Technology

Write a program that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output the numbers, the operator, and the result. For division, if the denominator is zero, output an appropriate message. Limit the supported operations to -/ *and write an error message if the operator is not one of the supported operations. Here is some example output:3 4

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, willwhitlock803
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
image
Computers and Technology, 23.06.2019 06:30, darlene93
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
image
Computers and Technology, 25.06.2019 09:30, changav36832
When recovering from a skid, make sure to as necessary to guide your vehicle toward the center of your lane. a. threshold steer b. counter steer c. oversteer d. understeer
Answers: 1
image
Computers and Technology, 25.06.2019 15:30, alyssacruz999
Which of the following sets of acronyms is concerned with encoding data for secure transmission? wan, lan vpn, nic ipsec, ssh nat, ssl
Answers: 1
Do you know the correct answer?
Write a program that mimics a calculator. The program should take as input two integers and the oper...

Questions in other subjects: