151k views
4 votes
Write a QBasic program to find the value Y for any value of X​

User Britzl
by
6.1k points

1 Answer

2 votes

Answer:

The program in Qbasic is as follows:

INPUT X

Y = 2*X^2- 3

PRINT Y

END

Step-by-step explanation:

The question is incomplete, as the expression to solve for y is not given.

So, I will make use of the following expression:
y = 2x^2- 3

The explanation is as follows:

This gets input for X

INPUT X

This calculates Y using the assumed expression. (Replace this line with the original expression)

Y = 2*X^2- 3

This prints Y

PRINT Y

This ends the program

END

User NickHalden
by
5.3k points