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
kobusy [5.1K]
3 years ago
9

Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guz

zler line from model years 2004-2007. Given a variable modelYear and a String modelName write a statement that prints the message "RECALL" to standard output if the values of modelYear and modelName match the recall details.
Computers and Technology
1 answer:
Likurg_2 [28]3 years ago
7 0

Answer:                                                                                          

if ((modelYear>=1999 && modelYear<=2002 && modelName=="Extravagant") || (modelYear>=2004 && modelYear<=2007 && modelName=="Guzzler")) // checking the condition

{        

cout << "RECALL"; // display  

}

Explanation:

Following are the description of Program

  • As mention in question "modelYear" is the variable of the int type and "modelName" is A String variable.
  • We check the condition in the if block.
  • In the IF block, it checks the condition with the OR(||) operator.
  • The condition is checking "modelYear" greater then or equal to 1999 and "modelYear" less then or equal to  2002 and "modelName" equal to "Extravagant" OR "modelYear" >= 2004 and "modelYear" <=2007 and  "modelName" equal to Guzzler It print RECALL on the console window.
You might be interested in
1. Name a two methods for creating text in Adobe Illustrator.
Fittoniya [83]

Answer:

Point type is a horizontal or vertical line of text that begins where you click and expands as you enter characters. Each line of text is independent—the line expands or shrinks as you edit it, but doesn’t wrap to the next line. Entering text this way is useful for adding a few words to your artwork.

Select the Type tool  or the Vertical Type tool .

The pointer changes to an I-beam within a dotted box. The small horizontal line near the bottom of the I-beam marks the position of the baseline, on which the text rests.

(Optional) Set text-formatting options in the Control panel, Character panel, or Paragraph panel.

Click where you want the line of text to begin.

Explanation:

4 0
3 years ago
What special case exists when managing linked lists?
tiny-mole [99]

Explanation:

The special case that exists in linked list when we are managing them is when we are dealing with the first element of the list.

When we create a linked list we create a first node separately.

If we delete or add element in front of the first element we have to carefully handle that case.

Hence the special case is when we are dealing with the first element of the list.

6 0
3 years ago
Additional rows and columns are inserted into a table by using the _____ tab
Sindrei [870]
Insert tab
up at the top
have a nice day
6 0
3 years ago
Read 2 more answers
Using reliable internet sources, identify three ways we use analog and digital signals in our everyday lives.
Montano1993 [528]
Clocks maybe is the answer. I really don’t know
7 0
3 years ago
Why do companies send updates to devices
Luden [163]
To ensure that they are up to date and running smoother than before. Withought updates our devices wouldnt work properly the way they are supposed to!
3 0
3 years ago
Other questions:
  • Assume a 8x1 multiplexer’s data inputs have the following present values: i0=0, i1=0, i2=0, i3=0, i4=0, i5=1, i6=0, i7=0. What s
    8·1 answer
  • An extranet is a restricted network that relies on Internet technologies to provide an Internet-like environment within the comp
    12·1 answer
  • A graphic design student is putting the finishing touches on her PowerPoint presentation for her speech. She is carefully analyz
    12·1 answer
  • Leah’s computer is connected to the network most of the time. Once, she noticed few of her files with sensitive data were missin
    8·1 answer
  • Insert a row above the selected row (in between row 1 and row 2).
    15·2 answers
  • Piecewise functions are sometimes useful when the relationship between a dependent and an independent variable cannot be adequat
    12·1 answer
  • This type of technology typically does NOT come with a keyboard or mouse for input.
    14·2 answers
  • "in troubleshooting a boot problem, what is the advantage of restoring all uefi/bios settings to their default values?"
    13·1 answer
  • Why when I put a question in the search bar it says something went wrong?
    9·1 answer
  • Which is a monthly cost associated with renting a house?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!