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
castortr0y [4]
4 years ago
4

Write a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. the user shoul

d be asked if he or she wishes to perform the operation again. if so the loop should repeat; otherwise it should terminate.
Computers and Technology
1 answer:
rosijanka [135]4 years ago
8 0
Main 
//declare variables 
Declare String do Again 
//Add the user numbers as many times as needed Do
        Call myFunction (num1, num2, sumNumbers)
        Display “Would you like to add more numbers?”
        Display “(Enter y for yes):”
        Input do Again
     While do Again == ”y”
End Module 
//This module will ask the user for two numbers
then add them together and display the results 
Module my Function()
    //Declare Variables
    Declare Integer num1 = 0
    Declare Integer num2 = 0
    Declare Integer sumOfBoth = 0
  //Ask for user input
     Display “Please enter your 1  st  number: “
  Input num1
   Display “Please enter your 2 nd number: “
   Input num2
   Set sum Of Both = num1 + num2
   Display num1 “ + “ num2 “ = “sum Of Both
 End Module
You might be interested in
2. When was the Antikythera mechanism discovered? What year? <br>​
Vlad [161]

Answer: 1901

Explanation:

7 0
3 years ago
Read 2 more answers
Is this good enought to record and edit in 4k UHD? (Ultra High Definition)
vekshin1

Answer:

It should be, yes

Explanation:

5 0
3 years ago
Read 2 more answers
Describe the objectives of e-commerce ?​
AnnZ [28]

Answer: eCommerce is to reach the more and right customers at the right time so that more orders can be placed and in turns, high revenue can be generated.

Explanation:

5 0
3 years ago
Which of the following is computer memory that works while the computer is turned on?
Crazy boy [7]

Answer:

Ron is the answer

Explanation:

In that sense it is similar to secondary memory, which is used for long term storage. When a computer is turned on, the CPU can begin reading information stored in ROM without the need for drivers or other complex software to help it communicate.

5 0
3 years ago
In this exercise, you will be given a phrase that includes the word “meat”. Replace that word with the word “fruit” and return t
Aleks [24]

Answer:

Answer is in the provided screenshot!

Explanation:

This answer is actually a simplified version of another question I've answered for you here: brainly.com/question/15538849

If you need any more explanation on how this algorithm works, please ask me!

8 0
3 years ago
Other questions:
  • What does it mean by null in programming?
    9·1 answer
  • The ________ occurs when the user presses the enter key without typing a value for an input operation.
    5·1 answer
  • Given the following HTML form snippet of markup, which of the following user inputs would meet the regular expression rule writt
    7·1 answer
  • In which network zone should a web server be placed?
    14·1 answer
  • Look at the trend in the US labor force participation rate. If increasing the number of women and men in the labor force can be
    13·1 answer
  • Private sharing model on Opportunities. Leadership has asked the Administrator to create a new custom object that will track cus
    7·1 answer
  • QN, 3. Write the working principle of computer.<br>​
    8·1 answer
  • Backing up your data on a regular basis is a part of the
    14·2 answers
  • PLEASE SOMEONE PLEASE HELP ME OUT!!!!
    10·2 answers
  • What is the output of the following code?<br> print (12 // 6)
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!