Create a program that uses the preceding formula and displays the result, but this time, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.

2 answers

not enough info, but . . .

formula: result = (a + b)x - y (for example)

prompt["Please enter the value for x:"]

x = (input from user)

prompt["Please enter the value for y:"]

y = (input from user)

prompt["Please enter the value for a:"]

a = (input from user)

prompt["Please enter the value for b:"]

b = (input from user)

calculate[(a + b)x - y]

Display["Result is:", result]
That was the second part this what it say first which got the first part but this is the full saying
Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a – b)(x – y) using a single printf() function.
2.Create a program that uses the preceding formula and displays the result, but this time, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.