Ask a New Question

Asked by Jo

Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.
4 years ago

Answers

Answered by oobleck
read x,y
print x+y, x-y

this allows for negative difference, if x<y
you might have to make some adjustments if you always want to get a positive difference.
4 years ago

Related Questions

9. Draw the flowchart or write the pseudocode for an application that allows a user to enter an auto... Draw a flowchart or write the pseudocode for an application that allows a user to enter price and co... Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to en... draw a flowchart and write a program and pseudocode that prompts the user for a starting balance and... Draw a flowchart and write a pseudocode of a program that allows the user to input their income amou... draw a flowchart and write the algorithm for printing the first 10 even numbers Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to en... Draw a fl owchart or write pseudocode to represent the logic of a program that allows the user to... draw a flowchart to sum all the even numbers between 1 and 20 inclusive and then display the sum how to draw the flowchart to add numbers from 1 to 100 and display the sum
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use