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
laiz [17]
3 years ago
9

Write a java program to input the corresponding data to print the result of the following expression

Computers and Technology
1 answer:
Anna71 [15]3 years ago
6 0

Answer:

The program in Java is as follows:

import java.util.Scanner;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 float a, b, c, x, y;

 a = input.nextFloat();

 b = input.nextFloat();

 c = input.nextFloat();

 x = input.nextFloat();

 y = a * x * x + b * x + c;

 System.out.print(y); }}

Explanation:

This declares all variables

 float a, b, c, x, y;

The next 4 lines get input for a, b, c and x

<em>  a = input.nextFloat();</em>

<em>  b = input.nextFloat();</em>

<em>  c = input.nextFloat();</em>

<em>  x = input.nextFloat();</em>

This calculates the value of y using y = ax^2 + bx + c

y = a * x * x + b * x + c;

This prints the calculated value of y

 System.out.print(y);

You might be interested in
Which measure should you take for the periodic maintenance of your computer?
WITCHER [35]
I believe the answer is annual maintenance
Hope this helps :p
6 0
4 years ago
Read 2 more answers
Why do people on Brainly verify answers that are wrong. I got 90% and 80% percent on my tests because of it
Bezzdna [24]
I feel that, you can’t trust it.
3 0
3 years ago
Read 2 more answers
Writing queries in sql to compile data from a database is related to the physical level of databases true or false?.
k0ka [10]

Writing queries in sql to compile data from a database is related to the physical level of databases is a false statement.

<h3>What does writing queries mean?</h3>

A “query” is known to be a term that is said to serve as a question or a form of an inquiry  or letter of such.

Note that this is one that is said to be written or in a form that can be said to be a printed communication that is often used to addressed  a person or organization.

Therefore, Writing queries in sql to compile data from a database is related to the physical level of databases is a false statement.

Learn more about Writing queries from

brainly.com/question/19260708

#SPJ1

8 0
2 years ago
. Each ____ on a menu performs a specific action.
Fofino [41]
The answer would be d, none kf the above.
4 0
3 years ago
Which are characteristics of interpreters? Select
SVEN [57.7K]

Answer:

translation is used for interpretation

8 0
3 years ago
Read 2 more answers
Other questions:
  • April's manager has asked her to provide the financial service manager with the accounts that have not received payment. What sh
    13·2 answers
  • We all interact with various information systems every day: at the grocery store, at work, at school, even in our cars (at least
    11·1 answer
  • Susan is a bookstore owner who maintains sales records in a spreadsheet. She wants to highlight the records that show sales in e
    14·1 answer
  • The ‘capacity for emergency management and response personnel to interact and work well together’ describes which of the key com
    10·2 answers
  • Print the two strings in alphabetical order. Assume the strings are lowercase. End with newline. Sample output: capes rabbits im
    10·1 answer
  • Is the willingness to put a customer’s needs above ones own needs and to go beyond a job description to achieve customer satisfa
    10·1 answer
  • Brianna Watt, a consultant doing business as Watt Gives, wants a program to create an invoice for consulting services. Normally,
    9·1 answer
  • Identify the correct answer in each item. Write your answer on the blank provided before
    13·1 answer
  • Computers are used because they :
    9·2 answers
  • Please please help I don’t understand this
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!