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
enyata [817]
3 years ago
9

Write multiple if statements. If car_year is 1969 or earlier, print "Few safety features." If 1970 or later, print "Probably has

seat belts." If 1990 or later, print "Probably has antilock brakes." If 2000 or later, print "Probably has airbags." End each phrase with a period and a newline
Computers and Technology
1 answer:
Paladinen [302]3 years ago
3 0

Answer:

This program is executed in Dev C++ using C++ as a programming language.

Explanation:

#include<iostream>

using namespace std;

int main()

{

int carModelNo;

cout<<"Enter Car Model Number  ";

cin>>carModelNo;

 

EnterAgain:

 if(carModelNo==1969)

{

 cout<<"Few safety features.";

}

else if(carModelNo==1979)

{

 cout<<"Probably has seat belts.";

}

else if(carModelNo==1999)

{

 cout<<"Probably has antilock brakes.";

}

else if(carModelNo==2000)

{

 cout<<"Probably has airbags.";

}

else

{

 "Car Model Information Currently not Available";

 cout<<"Please enter the car model such as 1969, 1979, 1999, or 2000  ";

 cin>>carModelNo;

 goto EnterAgain;

}

return 0;

}

You might be interested in
*
FinnZ [79.3K]

Answer:

...........................

Explanation:

........................

6 0
3 years ago
Read 2 more answers
Which of the following statements about moving averages is not true?
AleksAgata [21]

Answer:

The answer is "Option D"

Explanation:

The term moving average is known as a time series of information, which is widely used to reduce quick-term variations and demonstrate deep-term patterns or intervals. It is a type of matrices numerically, thus it could be considered as either an example of a tiny-pass filter for data processing, and correct options can be described as follows:

  • In option A,  It is used in a smooth series.
  • In option B, In this process, all the values are used in the calculation are equal in weight.
  • In option C, It is the simplest method, which is used in exponential smoothing.
7 0
3 years ago
Which IDEs support multiple high-level programming languages? Select all that apply.
rewona [7]

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

This question is about integrated development environments (IDEs) that support multiple high-level programming languages.

All mentioned IDEs such as Eclipse, Visual Studio, and Xcode support multiple high-level programming languages except Linux.

Using Eclipse, you can do Java programming easily and can build Java-based programs, and also you can do android programming in Eclipse while importing required android settings and libraries. Visual Studio is a Microsoft IDE, in which you can build desktop, web, and mobile, and windows phone app easily using high-level programming. Xcode is an integrated development environment for macOS containing a suite of software development tools developed by Apple for developing software for macOS, iPadOS, iOS, watchOS, and tvOS.

While Linux is not an IDEs, it is an open-source operating system based on Linux kernel.

8 0
3 years ago
. Write a program name Eggs that declares four variables to hold the number of eggs produced in a month by each of four chickens
DaniilM [7]

Answer:

// code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables

   int e1,e2,e3,e4;

   int tot,doz,rem_egg;

   cout<<"Enter the eggs given by first chicken:";

   // read the eggs given by first chicken

   cin>>e1;

   cout<<"Enter the eggs given by second chicken:";

   // read the eggs given by second chicken

   cin>>e2;

   cout<<"Enter the eggs given by third chicken:";

   // read the eggs given by third chicken

   cin>>e3;

   cout<<"Enter the eggs given by fourth chicken:";

   // read the eggs given by fourth chicken

   cin>>e4;

   // find total eggs

   tot=e1+e2+e3+e4;

   // find the dozens

   doz=tot/12;

   // remaining eggs

   rem_egg=tot%12;

   // print total eggs, dozen and remaining eggs

   cout<<"A total of "<<tot<<" eggs is "<<doz<<" dozen and "<<rem_egg<<" eggs.";

return 0;

}

Explanation:

Read the eggs given by four chickens and assign them to variables e1,e2,e3,e4 respectively.Then calculate the total eggs of all four chickens.After this find the dozen by dividing the total eggs with 12.To find the remaining eggs after the dozen and assign it to variable "rem_egg".Print the total eggs, dozen and remaining eggs.

Output:

Enter the eggs given by first chicken:40

Enter the eggs given by second chicken:23                                                                                  

Enter the eggs given by third chicken:55

Enter the eggs given by fourth chicken:60

A total of 178 eggs is 14 dozen and 10 eggs.

5 0
4 years ago
According to the text, the judicious use of elements such as bullets, numbers, boldface, italics, and capitalization in document
kaheart [24]

Answer:

Facilitating interactivity.

Providing visual variety.

Emphasizing key information.

Explanation:

The judicious use of these elements helps the author in various different ways. These characters facilitate the interaction of the reader with the text by making it easier for him to understand the best way to proceed with the reading. Moreover, they provide visual variety, which makes information easier to process for the reader. Finally, these characters also emphasize key information, helping with reading comprehension.

6 0
3 years ago
Other questions:
  • Grace is the sub-editor in a business firm. which feature of a word processing program would she use to make her changes visible
    14·1 answer
  • What is the average reading rate for middle school students?
    12·1 answer
  • Which description best describes how mass spectroscopy is useful in the field of forensic toxicology
    6·1 answer
  • Write a program that opens a text le called quiz.txt for reading. This le contains a single line with a student's rst name then
    15·1 answer
  • What does a contain after the following code runs?int[] a = {1, 3, 7, 0, 0, 0};int size = 3, capacity = 6, value = 5;int pos = 0
    10·1 answer
  • A kerberos __________ is a set of managed nodes that share the same kerberos database.
    10·1 answer
  • You construct a simple electrical current to boil water for tea. A battery generates positive and negative charges. A wire conne
    13·1 answer
  • The while loop and the do loop are equivalent in their expressive power; in other words, you can rewrite a while loop using a do
    6·1 answer
  • You are creating a program that can add up the amount of money the user spent that day. Right down to the penny! What kind of va
    12·2 answers
  • if a college wanted to provide its students with access to a network that could be used in any of the buildings across campus, i
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!