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, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Need getting google account back, big issue
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
English, 20.01.2021 20:30
question
Mathematics, 20.01.2021 20:30
question
Chemistry, 20.01.2021 20:30
question
Mathematics, 20.01.2021 20:30
question
Mathematics, 20.01.2021 20:30
Questions on the website: 13722363