# Cmin

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.

1. 👍
2. 👎
3. 👁
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.

1. 👍
2. 👎
👤
oobleck

## Similar Questions

1. ### Pseudocode

Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.

2. ### computer

draw a flowchart and write the algorithm for printing the first 10 even numbers

3. ### ALGORITHM

Write an algorithm and flowchart that will accept score of 30 student in a class calculate and print the average mark in basic program.

4. ### computer science

Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value. The program multiplies the value by 10 and outputs the result…

1. ### Programming

Write a pseudocode to represent the logic of a program that allows a user to enter an hourly pay rate and hours worked. The program outputs the user's gross pay

2. ### programming

Design a flowchart or pseudocode for a program that accepts three numbers from a user and displays a message if the sum of any two numbers equals the third.

3. ### programming

write algorithm to calculate average from 25 exams score write pseudocode and flowchart

4. ### Computer

How to write algorithm and draw flowchart for finding the sum of first ten even numbers?

1. ### Programming

Write a program (pseudocode) that would calculate and display the results for the multiplication table for values ranging from 1 to 100. This what I have so far: Declare X, Y, Z As Integer Write “10 x 10 Multiplication Table”

2. ### Programming

Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year. Preferably a

3. ### Program

Write a pseudocode and algorithm that to else the user to input 10 numbers in program we display the largest number

4. ### Pseudocode

Write pseudocode for a program that calculates a customer’s total price after tax. The program will ask the user for the price of the item they are buying. Then the program will add a 5% tax to the item and output the final