subject

Given a variable modelYear and a String modelName, write a statement that assigns true to recalled if the values of modelYear and modelName match the recall details and assigns false otherwise. I have

if((modelYear>=1999 && modelYear<=2002 && modelName=="Extravagant") || (modelYear>=2004 && modelYear<=2007 && modelName=="Guzzler")){
recalled=true;}
else recalled = false;

This might be too much if they already state these variables as boolean values. Is this correct according to the directions?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
It is not a good idea in a cover letter to mention another person whom the employer knows.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 24.06.2019 17:50
You will subnet the network address 172.31.103.0/24. the network has the following requirements: ยท room-114 lan will require 27 host ip addresses ยท room-279 lan will require 25 host ip addresses ยท room-312 lan will require 14 host ip addresses ยท room-407 lan will require 8 host ip addresses how many subnets are needed in the network topology?
Answers: 2
You know the right answer?
Given a variable modelYear and a String modelName, write a statement that assigns true to recalled i...
Questions
question
Mathematics, 23.11.2020 18:10
question
Health, 23.11.2020 18:10
question
Mathematics, 23.11.2020 18:10
question
Mathematics, 23.11.2020 18:10
question
Mathematics, 23.11.2020 18:10
Questions on the website: 13722361