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
levacccp [35]
3 years ago
15

Write multiple if statements. if car_year is 1969 or earlier, print "few safety features.". if 1970 or later, print "probably ha

s seat belts.". if 1990 or later, print "probably has anti-lock brakes.". if 2000 or later, print "probably has air bags." end each phrase with a period and a newline. ex: car_year = 1995 prints:

Computers and Technology
2 answers:
tamaranim1 [39]3 years ago
5 0
Here it is in Python. If you wanted a different language, you should specify that in your question.

if car_year < 1970:
    print('few safety features.')
else:
    print('probably has seat belts.')
    if car_year > 1989:
        print('probably has anti-lock brakes.')
    if car_year > 1999:
        print('probably has air bags.')

The else statement may seen unnecessary, but it prevents the program from having to perform those conditional checks, when they are 100% going to be false if the car year is 1969 or earlier. You are welcome to remove this if you like.
Doss [256]3 years ago
4 0

Answer: if (carYear < 1967) {

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

     }

     if ( carYear > 1970 ){

        System.out.println("Probably has seat belts.");

     }

     if (carYear > 1991) {

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

     }

     if ( carYear > 2000) {

        System.out.println("Probably has airbags.");

     }

Explanation:

Just changed the statement in the print line but the rest of the code is the same

You might be interested in
Information is best described as
Viefleur [7K]

Answer: Option B

Explanation: Information can be defined as the presentation of scattered data in a sequential manner to make it more meaningful and understanding.

Information is the exchange of intelligence, thus, it has to be organized and processed from its raw form.

From the above explanation we can conclude that the right option is B.

7 0
3 years ago
PLS HELP QUICKLY!!!<br> Thank you
musickatia [10]

Answer:

I think it is the first one

Explanation:

3 0
4 years ago
Read 2 more answers
Xercise 1<br>1.<br>What is system? Explain the components of system in brief.​
noname [10]

Answer:

A system is a collection of elements or components that are organized for a common purpose. ... A computer system consists of hardware components that have been carefully chosen so that they work well together and software components or programs that run in the computer.

Explanation:

4 0
3 years ago
Michael Holliday is a business systems analyst who is working on a feasibility study for a new​ e-911 system for the city of Mem
postnew [5]

Answer:

E

Explanation:

The requirement analysis phase is a very key vital phase of the system life cycle in which a system designer sees the future result of his input in the system he intends to design, the requirement analysis clearly state the result of any system in progress design and proccess stage

7 0
3 years ago
Why is the radial gradient type a good choice for the grapes?
Grace [21]
<span>when you use the radial gradient fill it gives it a look like a shine on them. </span>
3 0
4 years ago
Read 2 more answers
Other questions:
  • A(n) _________ is an attempt to learn or make use of information from the system that does not affect system resources.
    13·1 answer
  • OSHA's mission is to: A. Ensure that all workers receive adequate workers' compensation payments B. Esnure that all workers rece
    8·2 answers
  • which of the following is a malicious program that can replicate and spread from computer to computer? A. Email B. Virus C. Spam
    15·1 answer
  • . Which of the following is NOT a valid declaration for a character string?
    6·1 answer
  • Which of the following can spreadsheet programs help a person with? (choose all that apply.)
    9·1 answer
  • _____ interviews rely on scenarios and reflections to evaluate an applicant’s skill set.
    9·2 answers
  • How to create a network of relevant prospects?
    5·1 answer
  • Users can customize their Windows device by going to the Control Panel under __________.
    15·2 answers
  • Describe your ideas for a keyboarding game that would help someone improve their skills.
    6·1 answer
  • Jade has to create a workbook for storing information of students participating in the annual state-level sports competition. Th
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!