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
vichka [17]
3 years ago
11

Write multiple if statements: If carYear is before 1967, print "Probably has few safety features." (without quotes). If after 19

71, print "Probably has head rests.". If after 1992, print "Probably has anti-lock brakes.". If after 2002, print "Probably has tire-pressure monitor.". End each phrase with period and newline. Ex: carYear = 1995 prints: Probably has head rests. Probably has anti-lock brakes.
Computers and Technology
1 answer:
Liono4ka [1.6K]3 years ago
5 0

Answer:

public class Main

{

public static void main(String[] args) {

    int carYear = 1995;

   

    if(carYear < 1967)

        System.out.println("Probably has few safety features.");

    if(carYear > 1971)

        System.out.println("Probably has head rests.");

    if(carYear > 1992)

        System.out.println("Probably has anti-lock brakes.");

    if(carYear > 2002)

        System.out.println("Probably has tire-pressure monitor.");

   

}

}

Explanation:

The code is in Java.

Initialize the carYear

Use if statements to handle year before 1967, after 1971, after 1992 and after 2002.

Print the required message for each if statement

You might be interested in
Modify theme in excel
11111nata11111 [884]

Answer:

Explanation:

Theme may be explained as a group of different formatting options such as appearance, color, font size and so on, which could be applied on a workbook simultaneously (without having to manually format each change to the document one after the other.) Once a certain theme is selected, all formating options related to the theme is applied to the document. Themes are located in the page layout tab in excel. However, one can modify or edit each of the individual properties or options of a certain theme. Such that by the time, the theme modification would have been effected.

4 0
3 years ago
Take a minute to reflect on your thoughts and learning so far and discuss:
jek_recluse [69]

Answer:

To be completely honest, this is a question that you and only you can answer really. You were the one that took the class and we cant reflect on your thoughts for you. I'm not trying to be one of those people, but its the truth.

Explanation:

5 0
3 years ago
You can rotate a selected graphic by dragging a ________ rotation handle
kotykmax [81]

I guess the correct answer to the blank is round.

You can rotate a selected graphic by dragging a round rotation handle.

7 0
4 years ago
Please help me with these questions please
sp2606 [1]

Answer: i think its 30.

4 0
3 years ago
// GetData() method accepts order number and quantity // that are used in the Main() method // Price is $3.99 each using System;
Amiraneli [1.4K]

Answer:

The method definition to this question as follows:

Method definition:

//method GetData

       public static void GetData(out int order, out int amount)//defining method GetData  

       {  

           String val1, val2;  //defining String variable

           Write("Enter order number ");  //message

           val1 = ReadLine();  //input value by user

           Write("Enter quantity ");  //message

           val2 = ReadLine();  //input value by user

           order = Convert.ToInt32(val1);  //convert value in integer and hold in order variable  

           amount = Convert.ToInt32(val2);  //convert value in integer and hold in amount variable

       }

Explanation:

In the above C# method definition code a method  GetData() is defined in which the GetData() method is a static method, in this method parameter two integer argument "order and amount" is passed, inside a method, two string variable "val1 and val2" is declared that is used to take input by the user and convert the value into integer and store this value in the function parameter variable.

8 0
3 years ago
Other questions:
  • You have been doing a lot of web surfing lately as part of your research for your course and along the way you have noticed a gr
    14·1 answer
  • Jacob is a website designer. Whenever his company takes on a new project, Jacob takes the initiative and comes up with ideas and
    12·1 answer
  • We say that a sequence of numbers is a palindrome if it is read the same backward or forward. For example, the sequence: 6, 15,
    11·1 answer
  • What type of software translates a programmer’s statements to binary form?
    10·1 answer
  • Physical activity such as sports or even a brisk walk can help reduce
    7·2 answers
  • What is the purpose of interrupts? How does an interrupt differ from a trap? Can traps be generated intentionally by a user prog
    11·1 answer
  • a sign is to be hung from the end of a thin pole, and the pole supported by a single cable. your design firm brainstorms the six
    13·1 answer
  • What is the combination of the mechanical or digital process of film production and the illusion or illusions created in the min
    12·1 answer
  • What is the purpose of a Macro in Word?: *
    13·1 answer
  • WILL GIVE BRAINLIEST
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!