1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Naily [24]
3 years ago
9

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!
Computers and Technology
1 answer:
alex41 [277]3 years ago
6 0

Answer:

do you still need the answer? or am i to lateeee

Explanation:

You might be interested in
Which of these causes the most collisions?
Vikentia [17]

Answer:

The answer is "failing to keep a proper lookout".

Explanation:

The theory of collision, especially concerning gas were used to forecast the chemical reaction. It is based on the idea which atoms or molecules of interacting organisms should be mixed or collided. In this question the key cause of collision would be a proper viewpoint is not established, that's why other given choices were wrong.

4 0
3 years ago
Write a loop that continually asks the user what pets the user has until the user enters stop, in which case the loop ends. It s
Nataliya [291]

Answer:

int counter = 0;
String userInput = "";
while (userInput != "stop") {
print "What pet do you have? ";
userInput = readInputLine();
if (userInput != "stop" ){
counter = counter + 1;
print "\nYou have one ";
print userInput;
print ". Total # of Pets: ";
print counter;
}
}

Explanation:

not sure what programming language you use, therefore the answer is pseudocode but it should give you an idea how to implement a piece of code for this problem.
Also, from the way you described the exercise I'm not sure if you always are supposed to reply with "you have one" + the pet or if you should count how often the same pet was entered.

6 0
1 year ago
What is the answer only right answers<br>​
Molodets [167]

Answer:

hmm....

Explanation:

4 0
3 years ago
Read 2 more answers
Which ics function records time accounting and procures needed items?
vladimir1956 [14]
It is the finance / administration function that records time accounting and procures the needed items
7 0
3 years ago
In a block-style business letter, the paragraphs are double-spaced and indented. <br> True or False
Sav [38]
I am pretty sure it is true
5 0
3 years ago
Read 2 more answers
Other questions:
  • ?the single most effective security measure for digital devices is to password protect access to them.
    5·1 answer
  • When creating a software package, the software must be designed, the code must be written, and then the code must be tested. Thi
    6·1 answer
  • By applying styles formats are being applied ?
    14·2 answers
  • Every node (except of the last node) in a singly linked list contains ____
    5·1 answer
  • The box plot represents this data set. {16, 16, 16, 18, 18, 20, 24, 28, 30, 34} What value does the letter A represent on the bo
    8·2 answers
  • Answer all 1).The most common layout of keys on the keyboard is the _____ keyboard. ASDF QWERTY JKL QWOPY,
    5·2 answers
  • Some classes, like the ArrayList class, use angle brackets in their documentation and their declaration. For example, the Java d
    5·1 answer
  • Write a program that will print out statistics for eight coin tosses. The user will input either an "h" for heads or a "t" for t
    14·1 answer
  • Cual es la definición de grouded?​
    7·1 answer
  • The process of sending a result back to another part of the program is
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!