subject
Computers and Technology, 02.12.2020 21:30 JeroMii

Write a program that accepts two integers from the user and perform one of the four arithmetic operations based on user’s choice: addition, subtraction, multiplication or division. For example, Enter an integer: 5
Enter an integer: 2
Which operations would you like to perform? addition
The sum of two integers is 7.

Red parts are what user would type in.
However, if the user wants the program to divide by a 0, write a message that says, “You can’t divide by 0.”
Modify the program above so that the program continues to run until user enters “STOP”
Plz if anyone can help!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
Write a program that accepts two integers from the user and perform one of the four arithmetic opera...
Questions
Questions on the website: 13722363